-
Notifications
You must be signed in to change notification settings - Fork 16
feat!: Add variable length keccak opcode #314
Conversation
…ate the message input. - Add function to solve KeccakVar
Do we need to have two variants here? What are the benefits of this compared to just having the variable version and passing in |
They have different implementations on the backend, so if we put the msg.len() parameter on Keccak, then backends will need to implement KeccakVar which is harder to implement than Keccak. Theres also the fact that regular Keccak is more performant when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok cool, this looks sensible if we're going down the two opcodes route.
Shall we add a todo to add variable variants of the other hash functions?
Yep sure, made #320 |
Related issue(s)
(If it does not already exist, first create a GitHub issue that describes the problem this Pull Request (PR) solves before creating the PR and link it here.)
Resolves #313
Description
Summary of changes
(Describe the changes in this PR. Point out breaking changes if any.)
Dependency additions / changes
(If applicable.)
Test additions / changes
(If applicable.)
Checklist
cargo fmt
with default settings.Additional context
(If applicable.)