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

ZIP 32: Define an arbitrary key derivation process #908

Merged
merged 5 commits into from
Oct 3, 2024
Merged

Conversation

str4d
Copy link
Collaborator

@str4d str4d commented Oct 1, 2024

The hardened-only key derivation process from Orchard key derivation is extracted for reuse.

zips/zip-0032.rst Outdated Show resolved Hide resolved
zips/zip-0032.rst Outdated Show resolved Hide resolved
zips/zip-0032.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@daira daira left a comment

Choose a reason for hiding this comment

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

ACK with suggestions.

@str4d
Copy link
Collaborator Author

str4d commented Oct 1, 2024

Force-pushed to add missing BCP 14 keywords and re-render.

Copy link
Collaborator

@daira daira left a comment

Choose a reason for hiding this comment

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

ACK

We instantiate the hardened key generation process with the following constants:

- :math:`\mathsf{Arbitrary.MKGDomain} = \texttt{“ZcashArbitraryKD”}`
- :math:`\mathsf{Arbitrary.CKDDomain} = [\texttt{0xAB}]`
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be included in https://zips.z.cash/protocol/protocol.pdf#abstractprfs, but not necessarily in this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Filed #909.

Copy link
Collaborator

@daira daira left a comment

Choose a reason for hiding this comment

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

ACK f14fc99. Needs ZIP Editor review.

Copy link
Collaborator

@daira daira left a comment

Choose a reason for hiding this comment

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

ACK 55173c8

@daira daira merged commit a59deab into main Oct 3, 2024
@daira daira deleted the zip32-arb-keys branch October 3, 2024 03:08
@daira daira restored the zip32-arb-keys branch October 3, 2024 03:08
@daira
Copy link
Collaborator

daira commented Oct 3, 2024

Oops, this required ZIP Editor review. Sorry about that, I've been used to just merging. (I should probably adjust my permissions on zcash/zips to not be able to do that so easily.)

vivek-arte added a commit to QED-it/zips that referenced this pull request Oct 8, 2024
This makes the changes to align with the change in notation for ZIP
32 done in zcash#908.
Comment on lines +378 to +379
derivation. This should be tracked as part of the global set of domains defined for
:math:`\mathsf{PRF^{expand}}`.
Copy link
Contributor

Choose a reason for hiding this comment

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

add reference to spec (section 4.1.2)

Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Reviewed post-merge by @nuttycom @arya2 @conradoplg

@nuttycom nuttycom deleted the zip32-arb-keys branch November 6, 2024 00:59
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.

3 participants