ZIP: 207 Title: Funding Streams Owners: Jack Grigg <email@example.com> Daira Emma Hopwood <firstname.lastname@example.org> Status: Final Category: Consensus Created: 2019-01-04 License: MIT
The key words "MUST", "SHOULD", "SHOULD NOT", and "MAY" in this document are to be interpreted as described in RFC 2119. 1
The terms "block subsidy" and "halving" in this document are to be interpreted as described in sections 3.9 and 7.7 of the Zcash Protocol Specification. 3 7
The terms "consensus branch" and "network upgrade" in this document are to be interpreted as described in ZIP 200. 10
The terms below are to be interpreted as follows:
This proposal specifies a mechanism to support funding streams, distributed from a portion of the block subsidy for a specified range of block heights.
This is intended as a means of implementing the Zcash Development Fund, using the funding stream definitions specified in ZIP 214 14. It should be read in conjunction with ZIP 1014 16, which describes the high-level requirements for that fund.
Motivation for the Zcash Development Fund is considered in ZIP 1014 16.
This ZIP 207 was originally proposed for the Blossom network upgrade, as a means of splitting the original Founders' Reward into several streams. It was then withdrawn when such splitting was judged to be unnecessary at the consensus level. Since the capabilities of the funding stream mechanism match the requirements for the Zcash Development Fund, the ZIP is being reintroduced for that purpose in order to reuse specification, analysis, and implementation effort.
The primary requirement of this ZIP is to provide a mechanism for specifying the funding streams that are used in ZIP 214 14 to implement the Zcash Development Fund. It should be sufficiently expressive to handle both the main three "slices" (BP, ZF, and MG) defined in ZIP 1014 16, and also (with additional funding stream definitions) the "direct grant option" described in that ZIP.
As for the original Founders' Reward, a mechanism is provided to allow addresses for a given funding stream to be changed on a roughly-monthly basis, so that keys that are not yet needed may be kept off-line as a security measure.
We use the following constants and functions defined in 5, 6, 7, and 8:
We also define the following function:
A funding stream is defined by a block subsidy fraction (represented as a numerator and a denominator), a start height (inclusive), and an end height (exclusive).
By defining the issuance as a proportion of the total block subsidy, rather than absolute zatoshis, this ZIP dovetails with any changes to both block target spacing and issuance-per-block rates. Such a change occurred at the Blossom network upgrade, for example. 11
The value of a funding stream at a given block height is defined as:
An active funding stream at a given block height is defined as a funding stream for which the block height is less than its end height, but not less than its start height.
Each funding stream has an associated sequence of recipient addresses, each of which MUST be either a transparent P2SH address or a Sapling address.
Each address is used for at most 1/48th of a halving interval, creating a roughly-monthly sequence of funding periods. The address to be used for a given block height is defined as follows:
This has the property that all active funding streams change the address they are using on the same block height schedule, aligned to the height of the first halving so that 48 funding periods fit cleanly within a halving interval. This can be leveraged to simplify implementations, by batching the necessary outputs for each funding period.
Below is a visual representation of how stream addresses align with funding periods:
Example height Stream A Stream B Stream C
AddressChangeInterval - 2
AddressChangeInterval - 1
A1 B0 C0
AddressChangeInterval + 1
A1 B0 C0 ...
2*AddressChangeInterval - 2
A1 B0 C0
2*AddressChangeInterval - 1
A1 B0 C0
2*AddressChangeInterval + 1
A2 C1 ...
PostBlossomHalvingInterval - 2
PostBlossomHalvingInterval - 1
PostBlossomHalvingInterval + 1
On Mainnet, Canopy is planned to activate exactly at the point when the Founders' Reward expires, at block height 1046400. On Testnet, there will be a shortened Founders' Reward address period prior to Canopy activation.
Prior to activation of the Canopy network upgrade, the existing consensus rule for payment of the original Founders' Reward is enforced. 8
Once the Canopy network upgrade activates:
OP_HASH160 RedeemScriptHash(height) OP_EQUALas the
For the funding stream definitions to be activated at Canopy, see ZIP 214. 14 Funding stream definitions can be added, changed, or deleted in ZIPs associated with subsequent network upgrades, subject to the ZIP process. 9
This proposal is intended to be deployed with Canopy. 15
This proposal intentionally creates what is known as a "bilateral consensus rule change". Use of this mechanism requires that all network participants upgrade their software to a compatible version within the upgrade window. Older software will treat post-upgrade blocks as invalid, and will follow any pre-upgrade consensus branch that persists.
|1||RFC 2119: Key words for use in RFCs to Indicate Requirement Levels|
|2||Zcash Protocol Specification, Version 2021.2.16 or later|
|3||Zcash Protocol Specification, Version 2021.2.16. Section 3.10: Block Subsidy and Founders' Reward|
|4||Zcash Protocol Specification, Version 2021.2.16. Section 3.12: Mainnet and Testnet|
|5||Zcash Protocol Specification, Version 2021.2.16. Section 5.3: Constants|
|6||Zcash Protocol Specification, Version 2021.2.16. Section 7.7.3: Difficulty adjustment|
|7||Zcash Protocol Specification, Version 2021.2.16. Section 7.8: Calculation of Block Subsidy, Funding Streams, and Founders' Reward|
|8||Zcash Protocol Specification, Version 2021.2.16. Section 7.9: Payment of Founders' Reward|
|9||ZIP 0: ZIP Process|
|10||ZIP 200: Network Upgrade Mechanism|
|11||ZIP 208: Shorter Block Target Spacing|
|12||ZIP 212: Allow Recipient to Derive Sapling Ephemeral Secret from Note Plaintext|
|13||ZIP 213: Shielded Coinbase|
|14||ZIP 214: Consensus rules for a Zcash Development Fund|
|15||ZIP 251: Deployment of the Canopy Network Upgrade|
|16||ZIP 1014: Establishing a Dev Fund for ECC, ZF, and Major Grants|