CIP 20 - Extensible Hash Precompile - Discussions #334
Closed
prestwich
started this conversation in
CIP Discussions
Replies: 2 comments
-
I ran benchmarks on our blake2s implementation against golang stdlib sha256:
The blake2s implementation outperforms sha2 in all cases. I'd suggest setting the gas costs equal to sha2 for now |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is it possible for this precompile to, in the future, enable support for snark-friendly hash functions like Poseidon? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Migrating my comments from the forum:
The goal is to provide access to some common cryptographic hash functions. We do that by adding them all to a single precompile. Right now the precompile supports common SHA3 variants (SHA3-256, SHA3-512, and Keccak-512), as well as blake2s
Link to CIP
Deployment Checklist
eth_call
RPCBeta Was this translation helpful? Give feedback.
All reactions