ZIP: 233
Title: Network Sustainability Mechanism: Removing Funds From Circulation
Owners: Jason McGee <[email protected]>
Zooko Wilcox <[email protected]>
Mark Henderson <[email protected]>
Tomek Piotrowski <[email protected]>
Mariusz Pilarek <[email protected]>
Paul Dann <[email protected]>
Original-Authors: Nathan Wilcox
Credits:
Status: Draft
Category: Consensus / Ecosystem
Created: 2023-08-16
License: BSD-2-Clause
Discussions-To: <https://github.com/zcash/zips/issues/922>
The key word “MUST” in this document is to be interpreted as described in BCP 14 1 when, and only when, it appears in all capitals.
The term “network upgrade” in this document is to be interpreted as described in ZIP 200. 2
The character § is used when referring to sections of the Zcash Protocol Specification. 3
The terms “Mainnet” and “Testnet” are to be interpreted as described in § 3.12 ‘Mainnet and Testnet’. 4
“ZEC/TAZ” refers to the native currency of Zcash on a given network, i.e. ZEC on Mainnet and TAZ on Testnet.
“Block Subsidy” - The algorithmic issuance of ZEC/TAZ on block creation, as defined by consensus. This is split between the miner and Funding Streams.
“Issuance” - The method by which ZEC/TAZ becomes available for circulation on the network. [TODO: there is a potential terminology conflict between this and issuance as defined in ZIP 227.]
\(\mathsf{MAX\_MONEY}\kern-0.05em\textsf{,}\) as defined in § 5.3 ‘Constants’ 5, is the total ZEC/TAZ supply cap measured in zatoshi, corresponding to 21,000,000 ZEC. This is slightly larger than the supply cap for the current issuance mechanism, but is the value used in existing critical consensus checks.
This ZIP proposes the introduction of a mechanism to voluntarily remove funds entirely from circulation on the network. The explicit intent of this removal is that the funds will be returned to circulation through future block subsidies, rather than being permanently destroyed or held in reserve for discretionary use. This mechanism, in combination with ZIPs 235 6 and 237 7, comprises a long-term strategy for the sustainability of the network. We will refer to the combined effects of these three ZIPs as the “Network Sustainability Mechanism”.
This mechanism seeks to address concerns about the sustainability of the network design shared by Bitcoin-like systems:
ZIP 233 adds a new type of transparent transaction event that is fully visible to chain observers, and linked to other events performed in the transaction. The removal of funds from circulation does represent a potential distinguisher; transactions that intentionally remove funds from circulation are likely to represent a small fraction of Zcash transactions, and so this will provide another tool that adversaries may use to be able to segment users of the network.
This ZIP proposes to register bundle type 6 variant 0 (“ZIP 233 NSM field”) in the v7 transaction bundle type registry defined in ZIP 248 8.
| BundleType | BundleVariant | mValuePoolDeltas |
mEffectBundles |
mAuthBundles |
|---|---|---|---|---|
| 6 | 0 | ✅ | ❌ | ❌ |
The NSM bundle has no effecting data and no authorizing data. The amount to be
removed from circulation is represented solely as an entry in mValuePoolDeltas
with bundleType = 6.
When the mValuePoolDeltas map contains an entry with bundleType = 6, the
transaction removes funds from circulation. The entry’s value field MUST be
nonpositive; its negation is denoted \(\mathsf{zip233\_amount}\) and represents
the value in zatoshis removed from circulation when the transaction is mined.
If no such entry is present, \(\mathsf{zip233\_amount}\) is defined to be 0.
For v6 transactions, \(\mathsf{zip233\_amount}\) is defined to be 0.
The NSM bundle’s effect on the transparent transaction value pool does not reflect an output being produced in any chain value pool. At the point at which the transaction is applied to the global chain state, \(\mathsf{zip233\_amount}\) is subtracted from the issued supply. It is unavailable for circulation on the network at least through to the end of the block in which the transaction is mined.
This ZIP proposes to register the following mechanism for removal from circulation in the list defined in ZIP 237 7:
| Mechanism | Source |
|---|---|
| Transaction field | \(\mathsf{NSMFields}(\mathsf{height})\) |
\[\mathsf{NSMFields}(\mathsf{height}) := \sum_{i=0} \mathsf{block}[\mathsf{height}].\mathsf{vtx}[i].\mathsf{zip233\_amount}\]
Let \(\mathsf{NSMBundleId} = 6.\)
Make a change to § 3.4 ‘Transactions and Treestates’ 9 adding the following consensus rules:
[NU7 onward] The value of \(\mathsf{mValuePoolDeltas}[\mathsf{NSMBundleId}]\kern-0.05em\textsf{,}\) if present, MUST be nonpositive. Its absolute value is \(\mathsf{zip233\_amount}\kern-0.05em\textsf{.}\)
[NU7 onward] \(\mathsf{zip233\_amount}\) does not result in an output being produced in any chain value pool.
In § 7.1 ‘Transaction Encoding and Consensus’ 10, add:
[NU7 onward] \(\mathsf{zip233\_amount}\) MUST be in the range \(\{ 0 .. \mathsf{MAX\_MONEY} \}\kern-0.05em\textsf{.}\)
In § 7.1.2 ‘Transaction Consensus Rules’ 10, amend the definition of the total output value of a coinbase transaction to add that transaction’s \(\mathsf{zip233\_amount}\kern-0.05em\textsf{.}\) The definition becomes:
Define the total output value of its coinbase transaction to be the total value in zatoshis of its transparent outputs, minus \(\mathsf{v}^{\textit{SaplingPoolBalance}}\kern-0.05em\textsf{,}\) minus \(\mathsf{v}^{\textit{OrchardPoolBalance}}\kern-0.05em\textsf{,}\) minus \(\mathsf{v}^{\textit{IronwoodPoolBalance}}\kern-0.05em\textsf{,}\) plus \(\mathsf{totalDeferredOutput}(\mathsf{height})\kern-0.05em\textsf{,}\) plus \(\mathsf{zip233\_amount}\kern-0.05em\textsf{.}\)
Each shielded balancing value and \(\mathsf{totalDeferredOutput}\) is zero before the corresponding pool is activated. For pre-v7 transactions, \(\mathsf{zip233\_amount}\) in this definition is zero. The total input value definition and the existing rules comparing total output value with total input value are unchanged. Adding \(\mathsf{zip233\_amount}\) counts the value removed from circulation as consumed, even though it does not produce an output in a chain value pool.
\(\mathsf{zip233\_amount}\) is committed to in the transaction identifier via
value_pool_deltas_digest and in the variant 0 signature digest via the
txid_digest supplied to it, as defined in ZIP 248 8. The NSM
bundle’s entry is included in that commitment regardless of the transparent
signature’s hash_type. Since the NSM bundle (bundle type 6) has no effecting
data and no authorizing data, its only contribution to these digests is through
its entry in mValuePoolDeltas.
All of these changes apply identically to Mainnet and Testnet.
All technical decisions in this ZIP are balanced between the necessary robustness of the NSM mechanics, and simplicity of implementation.
An explicit value distinguishes the funds to remove from circulation from the transaction fee. Explicitness also ensures any arithmetic flaws in any implementations are more likely to be observed and caught immediately.
This ZIP is not deployed in Network Upgrade 7. 11 It is proposed to activate in a later network upgrade.
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” ↩︎
Zcash Protocol Specification, Version 2025.6.2 [NU6.1] or later ↩︎
Zcash Protocol Specification, Version 2025.6.2 [NU6.1]. Section 3.12: Mainnet and Testnet ↩︎
Zcash Protocol Specification, Version 2025.6.2 [NU6.1]. Section 5.3: Constants ↩︎
ZIP 237: Network Sustainability Mechanism: Halving-Preserving Issuance ↩︎
Zcash Protocol Specification, Version 2025.6.2 [NU6.1]. Section 3.4: Transactions And Treestates ↩︎
Zcash Protocol Specification, Version 2025.6.2 [NU6.1]. Section 7.1.2 Transaction Consensus Rules ↩︎