-
Notifications
You must be signed in to change notification settings - Fork 106
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
Store orchard nullifiers into the state #2185
Conversation
this PR seems to also cover partially #1982 |
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, two small changes I'd like to see 😎
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.
Let's split off the changes from #1982 into their own PR, so we don't accidentally forget any changes.
I also suggested a few updates to comments to make them more accurate.
I just filled in the test plan for this change:
We'll have to come up with a better plan for testing the stable release in |
We should also be able to write unit tests that take a NU5 test vector and commit it to an ephemeral state. So I've added those. |
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.
I'd like to remove the "add anchor" and "remove anchor" comments, because we're not actually doing that yet. (This is an old problem with the comments, but we should fix it now.)
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.
I think your test vector might have found a bug in Zebra. Nice!
Let's change the tests to use random data (you'll need PR #2208), and do a few small cleanups.
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.
This is looking good.
I did a bunch of work in #2221 that should make implementing these proptests easier.
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, I'll just apply a comment fix then merge.
Motivation
We need to store nullifier data for orchard in the state. #1983
Solution
Add a new column to the database (and to the spec) to store the new data.
The code in this pull request has:
NU5
testnet activationReview
@dconnolly can take a look. I followed the advise of using the sapling nullifiers as a guide.