Skip to content
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

Open
wants to merge 3 commits into
base: zsa1
Choose a base branch
from
Open

Updating digest names #95

wants to merge 3 commits into from

Conversation

vivek-arte
Copy link

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.

Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for zcash-zips-qedit ready!

Name Link
🔨 Latest commit 038bd00
🔍 Latest deploy log https://app.netlify.com/sites/zcash-zips-qedit/deploys/6798eae31f85ce00083d9f8a
😎 Deploy Preview https://deploy-preview-95--zcash-zips-qedit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@PaulLaux PaulLaux left a 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

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.

Copy link
Author

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.

Copy link
Author

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).

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants