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 TestRecursiveProofFixedSizeMerkleTree for recursive proof generation #459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

byksy
Copy link

@byksy byksy commented Nov 9, 2023

Description

This pull request introduces a new test, TestRecursiveProofFixedSizeMerkleTree, to validate the correctness of the recursive proof generation in the FixedSizeMerkleTree. The test covers the creation of a Merkle tree with multiple leaves, selection of a specific leaf, generation of a Merkle proof using the recursiveProof method, and verification that the reconstructed Merkle root matches the original root of the tree.

Changes Made

  • Added the TestRecursiveProofFixedSizeMerkleTree test function to the merkle_test.go file.
  • Updated the introduction comment and provided a clear commit message for the new test.

Testing

  • Ran the newly added test locally to ensure it passes.

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