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

Clarifying the encoding of ik #46

Merged
merged 1 commit into from Nov 7, 2023
Merged

Clarifying the encoding of ik #46

merged 1 commit into from Nov 7, 2023

Conversation

vivek-arte
Copy link

This PR makes it clear that the encoding of ik used in the Asset Base derivation is big-endian, as in the case of the underlying BIP 340 Schnorr signature scheme.

It also adds a clarification about the version byte used in the Asset Base derivation.

Copy link

netlify bot commented Nov 7, 2023

Deploy Preview for zcash-zips-qedit ready!

Name Link
🔨 Latest commit 2009331
🔍 Latest deploy log https://app.netlify.com/sites/zcash-zips-qedit/deploys/6549c97a1a48300008ad5cf5
😎 Deploy Preview https://deploy-preview-46--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.

@@ -189,7 +190,8 @@ Let
Define :math:`\mathsf{AssetDigest_{\mathsf{AssetId}}} := \textsf{BLAKE2b-512}(\texttt{"ZSA-Asset-Digest"},\; \mathsf{EncodeAssetId}(\mathsf{AssetId}))`,
where

- :math:`\mathsf{EncodeAssetId}(\mathsf{AssetId}) = \mathsf{EncodeAssetId}((\mathsf{ik}, \mathsf{asset\_desc})) := \mathsf{0x00} || \mathsf{repr}_{\mathbb{P}}(\mathsf{ik}) || \mathsf{asset\_desc}\!`.
- :math:`\mathsf{EncodeAssetId}(\mathsf{AssetId}) = \mathsf{EncodeAssetId}((\mathsf{ik}, \mathsf{asset\_desc})) := \mathsf{0x00} || \mathsf{ik} || \mathsf{asset\_desc}\!`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the specification defines ik to be a byte string. So there is no need to use the I2BEBSP function. I have instead clarified that the representation is big-endian above (line 150)

@vivek-arte vivek-arte merged commit 1b29061 into zsa1 Nov 7, 2023
4 checks passed
vivek-arte added a commit that referenced this pull request Feb 12, 2024
This makes it clear that the encoding of `ik` used in the Asset Base
derivation is big-endian, as in the case of the underlying BIP 340
Schnorr signature scheme.

It also adds a clarification about the version byte used in the Asset
Base derivation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants