-
Notifications
You must be signed in to change notification settings - Fork 117
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
ZIP 212: validate Sapling and Orchard output of coinbase transactions #3029
Conversation
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.
Not a review, just some things I thought might be helpful.
314b604
to
74eee3c
Compare
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.
Added a Orchard test
…zip-212-validate-coinbase-outputs
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.
Some minor doc suggestions.
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.
A minor variable name change suggestion.
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
…zip-212-validate-coinbase-outputs
Additional test info: |
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.
Made some mostly rustdoc/comments suggested changes
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
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.
LGTM!
This PR looks good to me too. 👍 |
Motivation
Coinbase transactions with Sapling or Orchard outputs must be decryptable with an all-zero outgoing viewing key and this needs to be checked by Zebra.
Specifications
https://zips.z.cash/protocol/protocol.pdf#txnencodingandconsensus
Designs
Solution
zcash_note_encryption
fromlibrustzcash
to decrypt and validate noteslibrustzcash
for thatCloses #2362
Review
Probably @teor2345 and/or @dconnolly can review this.
Reviewer Checklist
Follow Up Work
#3027 for a consensus check that we can't currently do with
zcash_note_encryption