jellyfish
jellyfish copied to clipboard
feat: add keccak256 merkle tree
This PR:
- introduce macro rules
impl_mt_hash_256!
for implementing boilerplate for node and digest for MT that has 32 bytes output size - impl for both Sha3 and Keccak256 under this macro
- expose a MT and lightweight MT for keccak256
@mrain do you remember why we pick rate 3 for MT? is that an assumption for our current MT internals?
Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.
- [x] Targeted PR against correct branch (main)
- [x] ~Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.~
- [x] ~Wrote unit tests~
- [ ] Updated relevant documentation in the code
- [ ] Added relevant changelog entries to the
CHANGELOG.md
of touched crates. - [ ] Re-reviewed
Files changed
in the GitHub PR explorer