Skip to content
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

crypto: merkle: Implement Merkle hash with intermediate values #10

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

joeykraut
Copy link
Member

Purpose

This PR implements a Merkle hash method in huff that iteratively hashes an input with a set of sister leaves. The method returns an array of sister leaves for the Merkle consumer to update its state with.

Testing

  • Ran the Merkle tree method and fixed all runtime errors
  • TODO: Test against a known Merkle implementation on Poseidon.

@joeykraut joeykraut requested a review from akirillo January 28, 2025 19:19
@joeykraut joeykraut merged commit 53199dc into main Jan 28, 2025
0 of 2 checks passed
@joeykraut joeykraut deleted the joey/merkle-hash branch January 28, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant