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

typo: PRF takes input 1 (not 0) when deriving nk #3606

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

kwantam
Copy link
Contributor

@kwantam kwantam commented Jan 12, 2024

Quick typo fix in docs (surmised based on the official implementation).

Copy link
Member

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

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

thanks!

@redshiftzero redshiftzero merged commit 08c66e5 into penumbra-zone:main Jan 12, 2024
7 checks passed
@kwantam kwantam deleted the patch-1 branch January 12, 2024 19:30
@kwantam
Copy link
Contributor Author

kwantam commented Jan 12, 2024

One other minor comment on the spending key derivation document:

The output of BIP-32 child key derivation is an integer mod n (i.e., a secp256k1 scalar), but the document treats this value as a 32-byte sequence, so it should explicitly define the way that it converts the integer to bytes. The code appears to treat the integer as big-endian bytes, which is consistent with BIP-32's ser256 function. But it would be great to be explicit!


(EDIT: apologies for adding this comment after the PR was already merged! If you think it makes sense to promote it to an issue, I've tried to put enough context in the comment that it's easy to do so.)

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