-
Notifications
You must be signed in to change notification settings - Fork 1
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
Updating digest names #95
base: zsa1
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for zcash-zips-qedit ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Very good overall.
Added one question
|
||
The personalization field remains the same as in ZIP 244 [#zip-0244]_, namely:: | ||
|
||
"ZcashTxHash_" || CONSENSUS_BRANCH_ID |
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.
Can you elaborate on this?
I don't remember seeing such thing anywere in the code.
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.
It is in librustzcash
: See here.
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.
To elaborate: We didn't expand on this in the ZIP since originally this top level branch is the same as in ZIP 244, we had only added a new sub branch for issuance. Now we are expanding it a bit because we are replacing orchard_digest
with orchard_zsa_digest
and adding the issuance_digest
branch.
Implementation wise as well, the personalization of "ZcashTxHash_" || CONSENSUS_BRANCH_ID
wasn't actively changed (and still isn't).
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.
The alternative is to just mention it is unchanged from ZIP 244, without mentioning what it is
This PR performs various improvements to the naming of the branches of the TxID and Signature Digests, and the Authorizing Data Commitment, as initially suggested in the review of QED-it/zcash-test-vectors#24.