-
Notifications
You must be signed in to change notification settings - Fork 113
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
Sprout note commitment trees #3051
Conversation
I want to add more tests from Sapling once I solve the currently failing test. |
…tion/zebra into sprout-note-commitment-trees
…tion/zebra into sprout-note-commitment-trees
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
…tion/zebra into sprout-note-commitment-trees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, great work searching for those transactions with JoinSplits. (I found it interesting that it took that long for them to appear in the blockchain).
I just added an optional suggestion that we can do in a separate ticket if you prefer.
That was surprising to me as well. What I did there was a manual binary search for the first anchor different from the genesis one, which is the hash of an empty note commitment tree anyway. I felt the mighty power of logarithms when I was doing the search. :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor changes since the last approval
Motivation
Zebra needs Spout note commitment trees.
Designs
https://github.com/ZcashFoundation/zebra/blob/a1cec27871f22dd1d8a8440e4fd4e7b8ff111374/book/src/dev/rfcs/drafts/0005-treestate.md
https://zips.z.cash/protocol/protocol.pdf#merkletree
Solution
This PR follows the implementation of the note commitment trees for Sapling.
Closes #2484.
Review
@dconnolly can review.
Reviewer Checklist
Follow Up Work
This PR is a prerequisite for #2485.