-
Which compiler are you using?
Which version of Solidity or Vyper?0.8.21 zksolc/zkvyper version?1.3.16 Explain the issue1.The following method calls failed
success := staticcall(sub(gas(), 2000000), 6, mIn, 128, pR, 64)
success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)
success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)
2.this is pre-compiled Ethereum:
var PrecompiledContractsIstanbul = map[common.Address]PrecompiledContract{
common.BytesToAddress([]byte{1}): &ecrecover{},
common.BytesToAddress([]byte{2}): &sha256hash{},
common.BytesToAddress([]byte{3}): &ripemd160hash{},
common.BytesToAddress([]byte{4}): &dataCopy{},
common.BytesToAddress([]byte{5}): &bigModExp{eip2565: false},
common.BytesToAddress([]byte{6}): &bn256AddIstanbul{},
common.BytesToAddress([]byte{7}): &bn256ScalarMulIstanbul{},
common.BytesToAddress([]byte{8}): &bn256PairingIstanbul{},
common.BytesToAddress([]byte{9}): &blake2F{},
}
3.zksync precompiles
Ecrecover.yul Keccake256.yul SHA256.yul Link to your repo?No response |
Beta Was this translation helpful? Give feedback.
Answered by
Romsters
Dec 11, 2023
Replies: 7 comments 2 replies
-
Hi @linyoufa, these precompiles are not yet available, zksync team is actively working on them and they will be announced soon. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MexicanAce
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @linyoufa, these precompiles are not yet available, zksync team is actively working on them and they will be announced soon.