ZIP 318
Orchard to Ironwood Migration
- Draft
Contents
For large balances:
- The number of parts grows with the balance, and with it the expected
duration of the migration (roughly
MEAN_DELAYreference blocks per part). A very large balance therefore takes proportionally longer to migrate. - Dividing a very large note into its funding notes may require layered preparation (see Note preparation transactions), adding each layer's scheduled broadcast spread plus its mining latency to the preparation phase, and additional signing sessions if the layers are not pre-signed as a chain. This is exactly the situation of a wallet consolidating very many small notes, and the two are indistinguishable on-chain.
- per cohort is bounded by
K_MAX(enforced by redrawing anchor ages) to limit the per-cohort count signal, keeping per-wallet multiplicity within a range that the (canonical, ambiguous) cohort can absorb. - Whales remain weakly protected and may self-select to a single transfer, as above.
A note on cohort size vs. per-wallet multiplicity
This subsection is non-normative.
Two different quantities should not be conflated:
- Cohort size (parts from all wallets at a boundary): larger is always better for privacy (bigger crowd). Coordinated boundaries exist to maximize it.
- Per-wallet multiplicity : the number of a single wallet's parts in one
cohort. Under canonical-only amounts, is safe (parts are unattributable),
but
K_MAX(enforced by redrawing anchor ages) keeps modest relative to expected cohort size so that per-wallet multiplicity stays well within the crowd.
Deployment
This is a Wallet-category ZIP and does not itself introduce consensus rules. It applies to wallets once the Ironwood pool is activated by its network upgrade 8 and the migration becomes relevant. The note-preparation phase MAY be performed before that activation (see Phase 1, Note preparation).
Reference implementation
TODO: link to the SDK and wallet pull requests implementing this flow. Phase 2 is intended to be implemented in a Rust backend exposed through a public SDK interface, so that wallets can integrate against a stable interface (initially with mocked data) and later switch to the production implementation.
The zcash_pool_migration crate 22 implements a
backend-agnostic engine for this migration in Rust.
Alternatives
The following alternative designs were considered and rejected.
-
Migrating the raw balance in a single transfer publicly reveals the exact balance, and the transfer is trivially linkable to the wallet's other activity.
-
Random arbitrary amounts per transfer produce high-entropy values that collide with no other wallet; each transfer is a near-unique fingerprint.
-
Random partition into high-entropy pieces: the pieces sum to the balance, exposing it to subset-sum reconstruction, and each piece is self-fingerprinting.
-
Whole-ZEC bucketed parts with a high-entropy sub-1-ZEC remainder: the rare remainder is a discriminator that makes co-locating parts in a cohort dangerous, and is itself near-unique. Superseded by canonical-only quantization, which has no remainder output.
-
Randomized per-wallet multiplicity adds behavioural entropy — itself a fingerprint — without dispersing co-located parts; it is dominated by a deterministic, cohort-size-governed .
-
Guided on-open sending: creating each transfer at the moment the user opens the application makes every broadcast coincide with application opens and light-wallet-server scan-range requests, letting an observer track the wallet across the whole migration; it provides no temporal de-correlation (see Rationale for the scheduled background approach).
-
Short-interval memoryless timing (inter-transfer delays of minutes rather than hours): delays much shorter than the anchor-bucket interval compress a wallet's entire migration into one or two buckets, producing a tight, predictable burst that is itself a clustering signal, and such schedules are incompatible with shared boundary anchors (see Rationale for Poisson transfer scheduling).
-
Stateless, chain-recoverable migration (no persisted schedule): robust to restart and restore-from-seed, but statelessness is a non-requirement here, and persisted state makes temporal de-correlation and pre-signed background scheduling simpler (see Rationale for the stateful design).
-
A privacy/speed slider exposed to the user: the decision and the UI are too complex for typical users; the wallet picks sensible defaults instead.
References
Footnotes
-
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.3 [NU6.1] or later ↩
-
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 3.12: Mainnet and Testnet ↩
-
ZIP 315: Best Practices for Wallet Implementations ↩ ↩2 ↩3 ↩4 ↩5
-
ZIP 209: Prohibit Negative Shielded Chain Value Pool Balances ↩ ↩2 ↩3
-
ZIP 257: Deployment of the Orchard Temporary Vulnerability Mitigation and NU6.2 Network Upgrade ↩
-
ZIP 326: NU6.3 Consequences for Wallets, section "Restrictions on sending" ↩
-
ZIP 218: 25-second Block Target Spacing — Block target spacing ↩ ↩2
-
ZIP 326: NU6.3 Consequences for Wallets, section "Spending from and rebalancing within the Orchard pool" ↩ ↩2
- ↩
Citation graph
Cites
- 200 — Network Upgrade Mechanism
- 203 — Transaction Expiry
- 209 — Prohibit Out-of-Range Chain Value Pool Balances
- 218 — 25-second Block Target Spacing
- 229 — Version 6 Transaction Format
- 244 — Transaction Identifier Non-Malleability
- 257 — Deployment of the Orchard Temporary Vulnerability Mitigation and NU6.2 Network Upgrade
- 258 — Deployment of the NU6.3 Network Upgrade
- 308 — Sprout to Sapling Migration
- 315 — Best Practices for Wallet Implementations
- 317 — Proportional Transfer Fee Mechanism
- 326 — NU6.3 Consequences for Wallets
- 2006 — Restricting Transfers into the Orchard Pool