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

Add Experimental Merkle Tree Implementation #343

Merged
merged 52 commits into from
Aug 11, 2022
Merged

Conversation

ymekuria
Copy link
Contributor

@ymekuria ymekuria commented Aug 11, 2022

Description
resolves #342
resolves o1-labs/proj-management#15

This PR adds a Merkle Tree implementation to SnarkyJS. This initial version was added here to support developers building more zkApp use cases in upcoming hackathons. We expect to add more features, and the API surface to change as we do so in the future. Because of this the, MerkleTree and MerkleWitness classes are placed under the Experimental namespace.

Testing

The MerkleTree class was tested with unit tests.

src/lib/merkle_tree.ts Outdated Show resolved Hide resolved
Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy now!

@mitschabaude mitschabaude merged commit f394a8d into main Aug 11, 2022
@mitschabaude mitschabaude deleted the feature/merkle-tree branch August 11, 2022 14:33
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.

Add Merkle Tree Implementation to SnarkyJS Evaluate merkle tree implementations
3 participants