-
Notifications
You must be signed in to change notification settings - Fork 156
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 316 updates for Unified Raw Encodings #660
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Daira Emma Hopwood <[email protected]>
e6dbb9d
to
6491a54
Compare
6491a54
to
05ecd08
Compare
|
||
There are well-defined transformations between the Unified QR Encoding, | ||
Unified String Encoding, and Unified Raw Encoding of a given UA/UVK in | ||
any direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separately say that there is a UQRE <-> USE correspondence and a USE <-> URE correspondence.
Similarly, a Unified Full Viewing Key or Unified Incoming Viewing Key | ||
provides the corresponding visibility into transactions that may use | ||
addresses of different types. Typically these will be the addresses | ||
for each pool derived from an Account as defined in [#zip-0032-specification-wallet-usage]_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for each pool derived from an Account as defined in [#zip-0032-specification-wallet-usage]_. | |
for each pool derived for an Account as defined in [#zip-0032-specification-wallet-usage]_. |
addresses of different types. Typically these will be the addresses | ||
for each pool derived from an Account as defined in [#zip-0032-specification-wallet-usage]_. | ||
(It is not possible for a UVK to include viewing keys for multiple | ||
addresses of the same type.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addresses of the same type.) | |
addresses associated with the same pool.) |
(i.e. the remainder of the Unified Raw Encoding after the Binary HRP). | ||
|
||
2. Let :math:`\mathtt{padded\_hrp}` be :math:`\mathtt{hrp}` padded to | ||
16 bytes with zero bytes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
16 bytes with zero bytes. | |
16 bytes with bytes of value 0. |
supported (for example, a Testnet HRP for a Consumer that only supports | ||
Mainnet), reject. | ||
2. Let :math:`\mathtt{expected\_padded\_hrp}` be the US-ASCII-encoded HRP, | ||
padded to 16 bytes with zero bytes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padded to 16 bytes with zero bytes. | |
padded to 16 bytes with bytes of value 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved via ZIP editors review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was reviewed in ZIP sync with @dconnolly, @nuttycom, @sellout, @teor2345, and me present.
There are well-defined transformations between the Unified QR Encoding, | ||
Unified String Encoding, and Unified Raw Encoding of a given UA/UVK in | ||
any direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are well-defined transformations between the Unified QR Encoding, | |
Unified String Encoding, and Unified Raw Encoding of a given UA/UVK in | |
any direction. | |
There are well-defined bidirectional transformations between the | |
Unified String Encoding and Unified Raw Encoding, and between the | |
Unified String Encoding and Unified QR Encoding of a given UA or UVK. |
Signed-off-by: Daira Hopwood [email protected]