Skip to content
zips.tools

ZIP 318

Orchard to Ironwood Migration

  • Draft
Proposal metadata
ID
318
Status
Draft
Category
Wallet
Created
2026-06-16
License
MIT
Contents
  1. Destination
  2. Network-layer privacy
  3. Platform considerations
  4. Status notifications
  5. Progress visibility
  6. User-facing copy requirements
  7. Error handling
  8. Rationale
  9. Rationale for the scheduled background approach
  10. Rationale for Poisson transfer scheduling
  11. Rationale for the stateful design
  12. Rationale for canonical amount selection
  13. Rationale for the canonical transaction shape
  14. Rationale for decoupling synchronization from broadcast
  15. Rationale for anchor-height bucketing
  16. Rationale for scaling block counts at NU7
  17. Rationale for anchor selection
  18. Privacy Implications
  19. Threat model
  20. Why value collision provides privacy
  21. On multiplicity and cohorts
  22. On subset-sum
  23. On targeted note tagging
  24. Accepted residual leaks
  25. Whale handling

Pre-signed transaction storage

  • Once the schedule is committed, migration transactions SHOULD be pre-signed and persisted, reusing the wallet's existing transaction-resubmission storage mechanism where one exists.

  • Under the version 6 transaction format, the anchor is committed as authorizing data rather than by the signature hash 2, so a pre-signed transaction's anchor and proof can be updated at (or near) broadcast time without re-signing. This is what allows the entire schedule to be signed in a single session while each transaction carries a boundary anchor drawn from the shared candidate set (see Rationale for anchor selection).

  • A transaction's signatures commit to a consensus branch ID, and the transaction is valid only in blocks to which that consensus branch ID applies 4. A migration transaction can be mined at any height from its scheduled broadcast height to its expiry height. If a network upgrade activates within that range, a wallet that pre-signs the transaction MUST sign it for each consensus branch ID that applies in the range. For example, take a transaction scheduled before NU7 activation whose expiry height is at or after the NU7 activation height. It is signed for both the consensus branch ID before NU7 and that of NU7. The versions spend the same notes, so at most one of them can be mined. The wallet broadcasts the version whose consensus branch ID applies to the next block. If a version broadcast before activation has not been mined when the network upgrade activates, the wallet broadcasts the version for the new consensus branch ID.

  • If a stored transaction becomes invalid (for example, because its input notes were spent outside the migration, it expired, or a network upgrade activated that was not scheduled when it was signed), the wallet MUST detect this and prompt the user to re-initiate the affected step (see Error handling).

Background scheduling

  • Background scheduling MUST be treated as best-effort. The operating system chooses the exact execution time within the requested window.

  • Platform schedulers take wall-clock times, while the schedule is in block heights. When converting a scheduled height into a wake-up time, the wallet SHOULD take into account the block target spacing in effect over the heights in between: 75 seconds before NU7 activation and 25 seconds after it 14.

  • A single background processing window MUST be used either to synchronize (updating the anchors and proofs of upcoming transactions) or to broadcast, never both (see Decoupling synchronization from broadcast).

  • If a scheduled window is missed, the wallet MAY fall back to prompting the user on the next application open (see Fallback on application open).

Platform-specific guidance is given in Platform considerations.

Decoupling synchronization from broadcast

A background session is defined as a period of time wherein the wallet is performing computation and network interaction decoupled from any user interaction with the wallet interface. While a background session and user interaction with the wallet interface may coincide, the wallet MUST NOT permit the user's behavior to influence the execution of the background operations.

  • The wallet MUST NOT perform a wallet synchronization in the same background session as a migration broadcast, because doing so would let an observer correlate the synchronization (which may leak wallet-identifying data) with the broadcast.

  • Where a synchronization is needed, it MUST be separated in time from any broadcast. In the recommended flow migration transactions produce no Orchard-pool change, so the required synchronizations are the one that witnesses the notes produced by note preparation before the first scheduled send, and the routine background synchronizations that allow the proofs of upcoming transactions to be constructed (see Transfer scheduling). A migration transaction that produces change in the Orchard pool (for example, one rebuilt during error recovery) requires the wallet to synchronize before that change can be spent; the wallet MUST schedule that synchronization decoupled in time from the broadcast of the next migration transaction.

How a wallet determines when a synchronization is needed is implementation-defined.

Fallback on application open

  • On every application launch, the wallet MUST reconcile the scheduled broadcast times against the transfers actually completed, and MUST surface any overdue transfers. This on-launch reconciliation is the primary catch-up mechanism and MUST NOT rely on notification delivery.

  • When the user is prompted to send overdue transfers, the wallet SHOULD disclose that sending them at application-open time correlates the broadcasts with the wallet's sync activity, weakening the privacy of those transfers.

  • The wallet MUST NOT send more than one overdue transfer at wallet open. While this may delay the migration of user funds, the alternative (sending multiple transactions with pool-crossing value within the same session) leaks balance.

  • When a window is missed and the remaining transfers are rescheduled, the wallet SHOULD shift the remaining schedule by the offset, or redraw the delays of the remaining transfers.

  • A slip of up to approximately two hours in which the background task eventually runs SHOULD be treated as normal operation and SHOULD NOT be surfaced as an error.

Destination

  • The destination of a migration MUST be the user's internal change address in the Ironwood pool. Migration to the Sapling pool MUST NOT be offered or recommended as part of this flow.

Network-layer privacy

Before the schedule is committed, the wallet MUST present a network-privacy step.

  • The wallet MUST offer Tor 17 and (if available) Nym 18 network options. When enabled, all migration transaction broadcasts MUST be routed through the selected network.

  • If Tor and Nym are unavailable on the user's network or region, the wallet SHOULD suggest using a trusted VPN before proceeding.

  • The user MAY proceed without Tor, Nym, or a VPN; the choice is the user's.

  • The wallet MUST display a disclaimer explaining the IP-correlation risk: because pool-crossing transfers are visible on-chain, without network-level privacy a server or network operator can correlate the broadcasting IP address with the on-chain event; if IPs are reused, this may leak the total Orchard balance of the wallet to the server operator.

  • Broadcasting migration transactions to a different server than the one used for synchronization MAY further reduce correlation, and a wallet MAY do so.

Platform considerations

This section is non-normative except where it restates requirements from Background scheduling and Decoupling synchronization from broadcast. The flow applies to both iOS and Android; differences are noted where they affect implementation.

iOS

  • Background scheduling SHOULD use BGTaskScheduler with a background-processing task type suitable for longer work.
  • A single task execution MUST either synchronize (updating anchors and proofs) or broadcast, never both.
  • If the task does not run, the next application open MUST surface the fallback prompt.

Android

  • Background scheduling SHOULD use WorkManager with a flex interval aligned to the scheduled broadcast heights.
  • A single Worker execution MUST either synchronize (updating anchors and proofs) or broadcast, never both.
  • OEM battery-optimization behaviour (for example on MIUI or One UI) may suppress tasks even when permissions are granted; this is acknowledged as a known limitation. During onboarding the wallet SHOULD request a battery-optimization exemption to improve reliability, and MUST continue to function (relying on the on-launch fallback) if the exemption is denied.
  • On every application launch, the wallet MUST reconcile whether a pending transfer is overdue and surface the fallback prompt if needed.
  • WorkManager task persistence across reboots SHOULD be verified by the implementation; if a boot receiver is used to re-enqueue tasks, the relevant platform permission must be declared.

Status notifications

  • On a successful transfer, the wallet MAY show a notification.

  • On a failed transfer, the wallet MUST surface the failure with the ability to retry. The retry affordance SHOULD lead to a self-contained screen that does not start a synchronization.

  • Notification delivery SHOULD NOT be relied upon as the primary status mechanism; on-launch reconciliation is primary (see Fallback on application open).

  • On platforms where notifications can be cleared by a reboot or suppressed by the OS or OEM managers (notably Android), the wallet MUST disclose that notification delivery is not guaranteed and MUST direct the user to return to the application to check progress.

Progress visibility

The wallet SHOULD report migration progress.

User-facing copy requirements

Because background scheduling is best-effort, product copy SHOULD NOT describe the migration as automatic or guaranteed. The fallback of prompting on the next application open MUST be presented as a normal part of the flow, not as an error state.

Error handling

The wallet MUST handle at least the following conditions.

  • Transient broadcast failure (network unavailable). The stored pre-signed transaction MUST NOT be discarded. The task SHOULD retry within its window and rely on background backoff for the next window. If broadcast continues to fail, the on-launch fallback MUST offer the user the choice to send now or retry in the background.

  • Invalid transaction (input note already spent). If the user spends Orchard-pool funds outside the migration, a queued migration transaction may become invalid. The wallet MUST detect this (the detection condition is that the confirmed-spendable Orchard-pool balance is greater than zero while the next scheduled migration transaction is missing or invalid), MUST notify the user of the failure, and MUST construct a revised schedule for the remaining unspent balance using a fresh anchor. The screen that does so MUST be self-contained and MUST NOT trigger a synchronization. A rebuilt transaction MAY produce change in the Orchard pool: the canonical shape hides whether change is present, so this carries no privacy penalty, only the operational cost of a later synchronization to recover the change.

  • Expired transaction. A pre-signed transaction that reaches its expiry height 19 before being broadcast MUST be detected on the next application open and handled in the same way as an invalid transaction: a new transaction with a fresh anchor and expiry is constructed for the affected part, with its denomination unchanged.

  • Canonical fee change. Exact-value funding notes bake the canonical fee into note values at preparation time. If the canonical fee changes between preparation and broadcast, the affected pre-signed parts no longer match the canonical structure and SHOULD be rebuilt (producing or consuming the difference as Orchard-pool change) or the remaining balance re-prepared. This carries no privacy penalty, but costs an additional confirmation round.

  • Negligible remaining balance. If, after the last scheduled transfer, only an amount below a significance threshold remains (for example, due to fee rounding), the wallet MAY treat the migration as complete and inform the user that a negligible amount remains. If the remaining amount is above MAX_RESIDUAL_VALUE, the wallet MAY add a final transfer. Wallets SHOULD apply the ZIP 317 marginal-fee considerations 15 when deciding whether a residual note is economic to migrate.

  • Note-preparation transaction unconfirmed or failed. If the application is closed before a note-preparation transaction confirms, on re-open the wallet MUST report that it is waiting for confirmation and MUST proceed to scheduling once the preparation transactions confirm. If a preparation transaction expired, the wallet MUST offer to retry it. Where preparation was partitioned across multiple transactions, partial confirmation MUST be handled: parts funded by confirmed preparation outputs MAY proceed on schedule while the remainder waits.

  • Application reinstall or restore on a new device. On detecting unspent Orchard-pool funds with no local migration state, the wallet MAY treat the situation as requiring a fresh migration (already-confirmed transfers remain on-chain; only the remaining balance is rescheduled). See Non-requirements.

Rationale

Rationale for the scheduled background approach

The chosen approach broadcasts migration transactions from best-effort background tasks at pre-determined, randomly drawn times that are de-correlated from the user's interaction with the application. An alternative considered was a guided "on-open" approach, in which each transfer is created at the moment the user opens the application.

The on-open approach was dismissed primarily because user-triggered sends leak too much information: the scan ranges a wallet requests from a light wallet server already link its notes to one user, and if each pool-crossing send also coincides with an application open, an observer can monitor the wallet across the entire migration. It also provides no temporal de-correlation, because every transfer is anchored to the moment of user interaction.

The scheduled approach achieves temporal de-correlation in the common case. Its worst case (when no background task ever runs and the user sends everything on a single application open) is no worse than the on-open approach, while its best case is significantly better. Pre-signed transactions can be stored using existing transaction-resubmission infrastructure.

Rationale for Poisson transfer scheduling

This subsection is non-normative.

Drawing inter-transfer delays from an exponential distribution makes the schedule memoryless: observing one of a wallet's broadcasts gives an observer no information about when its next broadcast will occur, so there is no per-wallet timing signature to recover. Because the superposition of independent Poisson processes is itself a Poisson process, the aggregate traffic of all wallets following this schedule blends into a single pooled process from which no individual wallet's contribution is separable by timing analysis. Shuffling the parts before scheduling extends the same property to values: the sequence of denominations a wallet emits is not a predictable function of its balance.

The mean delay must not be too short relative to the anchor-bucket interval. A schedule whose delays are much shorter than the bucket interval (for example, minutes) would compress a wallet's entire migration into a tight, predictable window, and the burst itself would be a clustering signal. With MEAN_DELAY = 66 reference blocks and the bucket modulus MM = 144 reference blocks (both scaled by the same factor after NU7), a wallet broadcasts about two parts per bucket on average while the exponential tail continues to spread its transfers across several cohorts. This roughly halves the expected inter-transfer latency compared with a 144-block mean. Keeping MAX_DELAY at 576 blocks, more than eight mean delays, preserves nearly all of the exponential distribution's variance while bounding the worst-case gap so that migration completes in bounded time and canonical expiry windows remain practical.

Delays are denominated in reference blocks, and converted to heights, rather than in wall-clock time because bucket boundaries, anchors, and expiry heights are all block-denominated, and block height is what an on-chain observer measures.

Routine background synchronization does not undermine the schedule's de-correlation properties: a synchronization reveals to the light wallet server only that some wallet has synchronized past a given height, while a migration transaction's anchor is the shared boundary anchor common to its entire cohort. Provided synchronization and broadcast never share a background processing window, the server learns nothing that correlates a specific synchronizing wallet with a specific migration transaction.

The same reasoning applies, at a smaller scale, to the note-preparation broadcasts. Their values and direction are fully shielded, but a burst of identically shaped padded transactions appearing at a single instant is a shape-and-timing cluster attributable to one wallet, and such a burst also telegraphs that a migration schedule will follow it. Spacing the preparation broadcasts with a smaller-mean exponential (PREP_MEAN_DELAY) prevents the cluster from forming without materially delaying the migration: preparation is unconstrained by anchor buckets — its transactions anchor at the wallet's ordinary near-tip depth — so its spacing serves only to break up the burst, not to place transactions into shared anchor cohorts.

Rationale for the stateful design

An attractive alternative is a stateless, chain-recoverable design: persist no scheduler state at all, and instead recover migration progress from the chain using the wallet's viewing keys (identifying migration transactions by the canonical predicate) plus a deterministic re-computation of the quantization of the remaining balance. Because the quantization is a pure function of the balance, it recomputes identically on every activation and after restore-from-seed, which makes that design robust to restart and to multi-device restore.

This unified proposal nonetheless adopts a stateful design (a persisted schedule plus pre-signed transactions) and treats statelessness and multi-device/recovery continuity as non-requirements (see Non-requirements). The reasons are:

  • Persisted, pre-signed transactions make best-effort background broadcast practical, and make temporal de-correlation of broadcast from synchronization and from application opens straightforward to implement.
  • Statelessness was judged to make the desired temporal de-correlation harder, not easier, while the robustness it buys (restart and restore continuity) is not required for this flow.

The chain-recoverability property is not wasted: the canonical migration-transaction predicate of Canonical migration transaction structure still lets a wallet, using its viewing keys, reconstruct which denominations have confirmed, which is how the reinstall/restore case is handled as a fresh migration. The full stateless design is recorded as a rejected alternative (see Alternatives).

Rationale for canonical amount selection

Privacy for value-transparent transfers comes from value collision (many wallets emitting the same amount) and ambiguity of grouping (an observer cannot tell which amounts belong together), not from unpredictability of the amount. A high-entropy random amount collides with no other wallet and is a near-unique fingerprint; a random partition into high-entropy pieces additionally exposes the balance to subset-sum reconstruction. Canonical denominations are therefore preferred precisely because they are not distinctive: many wallets emit identical denominations, so no single transfer is identifiable by its value, and a wallet MAY safely place several transfers in one cohort. Randomizing the choice among canonical denominations (see Amount selection, canonical quantization) is categorically different from randomizing amounts: every emitted part still collides with the population, while the multiset emitted for a given balance is no longer predictable, which improves balance hiding and further weakens targeted subset-sum. The detailed privacy argument is in Why value collision provides privacy and the sections that follow it; the discarded random-amount strategies are listed in Alternatives.

Rationale for the canonical transaction shape

The canonical migration transaction spends exactly one Orchard-pool note, pads the Orchard bundle to exactly two actions, and produces exactly one Ironwood output. Under NU6.3, Orchard bundles pair every spend and every output with a dummy counterpart 16, so a bundle's action count is the sum of its spends and outputs; values and the dummy/real distinction are hidden. The canonical two-action Orchard bundle therefore consists of one spend action and one output action, and does not reveal whether the output action carries a change output or a zero-valued dummy. This has two consequences:

  • Indistinguishability from manual spends. An automated migration transaction is structurally identical to a manually created Orchard→Ironwood spend, which takes the same shape. The anonymity set for a migration transaction is therefore the whole population of conforming cross-pool spends, not merely the transactions generated by migrating wallets. Because NU6.3 disables ordinary payments within the old pool 10, that population constitutes essentially all post-upgrade Orchard-pool activity; this strengthens the ZIP 308 11 stance that migration transactions need be hidden only among themselves.

  • Change carries no privacy penalty. A change-bearing migration transaction (for example, one rebuilt during error recovery, or one sent by a wallet that skipped note preparation) is indistinguishable from a change-free one. Producing change has only an operational cost: the change cannot be spent until a later synchronization witnesses it, and a part that would spend it cannot be pre-signed until then.

The Ironwood bundle is a single action, not padded to the two-action minimum. Unlike the Orchard side, where padding hides whether a change output is present, the Ironwood side of a canonical transfer has exactly one output and nothing left to hide: its shape is already fixed by the canonical structure. A padding dummy would therefore buy no indistinguishability, while costing an extra action's proof — a real burden when a hardware device generates the proofs, since each action's proving data must cross the device's bandwidth-constrained link. What matters is that one action count is pinned as canonical: if padding were left optional, conforming wallets would split into distinguishable padded and unpadded populations, partitioning the very anonymity set the canonical shape exists to unify. (The indistinguishability argument above extends to manually created Orchard→Ironwood spends to the extent that they are built to this same single-action shape, which wallet builders are encouraged to use for this transfer form.)

A corollary is that note preparation and pre-signing are motivated operationally rather than by privacy: the privacy properties come from the canonical shape, the canonical values, and the scheduling, while exact-value funding notes are what allow the entire schedule to be pre-signed at once and broadcast in any order.

The same hiding applies to note preparation: because dummy components are indistinguishable from real ones, an NN-action preparation transaction reveals nothing about how its actions divide between spends and outputs — whether it divides notes, combines them, or both. Only its action count and timing are observable.

Rationale for decoupling synchronization from broadcast

Linking synchronization and broadcast in the same background session would let an observer correlate the two events and thereby link the broadcast to the wallet. Keeping them separated in time preserves the de-correlation that the scheduling is designed to provide. The principal place a synchronization is unavoidable is after the note-preparation transactions confirm, since the wallet must witness the prepared notes before the first scheduled send; the exceptional case of a migration transaction that outputs change back to the Orchard pool is handled the same way, by scheduling the synchronization at a different time from the next broadcast.

Rationale for anchor-height bucketing

Drawing anchors from shared, network-wide boundaries means a transaction's anchor reveals only that the creator had scanned beyond that boundary at some time before broadcast, not the wallet's precise sync height or sync schedule, and allows many users' transactions to share anchors. This mirrors the goal of ZIP 308 11 (hiding individual migration transactions among those of all migrating users), adapted to anchor selection in the light-client setting, and complements the anchor-selection guidance of ZIP 315. 6

Rationale for scaling block counts at NU7

The delays, the bucket modulus, and the expiry modulus are chosen for their durations: the time between broadcasts, the time for a cohort to form, and the validity period of a pre-signed transaction. A fixed number of blocks would last one third as long after NU7 reduces the block target spacing from 75 to 25 seconds 13, compressing a schedule into a tighter burst, shrinking cohorts, and shortening validity to 10–20 days. This ZIP therefore states these parameters in reference blocks and scales them by NU7PoWTargetSpacingRatio\mathsf{NU7PoWTargetSpacingRatio}, as ZIP 218 recommends 20.

A delay that crosses activation is converted piecewise so that it keeps its length in time exactly; it is otherwise drawn as before, so a schedule that spans activation keeps its Poisson character in time.

Boundaries after activation are absolute multiples of R⋅MR \cdot M, not multiples of R⋅MR \cdot M counted from AA, so that all wallets agree on the grid using only the height, and so that every boundary is a multiple of MM. A wallet that retains tree states at every multiple of MM therefore retains every boundary, before and after activation, without regard to AA. The one bucket that contains AA can be shorter or longer in time than the others, up to about six hours. On Mainnet, that bucket runs from height 3543264 to height 3543696, and lasts 17800 seconds (4 hours 56 minutes 40 seconds) at the target spacing, rather than 3 hours.

The expiry modulus is selected by the scheduled broadcast height alone, so that the canonical expiry height remains a function of that height and every transaction scheduled in the same period shares it. Every canonical expiry height is a multiple of EXPIRY_MODULUS.

Rationale for anchor selection

This subsection is non-normative.

A "sign ahead, broadcast later" workflow can leak information through anchor selection: if the anchor were fixed at signing time — as it is under the version 5 transaction-digest rules 21, where the anchor is committed by the signature hash — then at broadcast time the gap between the anchor's age and the broadcast height would reveal when the transaction was prepared.

Two design choices eliminate this leak. First, the version 6 transaction format 2 commits the anchor as authorizing data — a public input to the proof — rather than in the signature hash, so the prover can choose the anchor after signing, and the wallet can update a pre-signed transaction's anchor and proof at broadcast time without re-signing (see Pre-signed transaction storage). Second, the anchor is drawn at random from the shared candidate set of boundaries rather than pinned to the most recent boundary.

Pinning to the most recent boundary would create a bottleneck at each boundary: the anonymity set for a transaction anchored at boundary BB is the set of wallets that had scanned beyond BB by proving time — a set that an adversary who compromises a light wallet server can approximate by observing which clients have fetched blocks past BB — and shortly after each boundary that set is small. Drawing the anchor at random from all candidate boundaries means an observed anchor implies membership only in the set of wallets that scanned beyond that boundary at some time before broadcast, a set that has had time to grow. This is also why no privacy-preserving block-download mechanism is required for these invariants: the light wallet server learns which wallets have scanned past a given height, but that knowledge narrows the sender of a migration transaction no further than the anchor itself already does.

The randomized draw carries a tension: an earlier anchor requires the transaction's funding note to have existed at that boundary, so the population able to emit early anchors is bounded by the wallets whose note preparation had confirmed by then — potentially a smaller global anonymity set. This is mitigated by the fact that note preparation can be performed before the network upgrade activates, so the funding notes of many wallets already exist at the earliest post-activation boundaries. The candidate set is nonetheless always restricted to boundaries above the NU6.3 activation height, so that wallets that prepared before the upgrade do not form a distinguishable subpopulation emitting pre-activation anchors.

The draw is recency-weighted rather than uniform over the candidate set, for four reasons. First, uniformity across wallets: under a uniform draw over each wallet's own window, the anchor-age distribution a wallet emits is a function of when it prepared — early preparers emit anchors spread over a wide window, late preparers only recent ones — so anchor age becomes a statistical fingerprint of preparation date. Under a fixed, capped recency-weighted distribution, every wallet whose window is at least ANCHOR_AGE_CAP deep draws from the identical distribution, and wallets with shallower windows are forced toward recent anchors, where the common distribution already concentrates. Second, the cap bounds the inevitable preparation-time leak: an anchor always places the creation of the funding note before it, but no anchor can reveal more than "prepared at least ANCHOR_AGE_CAP boundaries ago" — little more than the act of broadcasting already reveals. Third, concentration: the same reasoning that prefers canonical denominations to high-entropy amounts prefers few, heavily-used anchors to many thinly-used ones; recency weighting produces large per-anchor cohorts. Fourth, alignment with manual spends: a conforming wallet making a one-off Orchard→Ironwood spend will naturally use a recent boundary, and keeping the migration flow's anchor ages similar prevents anchor age from partitioning automated and manual traffic. The cap also bounds the tree states a wallet must retain for proving to the last ANCHOR_AGE_CAP boundaries.

The cost of recency weighting is a sharper posterior on proving time (a recent anchor implies proving shortly after it); this is blunted by the decoupling of proving from broadcast and by the exponential scheduling delay between them, which together turn "shortly after the anchor" into a multi-boundary window. The most recent boundary is excluded entirely because transactions anchored to it could only have been produced by wallets that synchronized within the current boundary interval — the bottleneck in miniature. In the first days after activation, every wallet's window is shallow and all distributions collapse onto the few boundaries that exist; privacy in that regime rests on cohort size (all migrating wallets share those anchors), not on anchor diversity.

Privacy Implications

The migration necessarily reveals information; the requirements in this ZIP are intended to minimize it and to ensure the user consents to what remains. The principal sources of leakage are:

  • Migrated amounts. Each migration transaction reveals on-chain the value it moves from the Orchard pool to the Ironwood pool. 7 Quantizing the balance into canonical denominations means no single transaction reveals the user's whole Orchard-pool balance, and each amount collides with those of many other wallets.

  • Linkage between a wallet's own transfers. If multiple migration transactions could be grouped by a shared distinctive value, anchor, expiry, or broadcast time, an observer might cluster them as belonging to one wallet. Canonical amounts, shared network-wide boundary anchors, bucketed expiries, and de-correlated broadcast times are intended to defeat this clustering.

  • Synchronization timing. The anchor height of a transaction reveals that its creator had scanned beyond that height at some time before broadcast. Drawing anchors at random from the shared boundary set prevents an observer from inferring when a specific wallet synchronized, and from narrowing the sender to the initially small set of wallets that had scanned past the most recent boundary. Triggering a wallet synchronization in the same background session as a broadcast would let an observer correlate the two; synchronization is therefore kept decoupled in time from broadcast.

  • Correlation with user behaviour. If transfers are broadcast at the moment the user opens the application, an observer (in particular a light wallet server that also sees the user's scan-range requests) can monitor the wallet across the whole migration. De-correlating broadcasts from application opens is the primary privacy goal of the chosen approach.

  • Network-layer metadata. Without network-level privacy, the server or network operator that receives a broadcast can correlate the broadcasting IP address with the on-chain pool-crossing event. This ZIP requires offering Tor as an opt-in and disclosing the residual IP-correlation risk.

  • Change back to the Orchard pool. A migration transaction that produces change in the Orchard pool requires the wallet to synchronize before that change can be spent, creating a point where synchronization and migration interact and must be carefully separated in time. Because the canonical shape pads the Orchard bundle to two actions, the presence or absence of change is not itself visible on-chain; the concern is operational, not a distinguisher.

  • Note-preparation transactions. A note-preparation transaction is fully shielded: its values, and whether it divides notes, combines them, or both, are hidden. Its only observable features are its action count and its timing, which reveal at most a loose bound on the number of notes involved.

The remaining subsections of this section are non-normative; they analyze the privacy properties of the procedure specified above.

Threat model

This subsection is non-normative.

The adversary observes all on-chain migration transactions: for each, the net Orchard-out and Ironwood-in amounts and the block (hence time). The adversary does not see addresses. The adversary's goal is clustering: partitioning the global stream of migration transactions into per-wallet sets. Successful clustering reconstructs a wallet's migration (and hence its balance and behavior) without any address.

We additionally consider a targeted adversary who augments chain observation with off-chain knowledge of a victim's incoming note values — in the strongest case having deliberately sent the victim notes of attacker-chosen values ("tagging"). This adversary's goal is to determine whether, when, or in what amounts the victim has migrated (see On targeted note tagging).

Why value collision provides privacy

This subsection is non-normative.

Privacy for value-transparent transfers comes from value collision (many wallets emitting the same amount) and ambiguity of grouping (an observer cannot tell which amounts belong together), not from unpredictability of the amount. Randomizing amounts is counterproductive: a high-entropy amount collides with no other wallet and is a near-unique fingerprint.

Every part in this design is a canonical denomination drawn from a small shared set (…, 100, 50, 20, 10, 5, 2, 1, 0.5, …). Many wallets emit identical denominations, so no single part is distinctive by its value.

On multiplicity and cohorts

This subsection is non-normative.

A wallet MAY place several parts into the same cohort. This does not let the adversary attribute those parts to one wallet, because:

  • Canonical values are not self-identifying. Several 100-ZEC parts in a cohort cannot be attributed to one contributor versus several; the adversary cannot tell whether three co-located 100s came from one wallet or three. The grouping is ambiguous by construction, and there is no rare value to anchor a reconstruction (the design has no high-entropy remainder).
  • Parts are not linked by inputs. Each part is a separate transaction spending an Orchard-pool note, which publishes only an unlinkable nullifier; shielded inputs do not visibly link a wallet's transactions. The mandated absence of transparent components, the shared boundary anchors, the canonical fee, and the uniform two-action, single-output structure mean nothing on-chain ties one wallet's co-located parts together.

This is precisely why multiplicity is safe only under canonical amounts.

What a cohort does reveal is only the aggregate throughput of the entire migrating population (the total value of all parts sharing that anchor), which is population-level information, not any individual's magnitude.

On subset-sum

This subsection is non-normative.

A worry with canonical decompositions is targeted subset-sum (find a subset summing to a known target). This specification accepts the limited residual exposure on the following grounds:

  • Canonical values compose ambiguously: many unrelated parts sum to clean totals, so the constraint "this subset sums to a round number" is weak and yields exponentially many spurious solutions for an untargeted adversary (one without a known total).
  • If an adversary already knows a wallet's total balance from off-chain data, learning that the wallet migrated that balance reveals no new information; the only further gain would be transaction-level linkage, which remains hard due to canonical collision, dispersion, and the lack of intra-cohort linkage.
  • Therefore the dominant practical risk is rarity (below), which the DENOM_CAP bounds.

On targeted note tagging

This subsection is non-normative.

An adversary may target a victim by sending notes of attacker-chosen, distinctive values, hoping to recognize those values (or their sum) when the victim's funds cross the pool boundary. Three mechanisms defeat this:

  • Quantization severs received values from migrated values. Migrated amounts are drawn from the canonical denomination set regardless of the values of the notes that fund them; a distinctive received value never appears as a pool-crossing amount, and any sub-MAX_RESIDUAL_VALUE tail it contributes is withheld as the residual rather than revealed.

  • Note preparation absorbs tagged notes invisibly. The preparation transaction is fully shielded, so consuming a tagged note and re-minting canonical funding notes reveals nothing about the tagged note's value or whether it participated at all.

  • Randomized decomposition hides the multiset. Even an adversary who knows the victim's entire balance (for example, having funded it) cannot predict the emitted denomination multiset when the wallet randomizes its decomposition, and every denomination the adversary might look for collides with those of concurrently migrating wallets.

What the tagging adversary retains is population-level information: that some wallets migrated during a given period. Determining that a specific victim's funds have — or have not — migrated requires clustering the victim's transactions out of that population, which the mechanisms above are designed to prevent.

Accepted residual leaks

This subsection is non-normative.

  • Rarity bounded by the cap. No single part exceeds the maximum denomination of 10000 ZEC, so no transfer is extremely large/rare. Larger denominations (e.g. 10000 ZEC) are rarer than smaller ones, but every value is shared by many wallets in a large migrating population.
  • Aggregate cohort throughput. A cohort reveals the population's total migrated value at that boundary (not individual magnitudes).
  • Total part count and migration duration for very large balances loosely indicate bucketed magnitude (a whale emits many parts over a longer period), which is far weaker than a unique value.
  • Whale self-selection (deliberate). Large holders who want fast, clean UX may choose to migrate in a single transfer instead of using this procedure. This is accepted: forcing whales into a long, manually-driven many-transaction process would harm adoption, and lower adoption shrinks the anonymity set for everyone.

Whale handling

This subsection is non-normative.

Citation graph

Hover or tap a node to see its title and citations.
Loading citation graph…