Terminology§
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 “Mainnet”, “Testnet”, “block subsidy”, “funding stream”, and “coinbase transaction” have the meanings given in the Zcash Protocol Specification 2.
“Zcash Community Grants” (“ZCG”) and the “Financial Privacy Foundation” (“FPF”) have the meanings given in ZIP 1015 3.
The “Ironwood pool” and “recoverable note” have the meanings given in ZIP 2005 4.
Abstract§
The ZCG funding stream, FS_FPF_ZCG_H3, is the only funding stream that the
consensus rules still pay to a transparent address. This ZIP changes where that
stream is paid, and nothing else. From activation, the same 8% of the block
subsidy is paid to a shielded address supplied by the same recipient, FPF, as
an Ironwood-pool output of the coinbase transaction.
The amount, the duration, the recipient organization, and every rule about how ZCG funds are governed and used are unchanged. No lockbox is created, and no funds are removed from circulation.
If the ZIP Editors judge that shielded payment cannot be made ready in a sufficient technical timeframe, or if FPF has not supplied the address when the deployment ZIP becomes Proposed (FPF has at least 30 days), a fallback applies instead: the stream is suspended at activation, and stays suspended until a later ZIP decides otherwise. The fallback does not touch funds that ZCG already holds.
FPF may also supply a Testnet address, so that the whole process, including custody and hardware wallets, can be tested before Mainnet activation.
In either case, after activation, no consensus rule requires any future payment to a transparent address. The amount and destination of each payment stay publicly verifiable, because shielded coinbase outputs can be decrypted by anyone.
Motivation§
Transparent addresses are secured by ECDSA signatures, which a large enough quantum computer could forge. The Ironwood pool was deployed so that shielded funds can be recovered after a post-quantum transition 4. Nothing equivalent is deployed for transparent addresses 5.
Since NU7, every Mainnet block must pay the ZCG stream to one fixed transparent P2PKH address 6. This has two costs:
- The address is reused in every block. Once any output is spent from it, its public key is on the chain, and every later payment to it is exposed to an attacker who can derive the private key.
- A transition that restricts or retires the transparent protocol cannot be completed while the consensus rules themselves require a transparent output in every block.
Removing this address has been tied to a proposal that also ends the ZCG stream and removes 50,000 ZEC of ZCG funds from circulation 7. Those are separate questions. This ZIP lets the address be removed on its own technical merits. Funding changes only if the address cannot be replaced in time, and then only until a later ZIP decides.
Privacy Implications§
Shielded coinbase outputs are required to be decryptable with an all-zero outgoing viewing key 8. Anyone can therefore still verify that each block paid the correct amount to the specified address.
What changes is visibility after receipt. Today the unspent balance at the transparent address is public. After this ZIP, the received notes sit in the Ironwood pool, and whether they have been spent is not public. Transparent coinbase outputs already have to be spent into a shielded pool, so onward movement of these funds is already private today.
FPF can keep the balance publicly auditable by publishing a viewing key for the address. This ZIP does not require that.
Under the fallback, no payment is made, so there is nothing to observe.
Requirements§
- From activation, no consensus rule requires a future payment to a transparent address.
- Where shielded payment is deployed on Mainnet, ZCG receives the same amount, per block and in total, for the same duration, as it would without this ZIP.
- Where shielded payment is deployed, the funds remain under the control of the same recipient, FPF, immediately on receipt, as they are today.
- FPF has a fixed, minimum period in which to supply its shielded address, after which the fallback applies without further decision.
- The full process, including FPF’s custody and hardware wallets, can be tested on Testnet before Mainnet activation.
- Each payment remains publicly verifiable.
- The removal of the transparent address does not wait on shielded payment being ready.
- The fallback is temporary by design and is reversed by a later ZIP, not by this one.
Non-requirements§
- Changing the ZCG stream’s percentage or the uses of ZCG funds. The one exception is the fallback, which suspends the stream until a later ZIP decides otherwise.
- Changing, redirecting, or removing funds that ZCG already holds.
- Creating a new lockbox or a new recipient for the 8%.
- Changing the Coinholder-Controlled Fund stream, either lockbox, or the rules for miners' own outputs.
- Removing historical transparent addresses from the specification. They are still needed to validate earlier blocks.
- Restricting or retiring the transparent protocol. That is left to future ZIPs.
Specification§
Activation§
Let \(A\) be the activation height of this ZIP on a network, set by a deployment
ZIP. Let \(E\) be the end height of FS_FPF_ZCG_H3 on that network under the
revision of ZIP 214 9 in force immediately before \(A\kern-0.05em\textsf{.}\) On Mainnet,
this ZIP changes nothing if \(A \geq E\kern-0.05em\textsf{.}\) Testnet is covered by the section
“Testnet”.
The deployment ZIP MUST select, for each network, either shielded payment or the fallback, as the section “Choosing between shielded payment and the fallback” specifies. The sections “Changes to ZIP 207” and “Changes to ZIP 214” describe shielded payment.
Changes to ZIP 207§
In “Funding streams” 10, a new revision adds that each recipient identifier MUST be one of the following:
- the string encoding of a transparent P2PKH or P2SH address;
- the string encoding of a Sapling address;
- the string encoding of a Unified Address 11 that contains an Orchard receiver and no other receiver; or
- the identifier \(\mathsf{DEFERRED\_POOL}\kern-0.05em\textsf{.}\)
A recipient of the third kind is paid in the prescribed way that ZIP 207 already defines for an Orchard address: an Ironwood-pool output of the coinbase transaction that satisfies the rules of ZIP 213 8.
A funding stream that starts at or after \(A\) MUST NOT have a transparent address as a recipient, unless a later ZIP explicitly permits it.
Changes to ZIP 214§
Where shielded payment is selected, a new revision of ZIP 214 makes these changes at \(A\kern-0.05em\textsf{:}\)
- The end height of
FS_FPF_ZCG_H3becomes \(A\kern-0.05em\textsf{.}\) Its recipient list keeps the addresses for the address periods before \(A\kern-0.05em\textsf{.}\) - A new funding stream,
FS_FPF_ZCG_H3_SHIELDED, pays 8/100 of the block subsidy from height \(A\) (inclusive) to height \(E\) (exclusive). Its recipient in every address period is \(\mathsf{ZCGShieldedAddress}\kern-0.05em\textsf{.}\)
On Mainnet, \(\mathsf{ZCGShieldedAddress}\) is <TBD, supplied by FPF>.
On Testnet, \(\mathsf{ZCGShieldedAddress}\) is <TBD, optionally supplied by FPF>.
FS_CCF_H3 is unchanged.
The address§
FPF SHOULD supply the Mainnet \(\mathsf{ZCGShieldedAddress}\) to the ZIP Editors as early as possible. FPF has at least 30 days to supply it, counted from the date this ZIP is first published in Draft status, which is the date the pull request proposing it to the ZIPs repository is opened.
FPF MAY also supply a Testnet \(\mathsf{ZCGShieldedAddress}\kern-0.05em\textsf{,}\) and SHOULD do so if it intends to receive on Mainnet. The Testnet address is meant to let FPF, its custodians, and hardware wallet vendors test receiving and spending the stream before Mainnet activation. It SHOULD be held under the same kind of custody arrangement as the Mainnet address.
The deployment ZIP MUST NOT select shielded payment on a network until that network’s address is recorded in this ZIP.
All provisions of ZIP 1015 3 and ZIP 1016 12 that apply to
FS_FPF_ZCG_H3 and to the funds received from it apply in the same way to
FS_FPF_ZCG_H3_SHIELDED and to the funds received from it.
Choosing between shielded payment and the fallback§
The ZCG stream SHOULD be paid to a shielded address, and the deployment ZIP SHOULD select shielded payment.
Except as specified below and in “Testnet”, the deployment ZIP MAY select the fallback on a network only if the ZIP Editors determine, by consensus among them, that shielded payment cannot be specified, implemented, and tested in a sufficient technical timeframe for the network upgrade that deploys this ZIP. The ZIP Editors MUST publish that determination and the technical reasons for it before the deployment ZIP becomes Proposed.
The determination MUST rest on technical readiness only. Examples are the readiness of consensus node and mining software to build the required coinbase output, and the readiness of FPF to receive at a shielded address.
If the Mainnet \(\mathsf{ZCGShieldedAddress}\) is not recorded in this ZIP when the deployment ZIP becomes Proposed, the deployment ZIP MUST select the fallback on Mainnet. No determination by the ZIP Editors is needed in that case. The deployment ZIP MUST NOT become Proposed with the fallback selected on this ground until FPF’s 30-day period, as specified in “The address”, has ended.
The fallback§
Where the fallback is selected, a new revision of ZIP 214 makes one change at
\(A\kern-0.05em\textsf{:}\) the end height of FS_FPF_ZCG_H3 becomes \(A\kern-0.05em\textsf{.}\) No new funding stream is
created. Under ZIP 207, the 8% is then no longer a funding stream output and
remains part of the block subsidy available to the miner.
The stream stays ended until a later ZIP provides otherwise. That ZIP MAY restore the stream to a shielded address or decide differently. It is not bound by this ZIP.
The fallback does not change the funds that ZCG holds at \(A\kern-0.05em\textsf{,}\) the ZCG Committee’s authority over them under ZIP 1015, or any provision of ZIP 1015 or ZIP 1016 other than the one below.
Where the fallback is selected on Mainnet, this ZIP updates ZIP 1016
Testnet§
On Testnet, the rules above apply with these differences:
- If FPF has supplied a Testnet address, the deployment ZIP SHOULD select shielded payment on Testnet. Otherwise it MUST select the fallback on Testnet. Neither choice on Testnet requires a determination by the ZIP Editors.
- If \(A \geq E\) on Testnet and shielded payment is selected there,
FS_FPF_ZCG_H3_SHIELDEDis still defined on Testnet. It pays 8/100 of the block subsidy from height \(A\) (inclusive) to height \(A + T\) (exclusive), where \(T\) is set by the deployment ZIP and SHOULD be at least one address period as defined in ZIP 207. - If \(A \geq E\) on Testnet and the fallback is selected there, this ZIP changes nothing on Testnet.
Rationale§
Why a shielded address and not a lockbox§
A lockbox recipient would also remove the transparent address, and it needs no address at all. It is rejected here because it changes funding. Value paid to a lockbox cannot be spent until a later ZIP defines a disbursement mechanism, so ZCG would stop receiving usable funds on activation. A shielded address keeps the funds usable by the same recipient at once.
Why a fallback that suspends the stream§
Removing the last transparent address is the purpose of this ZIP, so it should not be held up indefinitely if shielded payment turns out to be hard to deliver. Suspending the stream is the one option that needs no new mechanism and no new address. The ZIP Editors are asked to make the call because it is a question of technical readiness, which is the kind of judgment ZIP 0 already gives them 13. Limiting the determination to technical grounds keeps the fallback from becoming a way to decide funding policy.
Why the suspended 8% goes to miners§
Under the fallback, the suspended 8% stays with miners, which is what ZIP 207 already does when any funding stream ends. The community disagrees about what should happen to ZCG’s funding. Holding the suspended amount in a lockbox would take a position on that question, by deciding who may later claim the funds, and would need a new recipient identifier and balance. Leaving it with miners takes no position and needs no new mechanism.
The cost is that the suspended amount cannot be recovered. A later ZIP that restores the stream restores it only from its own activation. This is accepted because the fallback is meant to be short, and because a fallback that decides funding policy would defeat the purpose of separating the two questions.
Why FPF has a fixed period to supply the address§
Without a deadline, a missing address would block both options: shielded payment needs the address, and the fallback needs the ZIP Editors to find a technical obstacle. A minimum of 30 days gives FPF a fair opportunity to respond. After that, a missing address leads to the fallback automatically, so the removal of the transparent address does not depend on any one party acting.
Why a Testnet address§
No funding stream has had a shielded recipient before. Receiving one involves consensus nodes, mining software, FPF’s custody, and possibly hardware wallets, none of which have handled it. A Testnet address lets all of these be tested end to end before real funds are paid. If the Testnet stream has already ended at activation, a short test stream is defined so that the test is still possible. Testnet coins have no value, so this has no funding effect.
Why an Orchard-only Unified Address§
Orchard addresses have no standalone string encoding, and ZIP 207 identifies every other recipient by its string encoding. ZIP 316 permits a Unified Address with a single shielded receiver 11, so an Orchard-only Unified Address gives an unambiguous string with no new encoding. Excluding other receivers means there is only one way to pay it.
Relation to the lockbox draft§
The draft cited in Motivation specifies a last-resort transparent removal address 7. If that fallback were ever deployed, it would add a new transparent address to the consensus rules. That address would not be a funding stream recipient, so the rule in “Changes to ZIP 207” would not prevent it, but it would run against the motivation of this ZIP.
Why Ironwood and not Sapling§
ZIP 207 already permits a Sapling recipient, so a Sapling address would need less specification work. Sapling notes are not recoverable notes 4, so that choice would not serve the motivation of this ZIP.
Why a new stream and not a new entry in the address list§
ZIP 2008 changed the ZCG address by replacing later entries of the existing address list 6. That takes effect only at the next address period boundary, up to about a month after activation. Ending the old stream at \(A\) and starting a new one makes the change exact: the block at height \(A\) is the first with no required transparent output. The draft cited above uses the same structure to redirect the stream 7.
Why the amount is unchanged§
Both streams use the same numerator and denominator, so ZIP 207 computes the same value for every block.
Open questions§
- Whether FPF can receive and spend Ironwood-pool funds under its current custody arrangements. The stream moved to a P2PKH address in NU7 for operational reasons that are not public 6. If FPF’s custodian supports only transparent addresses, the fallback would apply. The Testnet address is intended to answer this before Mainnet activation.
- Whether all block template producers can build an Ironwood-pool coinbase output. No funding stream has had a shielded recipient before, so every miner would need this for the first time. This has not been checked against current node and mining pool software.
- Whether notes held at the supplied address will in practice be recoverable notes under ZIP 2005, which also depends on how FPF generates its keys.
- Whether FPF should be asked to publish a viewing key, as discussed under Privacy Implications.
- What “a sufficient technical timeframe” means in practice. This ZIP leaves it to the ZIP Editors and does not set a date.
- The exact wording of the update to ZIP 1016 under the fallback. This ZIP states its effect, that the 8% ZCG stream ends at \(A\kern-0.05em\textsf{.}\) Whether ZIP 1016’s own text, such as its statement that the stream’s funds are usable immediately, should be amended, or a note added to it, is left to review.
- The length \(T\) of the Testnet test stream, where the Testnet stream has already ended at activation. It needs to be long enough for FPF and hardware wallet vendors to test receiving and spending.
Deployment§
This ZIP is proposed for the next network upgrade after NU7, or any later one that activates before height \(E\kern-0.05em\textsf{.}\) It can be deployed with or without any other funding proposal. The deployment ZIP records whether shielded payment or the fallback is selected on each network. If another ZIP ends the ZCG stream at the same height, this ZIP has no further effect.
Reference implementation§
None yet.
References§
-
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” ↩︎
-
ZIP 1015: Block Subsidy Allocation for Non-Direct Development Funding ↩︎
-
ZIP 2007: Quantum Recoverability for a Subset of Transparent Addresses (Reserved) ↩︎
-
Draft: Future Dev and Legal Defense Fund Lockbox, and Removal of 50,000 ZEC of ZCG Funds to the Network Sustainability Mechanism ↩︎
-
the 8% funding stream for Zcash Community Grants that ZIP 1016 establishes, and whose funds it makes usable immediately, ends at \(A\) rather than at its end height under ZIP 214. ZIP 1016 is otherwise unchanged. ↩︎