Skip to content

Clarifying the encoding of ik#46

Merged
vivek-arte merged 1 commit into
zsa1from
ik_encoding
Nov 7, 2023
Merged

Clarifying the encoding of ik#46
vivek-arte merged 1 commit into
zsa1from
ik_encoding

Conversation

@vivek-arte
Copy link
Copy Markdown

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.

@netlify
Copy link
Copy Markdown

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.

Comment thread zip-0227.rst
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
Copy Markdown
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
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.

2 participants