ZIP 316
Unified Addresses and Unified Viewing Keys
- Active
- Withdrawn
- Draft
Contents
A Producer MAY include a item in a UFVK or UIVK. A Producer SHOULD set the Birthday Height to a height no greater than the height of the earliest block that contains a transaction sending funds to any address derivable from the Items of the UFVK or UIVK.
A Producer MUST NOT include a item in a Unified Address. A Consumer MUST ignore a item in a Unified Address.
If a UFVK or UIVK contains both a item and a item, then the Producer MUST ensure that the Birthday Height is less than or equal to the Address Expiry Height, and a Consumer SHOULD reject the UFVK or UIVK as invalid if the Birthday Height is greater than the Address Expiry Height.
A Consumer that scans the chain to detect funds for a UFVK or UIVK that contains a item SHOULD begin scanning at the Birthday Height. The Consumer MAY begin scanning at a lower height. If the Consumer begins scanning at a greater height, then it might fail to detect funds.
When deriving a UIVK from a UFVK that contains a item, the item SHOULD be retained unmodified in the derived UIVK.
When deriving a Unified Address from a UFVK or UIVK that contains a item, the derived Unified Address MUST NOT contain a item.
Rationale for Viewing Key Birthday Height Metadata
Click to show/hide
A wallet that imports a viewing key without a birthday height must either ask the user for one or scan from a conservative default, such as the activation height of the oldest shielded protocol that the viewing key supports. Scanning from such a default can take much longer than scanning from the actual birthday height. Carrying the birthday height in the viewing key removes this cost and the need for a separate channel to convey it. A Producer can also set a later Birthday Height when the earlier history of the viewing key is not relevant to its intended use.
The birthday height is assigned a Typecode outside the MUST-understand range because a Consumer that ignores it remains correct: it scans from an earlier height, which costs time but cannot cause it to miss funds. A MUST-understand Typecode would instead require every existing Consumer to reject an otherwise usable viewing key, and would prohibit its use in Revision 0 viewing keys.
The birthday height describes a viewing key, not a payment destination. A Sender has no use for it, and including it in a Unified Address would reveal the approximate age of the recipient's wallet to every party that sees the address. It is therefore prohibited in Unified Addresses. A Consumer ignores such an Item instead of rejecting the address, because the Item does not affect how a Sender uses the Receivers of the address, and rejecting the address would not undo the information leak. A holder of a viewing key can already observe the heights of the transactions that the key detects, so including the birthday height in the viewing key reveals little additional information to such a holder.
Each address derived from an expiring viewing key expires at or before the Address Expiry Height of the viewing key, so a conforming Sender will not send funds to it in a block above that height. A Birthday Height greater than the Address Expiry Height would direct the Consumer to begin scanning after all such transactions. Such a viewing key is inconsistent and is treated as invalid.
Key Derivation Metadata
A wallet that holds only a UFVK cannot sign transactions, but it can construct them for an external signer (such as a hardware wallet) that holds the corresponding seed. A signer generally identifies the spending key to use for an input by its seed fingerprint and derivation path; for example, these are the contents of the ZIP 32 and BIP 32 derivation fields of a partially created Zcash transaction, and of the key origin fields of BIP 17442. Typecodes and are reserved for optional Metadata Items that carry this information in a UFVK, so that a Consumer can obtain it at the time the UFVK is imported.
The value of a (Seed Fingerprint) Item MUST be a 32-byte seed fingerprint, as defined in ZIP 3222, of the master seed from which the FVK Items listed in the Item of the same UFVK are derived.
The value of a (Key Derivation Paths) Item is encoded as follows:
- — the number of entries, which MUST be at least .
- For each of the entries:
- — the Typecode of an FVK Item in the same UFVK.
- — the number of elements in the derivation path, which MUST be at least .
- — the child indices of the derivation path, each encoded as an unsigned 32-bit integer in little-endian order. An index with denotes the hardened child index .
An entry states that the FVK Item having Typecode is the encoding of the key at , derived from the master seed whose fingerprint is the value of the Item. is the complete path from the master node of the relevant derivation tree, including the purpose level:
- for Typecode (Orchard), from as defined in ZIP 3225; every index in the path MUST be hardened;
- for Typecode (Sapling), from as defined in ZIP 3224;
- for Typecode (Transparent P2PKH), from the BIP 32 master node 34.
For example, the entries for a UFVK derived at account according to ZIP 32 and BIP 44 have the paths for the Orchard and Sapling FVK Items, and for the Transparent P2PKH FVK Item.
The following requirements apply:
- Entries MUST be in strictly ascending order of .
- MUST be , , or , and the UFVK MUST contain an FVK Item having that Typecode. A Producer MAY omit the entry for an FVK Item whose derivation it does not know.
- A UFVK that contains a Item MUST contain a Item, and vice versa.
- These Items MAY be included in a UFVK of any Revision. They MUST NOT be included in a UIVK or a Unified Address.
- When deriving a UIVK from a UFVK, a Consumer MUST NOT include these Items in the derived UIVK.
- A Consumer that recognises these Items MUST reject a UFVK that violates any of the above requirements. A Consumer MUST ignore either Item in a UIVK or Unified Address.
A Consumer cannot check these Items against the FVK Items without access to the master seed. Consumers MUST NOT rely on these Items for any security property. Before a Consumer records the derivation of an account as established, or presents the account to the user as linked to a particular signer, it SHOULD confirm the derivation with a signer that holds the seed, for example by obtaining from the signer the FVK at the stated path and comparing it with the corresponding FVK Item.
A Producer SHOULD include these Items only in a UFVK that is exported for use by a wallet that will construct transactions for the holder of the seed to sign. A Producer SHOULD NOT include them in a UFVK that is exported only for viewing, for example to an auditor.
Rationale for Key Derivation Metadata
Click to show/hide
Without these Items, a wallet that imports a UFVK has to obtain the seed fingerprint and account index separately, for example through a vendor-specific export format, or by asking the signer each time a transaction is signed.
The Items are non-MUST-understand because they neither change the interpretation of the UFVK nor give additional viewing authority: a Consumer that ignores them loses only the ability to construct signing requests without help from the signer. For the same reason they are permitted in Revision 0 UFVKs, which a Producer can extend without changing the Human-Readable Part; Revision 0 Consumers are required to ignore Items with Typecodes they do not recognise.
The seed fingerprint and the derivation paths are separate Items because one seed fingerprint applies to every FVK Item, while each FVK Item has its own path. The paths are stated in full, rather than as a single account index, because the shielded and transparent trees use different purpose levels, and because some derivations (such as the zcashd legacy Sapling derivation under account 24) do not follow the account-level convention. The path encoding is the one used by BIP 174 key origins42.
The Items are excluded from UIVKs and Unified Addresses because the holder of an IVK or address cannot construct a spend, and because they would reduce privacy. The seed fingerprint is the same for every account derived from a seed, so any two UFVKs that contain it can be linked to the same seed; the derivation path reveals the account index. A UFVK already gives full viewing authority over its account, but this linkage across accounts is additional information, which is why Producers are advised to include the Items only when they are needed.
P2SH FVK Items are not covered, because each key of a multisignature policy can be derived from a different seed. Key origins for such keys would need a per-key encoding, which can be defined in a future revision.
Typecode Registry
The following table specifies the full range of Typecodes and indicates which address types permit each Typecode. Typecode range entries in the table below are to be interpreted as end-inclusive.
Producers MUST NOT include Items with Typecodes not permitted for the address type being produced, and MUST NOT generate UA/UVKs containing Items with typecodes that are Unassigned.
The guiding principle for zu addresses is that a zu address MUST NOT contain any Items whose interpretation in transaction construction could result in an unprivileged observer of the chain being able to distinguish transactions sent to addresses containing such Items from transactions sent to addresses that do not.
In contrast, a tu address MAY contain items whose interpretation in transaction construction could result in additional information being leaked on-chain. As such a user giving out a tu address should recognise that they may be giving up some privacy in transactions received at that address.
If a new Metadata Item type is permitted in some Unified Addresses but should not be allowed in zu addresses, it MUST be assigned in the MUST-understand Metadata range.
Experimental Typecodes ( to ) are permitted at the discretion of wallets that have opted into the corresponding experiment as described in Experimental Usage; for zu addresses, such wallets are responsible for ensuring that the experiment does not compromise the privacy properties of zu addresses.
+-------------------+--------------------------------------+----+--------+--------+
| Typecode | Description | R0 | R2 zu | R2 tu |
+===================+======================================+====+========+========+
| 0x00 | Transparent P2PKH | ✅ | ❌ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0x01 | Transparent P2SH | ✅ | ❌ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0x02 | Sapling | ✅ | ✅ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0x03 | Orchard | ✅ | ✅ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0x04..=0xBF | Unassigned | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xC0 | Viewing Key Birthday Height [2] | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xC1 | Seed Fingerprint [3] | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xC2 | Key Derivation Paths [3] | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xC3..=0xDF | Unassigned Non-MUST-understand | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xE0 | Address Expiry Height | ❌ | ✅ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xE1 | Address Expiry Time | ❌ | ✅ | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xE2..=0xFC | Unassigned MUST-understand Metadata | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xFD..=0xFFF9 | Unassigned | ❌ | ❌ | ❌ |
+-------------------+--------------------------------------+----+--------+--------+
| 0xFFFA..=0xFFFF | Experimental | ✅ | [1] | ✅ |
+-------------------+--------------------------------------+----+--------+--------+
[1] See note above regarding experimental typecodes in zu addresses.
[2] Permitted only in UFVKs and UIVKs, as specified in Viewing Key Birthday Height Metadata.
[3] Permitted only in UFVKs, as specified in Key Derivation Metadata.
Additions to this registry are made via 2xxx-series ZIPs. This table will be updated by the ZIP Editors when such a ZIP transitions to Proposed status.
Deriving Internal Keys
In addition to external addresses suitable for giving out to Senders, a wallet typically requires addresses for internal operations such as change and auto-shielding.
We desire the following properties for viewing authority of both shielded and transparent key trees:
- A holder of an FVK can derive external and internal IVKs, and external and internal components.
- A holder of the external IVK cannot derive the internal IVK, or any of the components.
- A holder of the external component cannot derive the internal component, or any of the IVKs.
For shielded keys, these properties are achieved by the one-wayness of and of or (for Sapling and Orchard respectively). Derivation of an internal shielded FVK from an external shielded FVK is specified in the "Sapling internal key derivation"19 and "Orchard internal key derivation"21 sections of ZIP 32.
To satisfy the above properties for transparent (P2PKH) keys, we derive the external and internal components from the transparent FVK (described in Encoding of Unified Full/Incoming Viewing Keys) as follows:
- Let where is bytes, as specified in35.
- Let be the first bytes of and let be the remaining bytes of .
Since an external P2PKH FVK encodes the chain code and public key at the Account level, we can derive both external and internal child keys from it, as described in BIP 4440. It is possible to derive an internal P2PKH FVK from the external P2PKH FVK (i.e. its parent) without having the external spending key, because child derivation at the Change level is non-hardened.
As of Revision 2, to satisfy the above properties for transparent P2SH keys, we derive the external and internal components from the P2SH FVK (described in P2SH Viewing Key Items) as follows:
- Let be the raw encoding of the P2SH Viewing Key Item (i.e. the concatenation of , , , and the key information entries, as specified in P2SH Viewing Key Items).
- Let .
- Let be the first bytes of and let be the remaining bytes of .
Since a P2SH FVK encodes the keys, with their chain codes, at a level from which both external and internal child keys can be derived (via the /** multipath notation in the descriptor template), we can derive both external and internal P2SH addresses without having any spending key, because child derivation at the Change and Index levels is non-hardened.
Deriving a UIVK from a UFVK
As a consequence of the specification in MUST-understand Typecodes, as of Revision 2 a Consumer of a UFVK MUST understand the meaning of all "MUST-understand" Metadata Item Typecodes present in the UFVK in order to derive a UIVK from it.
If the source UFVK is Revision 2 then the derived UIVK SHOULD be Revision 2; if the source UFVK includes any MUST-understand Metadata Items then the derived UIVK MUST be Revision 2.
For Metadata Items recognised by the Consumer, the processing of the Item when deriving a UIVK is specified in the section or ZIP describing that Item.
The following derivations are applied to each component FVK:
- For a Sapling FVK, the corresponding Sapling IVK is obtained as specified in4.
- For an Orchard FVK, the corresponding Orchard IVK is obtained as specified in5.
- For a Transparent P2PKH FVK, the corresponding Transparent P2PKH IVK is obtained by deriving the child key with non-hardened index as described in38.
- For a P2SH FVK (as of Revision 2), the corresponding P2SH IVK is obtained by:
- Replacing each occurrence of
/**in the descriptor template with/*. - For each key in the key information vector, deriving the child key with non-hardened index (external chain) as described in 38, and appending (non-hardened) to the key's derivation path.
- Replacing each occurrence of
In each case, the Typecode remains the same as in the FVK.
Items (including Metadata Items that are not "MUST-understand") that are unrecognised by a given Consumer, or that are specified in experiments that the user has not opted into (see Experimental Usage), MUST be dropped when the Consumer derives a UIVK from a UFVK.
Deriving a Unified Address from a UIVK
As a consequence of the specification in MUST-understand Typecodes, as of Revision 2 a Consumer of a UIVK MUST understand the meaning of all "MUST-understand" Metadata Item Typecodes present in the UIVK in order to derive a Unified Address from it.
If the source UIVK is Revision 2 then the derived Unified Address SHOULD be Revision 2; if the source UIVK includes any MUST-understand Metadata Items then the derived Unified Address MUST be Revision 2.
For Metadata Items recognised by the Consumer, the processing of the Item when deriving a Unified Address is specified in the section or ZIP describing that Item.
To derive a Unified Address from a UIVK we need to choose a diversifier index, which MUST be valid for all of the Viewing Key Types in the UIVK. That is,
- A Sapling diversifier index MUST generate a valid diversifier as defined in ZIP 32 section “Sapling diversifier derivation” 18.
- A Transparent diversifier index MUST be in the range to inclusive.
- There are no additional constraints on an Orchard diversifier index.
Note: A diversifier index of 0 may not generate a valid Sapling diversifier (with probability ). Some wallets (either prior to the deployment of ZIP 316, in violation of the above requirement, or because they do not include a Sapling component in their UAs) always generate a Transparent P2PKH address at diversifier index 0. Therefore, all Zcash wallets, whether or not they support Unified Addresses, MUST assume that there may be transparent funds associated with diversifier index 0 for each ZIP 32 account, even in cases where the wallet implementation would not generate a Unified Address with that index for a given account. This is necessary to ensure reliable recovery of funds if key material is imported between wallets.
The following derivations are applied to each component IVK using the diversifier index:
- For a Sapling IVK, the corresponding Sapling Receiver is obtained as specified in4.
- For an Orchard IVK, the corresponding Orchard Receiver is obtained as specified in5.
- For a Transparent P2PKH IVK, the diversifier index is used as a BIP 44 child key index at the Index level41 to derive the corresponding Transparent P2PKH Receiver. As is usual for derivations below the BIP 44 Account level, non-hardened (public) derivation38 MUST be used. The IVK is assumed to correspond to the extended public key for the external (non-change) element of the path. That is, if the UIVK was constructed correctly then the BIP 44 path of the Transparent P2PKH Receiver will be .
- As of Revision 2, for a Transparent P2SH IVK, the corresponding P2SH Receiver is obtained by:
- For each key in the key information vector, deriving the child key at the diversifier index using non-hardened BIP 32 public derivation 38.
- Instantiating the descriptor template by substituting each
@Nplaceholder with the corresponding derived public key, evaluating the resulting output descriptor44 to obtain the output script, and computing the HASH160 of the serialized script to produce the P2SH Receiver Encoding.
Items (including Metadata Items that are not "MUST-understand") that are unrecognised by a given Consumer, or that are specified in experiments that the user has not opted into (see Experimental Usage), MUST be dropped when the Consumer derives a Unified Address from a UIVK.
See Address Expiration Metadata for discussion of potential linking of Diversified Unified Addresses via their metadata.
Usage of Outgoing Viewing Keys
When a Sender constructs a transaction that creates Sapling or Orchard notes, it uses an outgoing viewing key, as described in 6 and7, to encrypt an outgoing ciphertext. Decryption with the outgoing viewing key allows recovering the sent note plaintext, including destination address, amount, and memo. The intention is that this outgoing viewing key should be associated with the source of the funds.
However, the specification of which outgoing viewing key should be used is left somewhat open in6 and 7; in particular, it was unclear whether transfers should be considered as being sent from an address, or from a ZIP 32 account23. The adoption of multiple shielded protocols that support outgoing viewing keys (i.e. Sapling and Orchard) further complicates this question, since from NU5 activation, nothing at the consensus level prevents a wallet from spending both Sapling and Orchard notes in the same transaction. (Recommendations about wallet usage of multiple pools will be given in ZIP 31531.)
Here we refine the protocol specification in order to allow more precise determination of viewing authority for UFVKs.
A Sender will attempt to determine a "sending Account" for each transfer. The preferred approach is for the API used to perform a transfer to directly specify a sending Account. Otherwise, if the Sender can ascertain that all funds used in the transfer are from addresses associated with some Account, then it SHOULD treat that as the sending Account. If not, then the sending Account is undetermined.
The Sender also determines a "preferred sending protocol" —one of "transparent", "Sapling", or "Orchard"— corresponding to the most preferred Receiver Type (as given in Encoding of Unified Addresses) of any funds sent in the transaction.
If the sending Account has been determined, then the Sender SHOULD use the external or internal (according to the type of transfer), as specified by the preferred sending protocol, of the full viewing key for that Account (i.e. at the ZIP 32 Account level).
If the sending Account is undetermined, then the Sender SHOULD choose one of the addresses, restricted to addresses for the preferred sending protocol, from which funds are being sent (for example, the first one for that protocol), and then use the external or internal (according to the type of transfer) of the full viewing key for that address.
Jumbling
Security goal (near second preimage resistance):
- An adversary is given Unified Addresses/Viewing Keys, generated honestly.
- The attack goal is to produce a “partially colliding” valid Unified Address/Viewing Key that:
- has a string encoding matching that of one of the input Addresses/Viewing Keys on some subset of characters (for concreteness, consider the first and last characters, up to some bound on );
- is controlled by the adversary (for concreteness, the adversary knows at least one of the private keys of the constituent Addresses).
Security goal (nonmalleability):
- In this variant, part b) above is replaced by the meaning of the new Address/Viewing Key being “usefully” different than the one it is based on, even though the adversary does not know any of the private keys. For example, if it were possible to delete a shielded constituent Address from a UA leaving only a Transparent Address, that would be a significant malleability attack.
Discussion
There is a generic brute force attack against near second preimage resistance. The adversary generates UAs / UVKs at random with known keys, until one has an encoding that partially collides with one of the targets. It may be possible to improve on this attack by making use of properties of checksums, etc.
The generic attack puts an upper bound on the achievable security: if it takes work to produce and verify a UA/UVK, and the size of the character set is , then the generic attack costs .
There is also a generic brute force attack against nonmalleability. The adversary modifies the target UA/UVK slightly and computes the corresponding decoding, then repeats until the decoding is valid and also useful to the adversary (e.g. it would lead to the Sender using a Transparent Address). With defined as above, the cost is where is the probability that a random decoding is of the required form.
Solution
We use an unkeyed 4-round Feistel construction to approximate a random permutation. (As explained below, 3 rounds would not be sufficient.)
Let be a hash personalized by , with maximum output length bytes. Let be a XOF (a hash function with extendable output length) based on , personalized by .
Define . For the instantiation using BLAKE2b defined below, .
Given input of length bytes such that , define by:
- let
- let
- split into of length bytes and of length bytes
- let
- let
- let
- let
- return .
The inverse function is obtained in the usual way for a Feistel construction, by observing that implies .
The first argument to BLAKE2b below is the personalization.
We instantiate by with .
We instantiate as the first bytes of the concatenation of .
Diagram of 4-round unkeyed Feistel construction
(In practice the lengths and will be roughly the same until is larger than bytes.)
Usage for Unified Addresses, UFVKs, and UIVKs
In order to prevent the generic attack against nonmalleability, there needs to be some redundancy in the encoding. Therefore, the Producer of a Unified Address, UFVK, or UIVK appends the HRP, padded to 16 bytes with zero bytes, to the raw encoding, then applies before encoding the result with Bech32m.
The Consumer rejects any Bech32m-decoded byte sequence that is less than 38 bytes or greater than bytes; otherwise it applies . It rejects any result that does not end in the expected 16-byte padding, before stripping these 16 bytes and parsing the result.
Rationale for length restrictions
Click to show/hide
A minimum input length to of 38 bytes allows for the minimum size of a UA/UVK Item encoding to be 22 bytes including the typecode and length, taking into account 16 bytes of padding. This allows for a UA containing only a Transparent P2PKH Receiver:
- Transparent P2PKH Receiver Item:
- 1-byte typecode
- 1-byte encoding of length
- 20-byte transparent address hash
bytes is the largest input/output size supported by .
Allowing only a Transparent P2PKH Receiver is consistent with dropping the requirement to have at least one shielded Item in Revision 2 UA/UVKs (see rationale).
Note that Revision 0 of this ZIP specified a minimum input length to of 48 bytes. Since there were no sets of UA/UVK Item Encodings valid in Revision 0 to which a byte sequence (after removal of the 16-byte padding) of length between 22 and 31 bytes inclusive could be parsed, the difference between the 38 and 48-byte restrictions is not observable, other than potentially affecting which error is reported. A Consumer supporting Revision 2 of this specification MAY therefore apply either the 48-byte or 38-byte minimum to Revision 0 UA/UVKs.
Heuristic analysis
A 3-round unkeyed Feistel, as shown, is not sufficient:
Diagram of 3-round unkeyed Feistel construction
Suppose that an adversary has a target input/output pair , and that the input to is . By fixing , we can obtain another pair such that is close to and is close to . ( and will not be close to and , but that isn't necessarily required for a valid attack.)
A 4-round Feistel thwarts this and similar attacks. Defining and as the intermediate values in the first diagram above:
- if are fixed to the same values as , then ;
- if but , then the adversary is able to introduce a controlled -difference , but the other three pieces are all randomized, which is sufficient;
- if but , then the adversary is able to introduce a controlled -difference , but the other three pieces are all randomized, which is sufficient;
- if and , all four pieces are randomized.
Note that the size of each piece is at least 19 bytes.
It would be possible to make an attack more expensive by making the work done by a Producer more expensive. (This wouldn't necessarily have to increase the work done by the Consumer.) However, given that Unified Addresses may need to be produced on constrained computing platforms, this was not considered to be beneficial overall.
The padding contains the HRP so that the HRP has the same protection against malleation as the rest of the address. This may help against cross-network attacks, or attacks that confuse addresses with viewing keys.
Efficiency
The cost is dominated by 4 BLAKE2b compressions for bytes. A Revision 0 UA containing a Transparent Address, a Sapling Address, and an Orchard Address, would have bytes. A UA containing a Sapling Address and an Orchard Address would have bytes.
For longer UAs (when other Receiver Types are added) or UVKs, the cost increases to 6 BLAKE2b compressions for , and 10 BLAKE2b compressions for , for example. The maximum cost for which the algorithm is defined would be 196608 BLAKE2b compressions at bytes.
A naïve implementation of the function would require roughly bytes plus the size of a BLAKE2b hash state. However, it is possible to reduce this by streaming the part of the jumbled encoding three times from a less memory-constrained device. It is essential that the streamed value of is the same on each pass, which can be verified using a Message Authentication Code (with key held only by the Consumer) or collision-resistant hash function. After the first pass of , the implementation is able to compute ; after the second pass it is able to compute ; and the third allows it to compute and incrementally parse . The maximum memory usage during this process would be 128 bytes plus two BLAKE2b hash states.
Since this streaming implementation of is quite complicated, we do not require all Consumers to support streaming. If a Consumer implementation cannot support UAs / UVKs up to the maximum length, it MUST nevertheless support UAs / UVKs with of at least bytes. Note that this effectively defines two conformance levels to this specification. A full implementation will support UAs / UVKs up to the maximum length.
Dependencies
BLAKE2b, with personalization and variable output length, is the only external dependency.
Related work
Eliminating Random Permutation Oracles in the Even–Mansour Cipher
- This paper argues that a 4-round unkeyed Feistel is sufficient to replace a random permutation in the Even–Mansour cipher construction.
On the Round Security of Symmetric-Key Cryptographic Primitives
LIONESS is a similarly structured 4-round unbalanced Feistel cipher.
Reference implementation
Revision 0:
Revision 1 (Withdrawn):
Revision 2 (Draft):
Acknowledgements
The authors would like to thank Benjamin Winston, Zooko Wilcox, Francisco Gindre, Marshall Gaucher, Joseph Van Geffen, Brad Miller, Deirdre Connolly, Teor, Eran Tromer, Conrado Gouvêa, and Marek Bielik for discussions on the subject of Unified Addresses and Unified Viewing Keys.
Changelog
Revision 1 of this specification originally defined addresses with capabilities essentially equivalent to the tu encoding specified in Revision 2; however, this specification was rejected by the community on the grounds that users should be able to gain some sense of the privacy implications of an address that they are sharing by visual inspection, which unified addresses inhibit in general. Revision 2 proposes the zu and tu prefixes to provide such visual distinguisability while retaining the benefits related to supporting protocol upgrades and expiry metadata for both shielded-only and transparent-transfer-permitting address types.
Citation graph
Cites
- 0 — ZIP Process
- 32 — Shielded Hierarchical Deterministic Wallets
- 48 — Transparent Multisig Wallets
- 203 — Transaction Expiry
- 211 — Disabling Addition of New Value to the Sprout Chain Value Pool
- 224 — Orchard Shielded Protocol
- 312 — FROST for Spend Authorization Multisignatures
- 315 — Best Practices for Wallet Implementations
- 321 — Payment Request URIs
- 2005 — Ironwood Quantum Recoverability
Cited by
- 32 — Shielded Hierarchical Deterministic Wallets
- 216 — Require Canonical Jubjub Point Encodings
- 224 — Orchard Shielded Protocol
- 252 — Deployment of the NU5 Network Upgrade
- 315 — Best Practices for Wallet Implementations
- 320 — Defining an Address Type to which funds can only be sent from Transparent Addresses
- 321 — Payment Request URIs
- 325 — Account Metadata Keys
- 326 — NU6.3 Consequences for Wallets