Skip to content

feat(merkle_proof): implement proof generation for merkle trees#4

Merged
olivmath merged 1 commit into
mainfrom
claude/implement-proof-generation-01JgCa1G5TuDTMYit1yzdUVf
Dec 6, 2025
Merged

feat(merkle_proof): implement proof generation for merkle trees#4
olivmath merged 1 commit into
mainfrom
claude/implement-proof-generation-01JgCa1G5TuDTMYit1yzdUVf

Conversation

@olivmath
Copy link
Copy Markdown
Owner

@olivmath olivmath commented Dec 6, 2025

Add merkle_proof function that generates proofs for any tree size (both power-of-2 and non-power-of-2). Uses bottom-up layer-by-layer approach matching the Rust merkletreers implementation.

  • Add merkle_proof_mixed module with core proof generation logic
  • Add Eq trait implementation for Node struct
  • Add comprehensive tests covering 2, 3, 4, 5, and 6 leaf trees
  • Tests verify exact proof values from Rust reference implementation

Add merkle_proof function that generates proofs for any tree size
(both power-of-2 and non-power-of-2). Uses bottom-up layer-by-layer
approach matching the Rust merkletreers implementation.

- Add merkle_proof_mixed module with core proof generation logic
- Add Eq trait implementation for Node struct
- Add comprehensive tests covering 2, 3, 4, 5, and 6 leaf trees
- Tests verify exact proof values from Rust reference implementation
@olivmath olivmath self-assigned this Dec 6, 2025
@olivmath olivmath merged commit 63f770f into main Dec 6, 2025
5 checks passed
@olivmath olivmath deleted the claude/implement-proof-generation-01JgCa1G5TuDTMYit1yzdUVf branch December 6, 2025 07:37
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.

2 participants