-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keccak256 host function #1697
Conversation
I was wondering if @webmaster128 saw this one. |
Right, so in the past when working on crypto APIs we conclude that all hash function should be executed right in Wasm instead of adding a call to the environment. The reasoning is the following:
In contrast to EVM environments, Wasm allows for much faster execution in the contract. We added a few crypto functions that are much heavier than hashing, like secp256k1 and ed25519 verification. Pairing based cryptography might join at some point. For those cases we win a lot in terms of code size and execution speed when having them in the host. |
Closing as hash functions are supposed to be in Wasm |
Support keccak256 native code function.