Skip to content

Fix errors in protocol and ZIPs#702

Merged
daira merged 6 commits into
zcash:mainfrom
AArnott:fixErrors
Aug 25, 2023
Merged

Fix errors in protocol and ZIPs#702
daira merged 6 commits into
zcash:mainfrom
AArnott:fixErrors

Conversation

@AArnott

@AArnott AArnott commented Jul 31, 2023

Copy link
Copy Markdown
Contributor
  • ZIP-321 had a stray " character at the end of a URI example.
  • ZIP-316 assumes the wrong length for dk
    The dk value is 256 bits long. It's the diversifier that is only 88 bits long. The incoming viewing key requires the diversifier key -- not the diversifier.
    This change also reflects the de facto standard in implementations up to this point, including YWallet and the zcash_address crate.
  • ZIP-32 has a typo in a function name
    Fix reference to undefined LEBS2OS function
    The LEBS2OS function does not exist and isn't meant to. This reference is understood to have meant LEBS2OSP.
    See discussion at:
    https://forum.zcashcommunity.com/t/what-is-the-lebs2os-function-in-the-zip-32-spec/44886
  • Zcash protocol: Fix identification of HRP for full viewing keys
    This was likely a copy-paste error with the section above it, which is very similar but presents the human-readable part of incoming viewing keys.

AArnott added 3 commits July 31, 2023 07:13
This was likely a copy-paste error with the section above it, which is very similar but presents the human-readable part of *incoming* viewing keys.
The `LEBS2OS` function does not exist and isn't meant to. This reference is understood to have meant `LEBS2OSP`.

See discussion at:
https://forum.zcashcommunity.com/t/what-is-the-lebs2os-function-in-the-zip-32-spec/44886
The `dk` value is 256 bits long. It's the *diversifier* that is only 88 bits long. The incoming viewing key requires the diversifier key -- not the diversifier.

This change also reflects the de facto standard in implementations up to this point, including YWallet and the [zcash_address crate](https://docs.rs/zcash_address/latest/src/zcash_address/kind/unified/ivk.rs.html).
Comment thread zip-0316.rst Outdated
@daira daira self-requested a review August 22, 2023 19:27
@daira daira added the ZIP bug label Aug 22, 2023
@daira daira self-assigned this Aug 22, 2023
Comment thread protocol/protocol.tex
Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>

@daira daira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ACK

@daira daira merged commit 9b29341 into zcash:main Aug 25, 2023
@AArnott AArnott deleted the fixErrors branch August 25, 2023 20:58
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