Skip to content

Commit

Permalink
Merge pull request #70 from hermeznetwork/feature/remove-precompiled
Browse files Browse the repository at this point in the history
Feature/remove precompiled
  • Loading branch information
laisolizq authored May 20, 2022
2 parents 08c322e + 5bbfa34 commit 1b28cd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions build/rom.json
Original file line number Diff line number Diff line change
Expand Up @@ -10422,19 +10422,19 @@
"CONST": "-3",
"JMPC": 0,
"JMPN": 1,
"offset": 681,
"offset": 1166,
"line": 14,
"offsetLabel": "SHA256",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
"inA": "1",
"CONST": "-4",
"JMPC": 0,
"JMPN": 1,
"offset": 702,
"offset": 1166,
"line": 15,
"offsetLabel": "RIPEMD160",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
Expand Down Expand Up @@ -10462,39 +10462,39 @@
"CONST": "-7",
"JMPC": 0,
"JMPN": 1,
"offset": 808,
"offset": 1166,
"line": 18,
"offsetLabel": "ECADD",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
"inA": "1",
"CONST": "-8",
"JMPC": 0,
"JMPN": 1,
"offset": 836,
"offset": 1166,
"line": 19,
"offsetLabel": "ECMUL",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
"inA": "1",
"CONST": "-9",
"JMPC": 0,
"JMPN": 1,
"offset": 862,
"offset": 1166,
"line": 20,
"offsetLabel": "ECPAIRING",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
"inA": "1",
"CONST": "-10",
"JMPC": 0,
"JMPN": 1,
"offset": 883,
"offset": 1166,
"line": 21,
"offsetLabel": "BLAKE2F",
"offsetLabel": "moveBalances",
"fileName": "/home/ixnay/iden3Dev/github/zkrom/main/precompiled/selector.zkasm"
},
{
Expand Down
12 changes: 6 additions & 6 deletions main/precompiled/selector.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ INCLUDE "end.zkasm"

selectorPrecompiled:
A - 2 :JMPN(funcECRECOVER)
A - 3 :JMPN(SHA256)
A - 4 :JMPN(RIPEMD160)
A - 3 :JMPN(moveBalances) ;:JMPN(SHA256)
A - 4 :JMPN(moveBalances) ;:JMPN(RIPEMD160)
A - 5 :JMPN(IDENTITY)
A - 6 :JMPN(MODEXP)
A - 7 :JMPN(ECADD)
A - 8 :JMPN(ECMUL)
A - 9 :JMPN(ECPAIRING)
A - 10 :JMPN(BLAKE2F)
A - 7 :JMPN(moveBalances) ;:JMPN(ECADD)
A - 8 :JMPN(moveBalances) ;:JMPN(ECMUL)
A - 9 :JMPN(moveBalances) ;:JMPN(ECPAIRING)
A - 10 :JMPN(moveBalances) ;:JMPN(BLAKE2F)

0 comments on commit 1b28cd2

Please sign in to comment.