The Shanghai protocol release has nine precompiled contracts, namely ecrecover, sha256, ripemd160, identity, modexp, ecadd, ecmul and blake2f. However, within the current version of zkSync Era, the only precompiles supported are ecrecover and sha256 (plus keccak256) and the ones being developed by lambdaclass, namely ecAdd, ecMul and modexp (plus ecPairing). Consider implementing the other ones too, although they are rarely used, for full equivalence with Ethereum at the precompile level (ripemd160, blake2f and identity).
erebus (warden) commented:
erebus (warden) commented:
erebus (warden) commented:
erebus (warden) commented:
erebus (warden) commented:
miladpiri (zkSync) commented:
miladpiri (zkSync) commented:
miladpiri (zkSync) commented:
miladpiri (zkSync) commented:
miladpiri (zkSync) commented:
erebus (warden) commented:
erebus (warden) commented:
erebus (warden) commented:
erebus (warden) commented:
Alex the Entreprenerd (judge) commented:
Note: For full discussion, see here.
For this audit, 9 reports were submitted by wardens detailing gas optimizations. The report highlighted below by lsaudit received the top score from the judge.
The following wardens also submitted reports: 0xhacksmithh, hunter_w3b, SM3_SS, c3phas, albahaca, 0xAnah, 0xsomeone, and Sathish9098.
As stated in the scope, the Gas Report had been prepared for L1 contracts only.
