how to calculate keccak256 hash in huff code? #29
Answered
by
EngrPips
Vincent71399
asked this question in
Q&A
-
I was trying to convert a simple contract with a mapping(address->uint256) storage, but it seem huff does not have a keyword keccak256 like evm, anyone know how to resolve it? |
Beta Was this translation helpful? Give feedback.
Answered by
EngrPips
Jan 15, 2025
Replies: 1 comment 2 replies
-
You will need the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Vincent71399
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will need the
foundry-huff
andhuffmate
libraries to implement that kind of logic in Huff, I think. That is what we used in theassembly--evm-opcodes-and-formal-verification-course
at least when we were implementingHorseStoreV2