diff --git a/zip-0320.html b/zip-0320.html index 6087999b..ac846081 100644 --- a/zip-0320.html +++ b/zip-0320.html @@ -3,6 +3,7 @@
The key words "MUST", "MUST NOT", "SHOULD", and "MAY" in this document are to be interpreted as described in BCP 14 1 when, and only when, they appear in all capitals.
+The terms below are to be interpreted as follows:
+This ZIP defines a new encoding for transparent Zcash addresses. Wallets must ensure that no shielded notes are spent in transactions that send to a transparent address encoded in the specified fashion.
+This ZIP is presently in Draft status, and defines two alternate encodings
+The Binance cryptocurrency exchange requires that funds sent to their deposit addresses come from source addresses that are readily identifiable using on-chain information, such that if necessary funds may be rejected by sending them back to the source address(es). This ZIP is intended to standardize a transparent address encoding that is only usable by wallets that understand and will respect this constraint.
+A TEX Address is a bech32m
reencoding of a transparent Zcash P2PKH address 5
The TEX Address is the simplest-possible approach to creating a new address type that indicates that only transparent sources of funds should be used.
+A TEX address may be produced from a mainnet Zcash P2PKH Address by executing the following steps:
+base58check
decoding algorithm.bech32m
encoding as defined in 6 with the human-readable prefix (HRP) 'tex'
.For testnet addresses, the lead bytes of a P2PKH address are
+ \(\mathtt{[0x1C, 0xB8]}\)
+ and the 'textest'
HRP should be used when reencoding.
A Traceable Unified Address is a reencoding of a transparent Zcash address into a Unified Address 2.
+Traceable Unified Addresses fit into the existing Zcash Unified Address ecosystem. As such, wallets that support Unified Addresses will be able to parse (but not necessarily send to) a Traceable Unified Address. Even in the case that Traceable Receivers are not understood by the sending wallet, a Unified Address-supporting wallet will be able to automatically provide good error messages for their users to indicate that the wallet needs to be updated to understand these addresses.
+In addition, by integrating with the Unified Address framework, it becomes possible for the addresses being generated to include extra metadata, in particular, metadata items such as an Address Expiry Height or Address Expiry Date 4 may be included. For exchange use cases such as Binance's, it is useful to ensure that an address provided to a user has a limited utility life, such that after expiration the user must obtain a new address in order to be able to continue to send funds.
+Upon activation of this ZIP, the section Encoding of Unified Addresses of ZIP 316 2 will be modified to define a new Traceable Receiver Type having typecode + \(\mathtt{0x04}\) + , the value of which must be the 20-byte validating key hash of a Zcash P2PKH Address as defined in 5.
+The "Requirements for both Unified Addresses and Unified Viewing Keys" section of ZIP 316 3 will be modified as follows:
+A Unified Address or Unified Viewing Key MUST contain at least one +shielded Item (Typecodes :math:`\mathtt{0x02}` and :math:`\mathtt{0x03}`). +The rationale is that the existing P2SH and P2PKH transparent-only +address formats, and the existing P2PKH extended public key format, +suffice for representing transparent Items and are already supported +by the existing ecosystem.+
will be replaced by:
+A Unified Address MUST contain at least one Receiver, plus any number +of Metadata Items. The selection of Receivers is further restricted +such that a Unified Address MUST **either** contain at least one shielded +Receiver (Typecodes :math:`\mathtt{0x02}` and :math:`\mathtt{0x03}`), OR +MUST contain **only** a Traceable Address Receiver (Typecode +:math:`\mathtt{0x04}`). + +A Unified Viewing Key MUST contain at least one shielded Item (Typecodes +:math:`\mathtt{0x02}` and :math:`\mathtt{0x03}`).+
A Traceable Unified Address is produced from a mainnet Zcash P2PKH address by executing the following steps:
+base58check
decoding algorithm.Javascript library zcash_address_wasm:
+ +Rust:
+ +1 | +Information on BCP 14 — "RFC 2119: Key words for use in RFCs to Indicate Requirement Levels" and "RFC 8174: Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words" | +
---|
2 | +ZIP 316: Unified Addresses | +
---|
3 | +ZIP 316: Requirements for both Unified Addresses and Unified Viewing Keys | +
---|
4 | +ZIP 316: | +
---|
5 | +Zcash Protocol Specification, Version 2023.4.0. Section 5.6.1.1 Transparent Addresses | +
---|
6 | +BIP 350: Bech32m format for v1+ witness addresses | +
---|