Introduction
Tachyon
Bundles
This document describes the structure of Tachyon shielded bundles.
Brief
Users create transactions with a bundle of Tachyon shielded data including a Ragu1 proof. These transactions are broadcast to the p2p network.
Before block inclusion, Tachyon shielded data is recursively 'aggregated' in a compact format that ultimately reduces the operational burdens and improves the user experience of the chain.
Concepts
Tachygrams
Tachygrams are 32-byte field elements representing either nullifiers or note commitments. The consensus protocol does not need to distinguish between nullifiers and note commitments, and treats them identically.2
Tachyactions
Each tachyaction indistinguishably represents either the creation or destruction of a note.
- A tachyaction with a commitment tachygram proves a note is created.
- A tachyaction with a nullifier tachygram proves a note is destroyed.
*Each tachyaction is cryptographically bound to one tachygram, but does not contain that tachygram. A tachyaction does contain:
cv- a 32-byte homomorphic commitment to the note's created or destroyed valuerk- a 32-byte public key3 bound to one tachygramsig- a 64-byte RedPallas4 signature byrkover the transaction sighash
Tachystamp
The tachystamp is a recursive zero-knowledge proof that all related tachyactions follow the correct rules.
It contains:
anchor- a chain anchorproof- the recursive proof (which may be aggregated)tachygrams- nullifiers and commitments for each action
The proof establishes:
- tachygrams either create a new note or destroy an existing note
- tachygrams are correctly bound to action keys
- action balance effect matches pool balance effect
The nullifier for epoch is a pseudo-random function of the note's master key and the epoch:
where
- is the note's master key, seeded by the trapdoor committed in the field5
- is the nullifier PRF
- is an epoch index
Bundle Structure
A Tachyon bundle collects tachyactions with authorization data:
tachyactions- the tachyactionsvalue_balance- integer net pool effectbinding_sig- signature over the transaction sighash (same digest as action sigs)tachystamp- anchor, proof, tachygrams (may be aggregated)
---
title: Autonome Bundle
---
flowchart LR
classDef signature fill:#fa807240
classDef optional fill:#d3d3d340,stroke-dasharray: 5 5
style tachyaction1 fill:#7fffd440,stroke:black
style tachyaction2 fill:#7fffd440,stroke:black
style tachyaction3 fill:#7fffd440,stroke:black
style tachyaction_vec fill:#7fffd440,stroke:black
style tachygram_vec fill:#ffa50040,stroke:black
style proof fill:#da70d640
style anchor fill:#f0fff040
style tachystamp fill:#7fff0040
subgraph shielded_data["tachyon::ShieldedData"]
subgraph tachyaction_vec[" "]
subgraph tachyaction1["tachyaction"]
cv1["cv"]
rk1["rk"]
sig1:::signature@{shape: hex, label: "sig"}
end
subgraph tachyaction2["tachyaction"]
cv2["cv"]
rk2["rk"]
sig2:::signature@{shape: hex, label: "sig"}
end
subgraph tachyaction3["tachyaction"]
cv3["cv"]
rk3["rk"]
sig3:::signature@{shape: hex, label: "sig"}
end
end
subgraph tachystamp
anchor@{shape: odd}
proof@{shape: notch-rect}
tachygram_vec@{shape: procs, label: "tachygram"}
anchor ---> proof
tachygram_vec ---> proof
end
rk1 & rk2 & rk3 -.- tachygram_vec
cv1 & cv2 & cv3 ---> proof
sig_binding:::signature@{shape: hex, label: "binding_sig"}
v_balance["value_balance"]
v_balance ---> proof
v_balance ===> sig_binding
tachyaction_vec ===> sig_binding
end
Lifecycle
Users create transactions containing their individual actions and individual stamp, known as autonomes. These are broadcast to the p2p network. Before block inclusion, aggregators strip and merge stamps from selected transactions, producing aggregates (transactions carrying merged stamps) and adjuncts (transactions stripped of their stamp).
See Aggregation for transaction categories, block layout, and validation.
Wire Format
The first byte tachyonBundleState selects one of three bundle states:
| value | state | bundle contents |
|---|---|---|
0b0000_0000 | non-tachyon | no bundle |
0b0000_0001 | stamped | bundle with hStampActionsTachyon, anchor, tachygrams, proof |
0b0000_0010 | stripped | bundle with the covering aggregate's wtxid |
Bundle body
When tachyonBundleState is not 0x00, the state byte is followed by the bundle body, which is the same in both remaining states:
| Name | Format | Description |
|---|---|---|
valueBalanceTachyon | i64 | net value of tachyon actions |
nActionsTachyon | compactsize | number of tachyon actions |
vActionsTachyon | 64 * nActionsTachyon | cv (32 bytes), rk (32 bytes) |
vActionSigsTachyon | 64 * nActionsTachyon | authorization per action over the tx sighash |
bindingSigTachyon | 64 bytes | binding signature over the tx sighash |
nMemoTachyon | compactsize | memo length, 0 when absent |
vMemoTachyon | nMemoTachyon bytes | opaque recipient-directed payload |
The memo is effecting data, so the transaction sighash covers it and auth_digest does not. A relayer rewrites auth_digest while aggregating, so a memo held there could be stripped while the block still committed to the same transaction.
nMemoTachyon is public, and 0 reveals that no payload is present. The field is variable-length because Tachyon has no per-action ciphertext to hide a memo inside: an action is (cv, rk), 64 bytes. The payload is also bimodal, carrying key-exchange ciphertexts on first contact and ordinary memo text otherwise, at sizes differing by more than an order of magnitude. A fixed field would have to be sized for the first-contact case and charged on every transaction.
Stamp trailer
When tachyonBundleState == 0x01, the bundle body is followed by a stamp trailer:
| Name | Format | Description |
|---|---|---|
hStampActionsTachyon | 32 bytes | BLAKE2b-256 digest of the covered action descriptors |
anchorTachyon | 32 bytes | pool state reference |
cTachygrams | 32 bytes | commitment to the tachygrams below |
nTachygrams | compactsize | number of tachygrams |
vTachygrams | 32 * nTachygrams | tachygrams for this proof |
proofTachyon | PROOF_SIZE blob | serialized proof of fixed size |
cTachygrams is carried rather than derived, so full validation recomputes it from vTachygrams and rejects a mismatch. Anchor advancement then absorbs the carried point instead of rebuilding it, which is what lets a validator extend the chain without touching the tachygrams again.
Every action contributes exactly two tachygrams, so a well-formed stamp has
for its own actions, and the sum over covered actions once stamps are merged. A spend publishes its present and next nullifier; an output publishes its note commitment and a padding tachygram. Uniform arity is what keeps the two action kinds indistinguishable in the published set.
hStampActionsTachyon is an assistive indicator: a BLAKE2b-256 digest, under the Tachyon-Actions personalization, over the sorted cv || rk descriptors of every action the stamp covers. It is authorization data that lets observers cheaply identify and correlate transactions without verifying the proof. The proof binds the same actions by a different construction, a Pedersen commitment to their Poseidon digests, so the trailer field is a second digest of one action set rather than a copy of the proof's. See Aggregation → Action set indicator.
Stripped trailer
When tachyonBundleState == 0x02, the bundle body is followed by a stripped trailer:
| Name | Format | Description |
|---|---|---|
tachyonAggregateId | 64 bytes | nonzero wtxid of the covering aggregate |
Every stripped bundle names a covering aggregate, so tachyonAggregateId is always nonzero. This holds even for a stripped innocent (an aggregate with no Tachyon actions of its own): the all-zero wtxid, which refers to no aggregate, is rejected on read.
The stripped trailer carries no hStampActionsTachyon: that field rides on the stamp, so it strips away when a bundle becomes an adjunct. Observers read the covering aggregate's hStampActionsTachyon from the stamped aggregate, not from the adjunct.
-
See Tachyaction at a Distance for the design rationale behind unified tachyactions and tachygrams. ↩
-
Ragu's proof rerandomization conceals private proof inputs by selecting new unrelated proof inputs that verify identically. ↩
-
User-controlled randomness commitment trapdoor ↩
Anchor
An anchor is an element produced by a Poseidon hash chain, representing a running commitment to the Tachyon pool state.
Each stamp and each epoch transition produces a new pool state, but consensus may only acknowledge pool states that represent the end of a block.
These end-of-block states are anchors.
The anchor advances by two kinds of fold. Both absorb an epoch index. A stamp absorption absorbs the epoch of the block that contains the stamp. A validator reads that epoch from the block height. A boundary digest absorbs the epoch being entered. The two folds hash under different Poseidon domains (Tachyon-AnchorSt and Tachyon-AnchorEp). The Poseidon domain of a fold identifies it as a stamp absorption or a boundary digest.
A block that publishes no stamp leaves the anchor unchanged, unless the block starts a new epoch. An anchor identifies a position in the sequence of stamp absorptions and boundary digests.
Stamp absorption
Each stamp lands at a definite position in a definite block, when the block is accepted by consensus. A stamp's contribution to the pool state is
where is the containing block's epoch and are the two 128-bit limbs of the stamp's tachygram-set commitment1 in compressed form. The compressed encoding carries with the sign of in its high bit, so the limb pair determines the point.
Epoch boundary
When the chain crosses from epoch into epoch :
The two folds differ in their Poseidon domain and in which epoch they absorb. A stamp absorption absorbs the epoch it sits in. A boundary digest absorbs the epoch being entered. A stamp absorption with the same output as a boundary digest is a Poseidon collision across the two domains. A proof can therefore check that an anchor is a boundary digest. Consensus membership of the eventual spend anchor binds the lineage to published epoch boundaries.
Two positions at the boundary have names. The entry anchor of is the first anchor of in the accepted chain: for , and for . The final anchor of is the last anchor inside , which equals the entry anchor when published no stamp. The crossing is the single fold joining them.
is a boundary digest for any . For , the entry anchor of is the boundary digest of into . A step that checks that an anchor is a boundary digest into has not checked that it is the entry anchor of .
Intra-block state vs end-of-block anchor
Within a block, each stamp's absorption produces an intermediate hash value.
Consensus actors should know about intermediate states, but may only acknowledge the anchor state at the end of a block.
A proof such as SpendableInit will produce a header that is likely at an intra-block state, and should be lifted to the end of a block by proving state continuity.
-
The tachygrams chapter gives the set commitment this absorbs, and the rule that full validation recomputes it from the published tachygrams. ↩
Key Hierarchy
Tachyon simplifies the Zcash key hierarchy by removing key diversification, viewing keys, and payment addresses from the core protocol. These capabilities are handled by higher-level wallet software through out-of-band payment protocols.1
Derivation
flowchart TB
sk["sk (SpendingKey)"]
ask["ask (SpendAuthorizingKey)"]
pk["pk (PaymentKey)"]
sk -->|"PRF 0x21"| ask
sk -->|"PRF 0x22"| nk
ask -->|"[ask]G"| ak
ak & nk -->|"Poseidon"| pk
subgraph pak["pak (ProofAuthorizingKey)"]
ak["ak (SpendValidatingKey)"]
nk["nk (NullifierKey)"]
end
The spending key derives and via domain-separated PRF expansion:
The payment key is then derived from both and via Poseidon, binding it to the full proof authorizing key.
Comparison with Orchard
| Layer | Orchard | Tachyon | Rationale |
|---|---|---|---|
| Root | Spending key () | Spending key () | Identical |
| Auth | Identical (RedPallas) | ||
| Viewing | Full viewing key () | Removed | Out-of-band |
| Incoming | Removed | Out-of-band | |
| Address | Diversifier , transmission key | No diversification; binds to pak | |
| Proof authorization | Not separated | Authorize proofs for all notes | |
| Per-note delegation | Not separated | Delegate proofs for one note |
The key insight is that removing in-band secret distribution (on-chain ciphertexts) eliminates the need for viewing keys, diversified addresses, and the entire key tree that supports them.
Long-lived Keys
Spending key ()
Raw 32-byte entropy. The root of all authority — must be kept secret. Matches Orchard's representation (raw bytes, not a field element), preserving the full 256-bit key space.
Spend authorizing key ()
A long-lived scalar derived from . Cannot sign directly — it must be randomized into a per-action first. Per-action randomization ensures each is unlinkable to , so observers cannot correlate actions to the same spending authority.
Sign normalization
RedPallas requires the public key to have (sign bit cleared). Pallas point compression encodes in bit 255 of the 32-byte representation. If , we negate :
This flips the y-coordinate sign, producing a valid with . The normalization happens once at derivation time.
Spend validating key ()
The long-lived counterpart of . Corresponds to the "spend validating key" in Orchard (§4.2.3). Constrains per-action in the proof, tying accumulator activity to the holder of .
cannot verify action signatures directly — it must be randomized into a per-action for verification. Component of the proof authorizing key .
Three-tier naming
The spend authorization keys follow a three-tier scheme mapping to private scalar → circuit witness → public on-chain:
| Tier | Rust type | Protocol | Role |
|---|---|---|---|
| Spend-authorizing | SpendAuthorizingKey | Private scalar, enables spend authorization | |
| Spend-validating | SpendValidatingKey | Circuit witness, constrains rk for accumulator binding | |
| Action-verification | ActionVerificationKey | Per-action, verifies signatures (on-chain) |
Nullifier key ()
An element used in nullifier derivation.2 With the note's trapdoor it derives the master key , which keys every epoch's nullifier derivation.
Payment key ()
where is the x-coordinate of the spend validating key. Replaces Orchard's diversified transmission key and the entire diversified address system:
"Tachyon removes the diversifier because payment addresses are removed. The transmission key is substituted with a payment key ." — "Tachyaction at a Distance" (Bowe 2025)
Deriving from binds the payment key to the full proof authorizing key. Since is committed in the note commitment , the accumulator membership check transitively pins both and . A wrong produces a wrong , a wrong , and accumulator inclusion fails.
is deterministic in , so unlinkability comes from minting a fresh address per sender: a receiver walks its wallet-standard derivation path to a freshly indexed pair and hands the sender the that follows. The index sits above rather than between and , so the concrete path is a wallet-standard concern; the protocol requires only that the resulting keys be indistinguishable from randomly sampled ones. Transfer proofs never constrain the derivation. Address distribution is handled out of band (ZIP 321 payment requests, ZIP 324 URI encapsulated payments).
Freshness is receiver-minted by necessity, not by choice of API. A sender-chosen tweak would need to admit one, and is a hash-based commitment deliberately: the diversified-base trick behind Orchard's has no known secure analogue under lattice assumptions, and publishing to senders would expose harvest-now-decrypt-later risk. A hash admits no tweak.
Proof authorizing key ()
Allows constructing proofs without spend authority. The prover uses to constrain and to constrain nullifier correctness in the circuit.
covers all notes because is wallet-wide. For narrower delegation, per-note key bundles restrict scope:
| Bundle | Keys | Holder | Scope |
|---|---|---|---|
| Prover | All notes, all epochs | ||
| per-note | Per-note prover | One note, all epochs |
-
See Tachyaction at a Distance for the full design rationale behind out-of-band payments and the simplified key hierarchy. ↩
-
See Nullifiers for the full derivation. ↩
Notes
A note is a discrete unit of value in the Tachyon shielded pool.
An output operation creates a note by publishing a commitment.
A spend operation consumes a note by publishing a nullifier.
Fields
Tachyon notes are simple: a note carries only its recipient, value, and two trapdoors.
| Field | Type | Description |
|---|---|---|
| recipient's payment key1 | ||
| u64 | value in zatoshi, | |
| nullifier trapdoor2 | ||
| note commitment trapdoor |
Zero-value notes are forbidden.
Commitment
The note commitment binds all four fields:
For an output operation, is the published tachygram.
Nullifier
Complete derivation is covered in Nullifiers.
The note nullifier changes per epoch. Briefly, a nullifier for epoch is derived:
where is the note's master key.
For a spend operation, two nullifiers at present epoch and next epoch are published as tachygrams.
-
See Nullifiers for how enters nullifier derivation. ↩
Nullifiers
A nullifier is a secret bound at note creation, and published later to destroy the note. Each note has a distinct nullifier per epoch.
To spend a note, a transaction author must prove that no valid nullifier for the note has been published in the pool between the note's creation and some anchor1. Spending a note publishes two of its nullifiers to the pool, for the anchor epoch and the next epoch, making such a proof impossible to produce for later anchors.
Pool state is likely to advance between proof creation and mining, so consensus closes the gap by confirming the nullifiers did not enter the pool in the interim.2 The second nullifier allows consensus to tolerate an epoch transition in that interim.
Derivation
A nullifier is the output of a Poseidon sponge. Abstractly,
Because is the output of a pseudo-random function of master key and epoch , distinct epochs have unrelated nullifiers.
Epochs are grouped at sponge rate for proof efficiency. One sponge squeezes consecutive nullifiers starting at base epoch
So is the member at position in its group.
Binding
The master key is derived from the note trapdoor and nullifier key .
The note commitment digests and the payment key , which transitively binds via its own derivation, closing the circle with .
Distinct notes under the same should not re-use because the pair produce an identical and identical sequence of nullifiers.
Delegation
A delegate may observe pool state and prove the absence of nullifiers without holding key material or any information about a note.
The delegate is provided an arbitrary sequence of values to prove absent from epochs and these tested values are committed as a contiguous sequence.
In parallel, proves derivation of a nullifier sequence for a range at least covering the delegated sequence.
Witness material is prepared for the expected complement.
The delegate returns its proof of absence, and the relationship is verified by challenge.
The delegate's values are arbitrary until bound to a proven derivation. If the delegate constructed a proof diverging from the correct sequence, no relationship can be established with and the delegate's proof is useless.
-
See Tachygrams for the unified consensus rule covering all published tachygrams. ↩
Tachygrams
A tachygram is an opaque Poseidon commitment to the creation or destruction of a note1.
A tachyon transaction is published with a stamp containing tachygrams for the notes involved in its proven actions.
Every action publishes exactly two tachygrams, whichever kind it is.
An output action publishes its note commitment and a padding tachygram.
The pad commits to the note opening rather than to . Both values appear in the same published multiset, so a pad derived as would let an observer test every pair in the set for that relation, match each output to its own pad, and recover the output count. Deriving both from the opening leaves an observer with two unlinkable field elements.
A spend action publishes a nullifier for the present epoch and one for the next2.
Uniform arity is what makes the two action kinds indistinguishable in the published set: an observer counting tachygrams learns the action count and nothing about the split between spends and outputs.
Tachygram sets
A stamp contains the tachygrams of every action it covers.
A stamp's covered actions may be few (a single action, so two tachygrams) or many (aggregated actions, two apiece). Ideally, the consensus chain will contain aggregated3 bundles4.
The covering proof in a stamp has witnessed a commitment to an unordered set of those tachygrams.
This set is the atomic unit which folds into pool state to contribute to the anchor5.
Consensus validation
When a stamp is published, consensus checks that every tachygram in the stamp is absent from every block of the current epoch and the immediately preceding epoch. A duplicate within that two-epoch window is rejected.
The window spans two epochs because a stamp can republish a tachygram in two distinct ways.
A stamp's anchor may have been advanced within its epoch via StampLift6, so the stamp could have been built at any earlier height in the same epoch. Consensus therefore scans every block in the anchor's epoch, not just blocks after the anchor.
A spend publishes a nullifier for the current epoch and one for the next epoch7. The next-epoch nullifier published in epoch is the present-epoch nullifier that any later spend of the same note would have to publish in epoch . Including the previous epoch in the check catches that collision.
-
Nullifiers gives the derivation of from the note's master key, and why a spend publishes the pair rather than one value. ↩
-
See Aggregation for how stamps merge their tachygram sets. ↩
-
See Bundle for the on-wire encoding of bundles and the layout of a stamp trailer. ↩
-
See Anchor for the Poseidon chain that absorbs each stamp's tachygram-set commitment. ↩
-
See Proof Tree for how
StampLiftadvances a stamp's anchor within an epoch. ↩ -
See Nullifiers for the present/future nullifier pair published with each spend. ↩
Authorization
A Tachyon bundle requires three layers of authorization: per-action signatures that bind each tachyaction to its tachygram, value commitments that hide individual values while preserving their algebraic sum, and a binding signature that proves the declared balance is correct. This chapter covers each layer, then shows the complete flow from action creation through consensus.
Actions
Each tachyaction requires a fresh randomized key pair.
The planner begins authorization by selecting arbitrary theta and a relevant note for each action. The custody device is provided each note and theta, and computes from them rather than checking planned values: it derives cm from each note, alpha from theta and cm, and rk from alpha.
flowchart TB
theta["theta (per-action entropy)"]
cm["cm (note commitment)"]
hash(("hash(theta, cm)"))
theta & cm --- hash
hash -->|"Tachyon-Spend"| spend_alpha
hash -->|"Tachyon-Output"| output_alpha
spend_alpha -->|"rk = ak + [alpha]G"| plan
output_alpha -->|"rk = [alpha]G"| plan
plan["action plan { rk, note, theta, rcv, effect }"]
plan ===|"bundle digest"| sighash((sighash))
spend_alpha -->|"rsk = ask + alpha"| sign
sighash ==> sign
output_alpha -->|"rsk = alpha"| sign
sign(("sign(rsk, sighash)"))
sign --- action["action { cv, rk, sig }"]
The arbitrary entropy theta which combines with note commitment cm to deterministically produce the randomizer alpha:
theta and the Poseidon output are elements of , and alpha is that output read as a scalar in , which is larger.
Actions are signed with a unique per-action rsk signing key.
Spends and outputs have different relationships between alpha and rsk, but in both cases,
the action's published rk validating key is the public counterpart of rsk.
Spend
Derivation of spend rsk is rerandomization of spending authority ask:
Conveniently, rk is also possible to derive from validating ak.
The rerandomization of a validating key is equivalent to derivation of a validating key from the rerandomized authority:
So during planning, the planning device obtains rk from the validating ak.
Then during authorization, the custody device is able to confirm correctness of rk, and sign the spend action with its private rsk.
Output
An output rsk is simply equal to alpha. No authority needed:
Then during authorization, the custody device is able to confirm correctness of rk, before signing any spends.
Bundle commitment
The bundle commitment is a digest of the bundle's effect.
The action digest hashes every action's in wire order, so the commitment fixes the actions and their order. Hashing the memo to a fixed width is what lets the outer digest absorb a variable-length payload without a length prefix.
The stamp proof binds the same action set by a different construction: a Pedersen commitment to the polynomial whose roots are the Poseidon action digests,
which is order-independent, as a set commitment must be to survive aggregation. The two digests are computed over the same actions and are not interchangeable.
The stamp is excluded from the bundle commitment because it is stripped during aggregation.
Transaction sighash
All signatures (action and binding) sign the same transaction-wide sighash. The sighash is computed at the transaction layer, incorporating the bundle commitment from each pool (transparent, sapling, orchard, tachyon). The tachyon crate contributes its bundle commitment; a transaction-level crate computes the sighash and passes it in as opaque bytes.
This binds every signature to the complete set of effecting data across all pools.
The stamp steps derive alpha in-circuit from the witnessed theta and the cm their left header certifies, so rk is itself a commitment to cm, and the signature transitively binds each action to its tachygram without the tachygram appearing in the action.
Tachyon also contributes to the transaction-level auth_digest that backs wtxid. See Transaction Identifiers for the formula and how aggregation changes the authorization form.
Value Balance
Tachyon uses Pedersen commitments on the Pallas curve for value hiding:
where is the signed integer value (positive for spends, negative for outputs) and rcv is a random1 trapdoor in .
The generators and are shared with Orchard, derived from the domain z.cash:Orchard-cv.2
Binding signature
The sum of value commitments preserves the algebraic structure:
This enables the binding signature scheme to prove value balance without revealing individual values.
The binding signature proves that the bundle's value commitments are consistent with the declared value_balance.
Planner knows every rcv and computes bsk:
The planner signs the transaction sighash to produce binding_sig directly, without custody assistance.
Validators know the claimed value_balance and each published action cv. Validators reconstruct the corresponding public key:
Expanding the commitments :
When , the component vanishes:
If the values don't balance, the term survives. So,
- If the sum of committed values doesn't truly equal the public balance, the signer cannot produce a valid signature.
- If a valid signature was produced and then the committed values or the public balance were modified, the validator can't confirm the valid signature.
Simplified Flow
A bundle plan feeds three independent paths that converge in the final bundle. Each path consumes the same action plans but produces a different component of the bundle:
- Authorizing: custody derives
rskper spend action and signs the transaction sighash; output actions are signed by the user device. - Binding: the bundle commitment (from ordered action digests and
value_balance) feeds into the transaction sighash, which the binding key signs. - Proving: each action plan yields a leaf stamp; leaves merge into a single Ragu PCD stamp.
flowchart LR
style proving fill:#ff000010,stroke:none
style authorization fill:#ff000010,stroke:none
style binding fill:#ff000010,stroke:none
style custody fill:#00ff0010
style prover fill:#00ff0010
style pczt fill:#0000ff10
style tx fill:#0000ff10
subgraph pczt[partial tx]
subgraph bundle_plan["bundle plan"]
action_plan@{ shape: st-rect, label: "action plan" }
value_balance
end
other1@{ shape: st-doc, label: "other tx data" }
end
pczt ~~~ sighash{sighash}
bundle_plan & other1 === sighash
value_balance --> value_balance_2[value_balance]
subgraph tx[complete tx]
subgraph bundle["stamped bundle"]
value_balance_2[value_balance]
action@{ shape: st-rect }
binding_sig
stamp
end
other2@{ shape: st-doc, label: "other tx data" }
end
subgraph proving["proving flow"]
leaf@{ shape: st-rect, label: "leaf" }
subgraph prover["proving device"]
merge((merge))
end
end
action_plan -.- leaf -.- merge -.- stamp
sighash ~~~ binding
subgraph binding["binding flow"]
bsk
sign_binding_sig(("sign"))
end
action_plan & value_balance --- bsk --- sign_binding_sig ==> binding_sig
sighash === sign_binding_sig
sighash ~~~ authorization
subgraph authorization["authorizing flow"]
subgraph custody["custody device"]
rsk@{ shape: st-rect }
sign_action((("sign")))
end
end
sighash === sign_action
action_plan --- rsk --- sign_action ==> action
other1 --> other2
pczt ~~~ sighash
Consensus recomputes the actions from the visible bundle and checks them against both the sighash (via the bundle commitment's ordered BLAKE2b digest) and the stamp (via the polynomial commitment in the PCD header).
A modified action breaks both checks.
Detailed Sequence
sequenceDiagram
actor User
activate User
note over User: select/create notes { pk, psi, rcm, v }
rect rgb(100, 149, 237, 0.1)
loop per action
note over User: random theta
note over User: random rcv
note over User: cm = Poseidon(pk, psi, rcm, v)
alt spend
note over User: alpha = Poseidon(theta, cm)
note over User: rk = ak + [alpha]G
note over User: cv = Pedersen(v, rcv)
else output
note over User: alpha = Poseidon(theta, cm)
note over User: rk = [alpha]G
note over User: cv = Pedersen(-v, rcv)
end
note over User: action_plan { rk, note, theta, rcv, effect }
end
note over User: bundle_plan { action_plan[], value_balance }
end
loop per output action
note over User: sig = Sign(alpha, sighash)
end
note over User: bsk = Sum rcv_i
note over User: binding_sig = Sign(bsk, sighash)
par Authorizing
rect rgb(255, 165, 0, 0.1)
create participant Custody@{ type: "boundary" }
User ->> Custody: bundle_plan, binding_sig, output_sigs, tx etc
loop per action
note over Custody: cm = Poseidon(pk, psi, rcm, v)
note over Custody: alpha = Poseidon(theta, cm)
alt spend
note over Custody: cv = Pedersen(v, rcv)
note over Custody: rk = ak + [alpha]G
else output
note over Custody: cv = Pedersen(-v, rcv)
note over Custody: rk = [alpha]G
end
end
note over Custody: hActionsTachyon = Blake2b(cv_i || rk_i)
note over Custody: bundle_commitment = Blake2b(hActionsTachyon || value_balance || hMemoTachyon)
note over Custody: compute sighash
break
note over Custody: validate output_sigs
note over Custody: validate binding_sig
end
loop per spend action
note over Custody: alpha = Poseidon(theta, cm)
note over Custody: rsk = ask + alpha
note over Custody: sig = Sign(rsk, sighash)
end
destroy Custody
Custody -->> User: action_sigs, tx sigs
note over User: apply signatures
end
and Proving
rect rgb(138, 43, 226, 0.1)
note over User: select anchor
loop per action
critical anchor, action plan { rk, note, theta, rcv, effect }, pak { ak, nk }
alt effect == spend
User --> User: rk == ak + [alpha]G
note over User: mk = Poseidon(psi, nk)
note over User: nf_e0 = PRF^nfTachyon(mk, e)
note over User: nf_e1 = PRF^nfTachyon(mk, e+1)
note over User: tg_roots = nf_e0, nf_e1
else effect == output
User --> User: rk == [alpha]G
note over User: cm = Poseidon(pk, psi, rcm, v)
note over User: tg_root = cm
end
note over User: action_root = Poseidon(cv || rk)
note over User: action_poly = (X - action_root)
note over User: tg_poly = product over tg_roots of (X - tg_root)
note over User: pcd: leaf stamp(Commit(action_poly), Commit(tg_poly), anchor)
end
end
create participant Stamper
User ->> Stamper: leaf stamps, tachygrams
loop while stamps > 1
critical left(action_poly, tg_poly, anchor), right(action_poly, tg_poly, anchor)
note over Stamper: assert left.anchor == right.anchor
note over Stamper: merged_action = left.action_poly * right.action_poly
note over Stamper: merged_tg = left.tg_poly * right.tg_poly
note over Stamper: pcd: stamp(Commit(merged_action), Commit(merged_tg), anchor)
end
end
destroy Stamper
Stamper ->> User: stamp(tachygrams, anchor, proof)
break
note over User: reconstruct polynomials from roots, commit, verify
end
end
end
create participant Consensus
note over User: transaction { actions[], value_balance, binding_sig, stamp }
deactivate User
destroy User
User ->> Consensus: transaction
break
note over Consensus: action_digest_i = Poseidon(cv_i || rk_i)
note over Consensus: hActionsTachyon = Blake2b(cv_i || rk_i)
note over Consensus: bundle_commitment = Blake2b(hActionsTachyon || value_balance || hMemoTachyon)
note over Consensus: compute sighash
note over Consensus: check action sigs against sighash
note over Consensus: check binding sig against sighash
note over Consensus: action_acc = Commit(poly from action roots)
note over Consensus: tachygram_acc = Commit(poly from tachygram roots)
note over Consensus: verify stamp(action_acc, tachygram_acc, anchor)
end
-
rcvis currently sampled as a uniformly random scalar (Fq::random). This derivation may be revised in the future to incorporate a hash of the note commitment or other action-specific data. ↩ -
The binding signature scheme uses
reddsa::orchard::Bindingwhich hardcodes as its basepoint. We should consider defining a unique personalization. ↩
Proof tree
The Tachyon proof tree is a graph of proof steps. Each step accepts arbitrary witness inputs and up to two PCD inputs, performs computations and checks constraints, and emits a new PCD.
Multiple parties execute the proof tree.
- A wallet holds note data and keys
- A sync service holds nullifier values shared by the wallet and pool state proofs
- An aggregator merges stamps for pool efficiency
Lifecycle
Deriving nullifiers
A wallet proves a window of its note's nullifiers were correctly derived1.
NoteSeed witnesses the note's value and trapdoors and the proof-authorizing key pak, derives the note's payment key from pak (which pins nk, and through nk the commitment cm), derives the master key mk and cm, and emits a NoteSecret carrying (cm, note, mk). nk never leaves the step.
NullifierDerive consumes that seed. It witnesses the window's start epoch (constrained group-aligned) and its sequence, runs four sponges over to squeeze the window's 16 nullifiers natively, and binds the sequence to them with one opening at a free challenge (below). It exports the whole window, so the range it announces is derived rather than witnessed.
NullifierFuse concatenates two adjacent nullifier sequences into one, requiring the same cm and contiguity (right.epoch_start == left.epoch_end + 1).
The result is a NoteNullifiers proving the range [epoch_start, epoch_end] commits to the genuine nullifiers of the note identified by cm, one factor per covered epoch.
Bootstrapping a spendable
A spendable starts when SpendableInit consumes a NoteNullifiers.
It witnesses (anchor_prev, creation_set, creation_epoch). It takes cm from the range header, checks cm is among the creation stamp's tachygrams2, and emits a NoteSpendable carrying (cm, creation_epoch, anchor) with anchor = anchor_prev.next_stamp(creation_epoch, creation_commit), the position immediately after the creation stamp, advanced by each lift.
anchor_prev is a free witness, so the anchor binds only downstream: lift adjacency threads it to the eventual spend anchor, which consensus checks for chain membership, and a chain node's preimage fixes the real predecessor, the real creation epoch, and the real cm-stamp.
Maintaining a spendable
A spendable from SpendableInit spends within its creation epoch. Carrying a note into later epochs means advancing its anchor forward over ArbitraryUnspent segments while proving the crossed nullifiers absent.
The sync service produces ArbitraryUnspent segments without ever holding the note, its cm, or psi: the values a segment tests are arbitrary field elements as far as its own proof is concerned, and only UnspentBind attributes them to a derivation.
A Summary folds a run of one epoch's stamps into one accumulator alongside the anchor (SummarySeed, SummaryAdvance); summaries are note-independent, so anyone can build them.
Summaries and single stamps root an epoch's QR evidence.
Once per epoch a builder routes every published tachygram into buckets by quadratic-residue profile (QrSummaryIntake, QrStampIntakeSeed, QrEmptyIntakeSeed, QrIntakeSplit, QrSideDescend, QrIntakeMerge, QrBucketSeal).
A nullifier has one profile, so it can have been published in only one bucket, and one exclusion opening on that bucket proves it absent from the epoch (QrUnspentInit).
Every ArbitraryUnspent starts that way and covers whole epochs, half-open: [anchor_start, anchor_next) and [epoch_start, epoch_next).
Both anchor bounds are entry anchors, and an entry anchor belongs to the epoch it opens, so anchor_next belongs to epoch_next and is excluded.
A segment's elapsed holds one member per epoch in [epoch_start, epoch_next); epoch_next's nullifier is the next segment's to test.
UnspentFuse composes two segments meeting on one boundary and concatenates their elapsed histories.
An epoch that published nothing seals an empty bucket, so its segment is as cheap as any other.
QrSpendableInit starts a wallet's spendable from the bucket holding its note's creation, over the note's own QR segment for that epoch.
A builder that keeps an epoch's buckets folds them into one EvidenceTree and retains a single proof for its root, replaying a bucket on demand from a quaternary Merkle path (EvidenceTreeLeafPair, EvidenceTreePairFuse, EvidenceTreeFuse, EvidenceTreeCap, EvidenceTreeDescend, EvidenceTreeOpen).
The evidence is note-independent and rebuildable from public data alone.
UnspentBind is wallet-side. It consumes the sync-built ArbitraryUnspent and a NoteNullifiers, and divides elapsed out of the derivation's sequence, so every factor of elapsed is a genuine nullifier of the note at its own epoch.
It emits a NoteUnspent carrying the span's anchors and epochs, and the note's cm.
SpendableLift is wallet-side and witness-free: it consumes a NoteSpendable and a NoteUnspent.
It checks the verified segment's cm equals the spendable's (so the absence-proven nullifiers are this note's, and the value cannot drift), the segment's epoch_start equals the spendable's epoch_current (continuity), and the segment's anchor_start equals the spendable's anchor (adjacency).
It advances to the segment's epoch_next and anchor_next, threading cm unchanged.
A single lift can consume an arbitrarily long composed ArbitraryUnspent, including one that crosses many epoch boundaries.
Spending
To spend, the wallet runs SpendBind.
It consumes the NoteSpendable and the note's NoteSecret, and requires secret.cm == spendable.cm.
It derives the pair (nf_current, nf_next) from the secret's mk, at the lineage's epoch and the epoch after it, and commits the note's value as cv under the witnessed value-randomness.
Nonzero guards close the nf == 0 degenerate.
The output SpendHeader carries cm, the derived pair (nf_current, nf_next), the threaded anchor, the note's payment key pk, and cv.
SpendStamp consumes that SpendHeader, witnessing the action entropy theta and the proof authorizing key.
It requires the key to derive the header's pk, so the randomized action key rk belongs to the lineage's note, whose minted value cv commits to3.
It derives the action randomizer alpha from theta and cm, then the action digest from cv and rk, and emits a Stamp whose tachygram set contains both nullifiers and whose anchor is threaded from the spend.
An output operation also takes two steps, OutputBind and OutputStamp.
OutputBind witnesses the new note and derives its tachygram pair, the note commitment cm and the padding tachygram pad, both from the same note fields2; the resulting OutputHeader carries the pair and the value commitment cv.
OutputStamp derives alpha from the witnessed theta and cm, adds an anchor, and emits a single-action Stamp whose tachygram set is the pair. The wallet typically anchors each output at the same height as the transaction's spends so the merge can proceed without an intervening lift.
A transaction with multiple spend and output stamps composes them with StampMerge.
The output is a single Stamp whose multisets are the union of the two inputs' at the shared anchor.
If a spend's lineage is at an earlier anchor of the same epoch, the wallet first runs StampLift along one or more AnchorSpans to move the spend stamp to the transaction's anchor.
After the transaction stamp is composed, the wallet may run StampLift along more spans to move the stamp's anchor closer to the chain's latest anchor before publication.
An AnchorSpan commits to every anchor produced inside it.
StampLift moves a stamp from the span's start, or from any of those anchors, to the span's end.
Consensus and sync services publish spans as an epoch progresses.
A wallet lifts its stamp along the published spans to the end of the latest one.
For the stamps published after that, it builds its own span.
On publication the bundle carries the action descriptors, tachygrams, anchor, and the stamp proof. Validators reconstruct the action-set and tachygram-set commitments from those published bundles, check the proof against the reconstructed values, and confirm the anchor against the consensus chain.
After publication, an aggregator combines Stamps from independently-proven bundles into a single aggregate4 whose proof can stand in for many transactions' worth of stamps, cutting per-transaction verification cost downstream.
Each input is anchored at the height its wallet chose.
The aggregator runs StampLift on each input, along spans that contain that input's anchor, to move every input to the same later anchor.
StampMerge then fuses the aligned stamps pairwise into a single Stamp whose multisets are the union of all the inputs'.
The aggregated stamp has the same shape as any other, so it is itself eligible for further aggregation; aggregators stack to fold many published transactions into one stamp, and miners typically integrate the aggregator role into block production.
Roles
The wallet runs every step that touches the note's commitment or master key.
It derives its nullifier windows (NoteSeed, NullifierDerive, NullifierFuse), derives spendable status from its own derivation (SpendableInit, QrSpendableInit), binds and lifts over sync-built segments (UnspentBind, SpendableLift), and produces spend and output stamps (SpendBind, SpendStamp, OutputBind, OutputStamp).
The sync service holds the per-epoch nullifier values the wallet shared and pool history.
It builds summaries (SummarySeed, SummaryAdvance), routes each epoch's tachygrams into QR evidence (QrSummaryIntake, QrStampIntakeSeed, QrEmptyIntakeSeed, QrIntakeSplit, QrSideDescend, QrIntakeMerge, QrBucketSeal), folds the sealed buckets into one tree and opens it per query (EvidenceTreeLeafPair, EvidenceTreePairFuse, EvidenceTreeFuse, EvidenceTreeCap, EvidenceTreeDescend, EvidenceTreeOpen), and produces the ArbitraryUnspent segments that carry the spendable forward (QrUnspentInit over one bucket, UnspentLift one epoch at a time, UnspentFuse across segments), then hands the composed segment to the wallet to bind and lift over; it never sees a note, cm, psi, or mk.
The aggregator works only with published Stamps.
It aligns anchors with StampLift along spans (AnchorSpanSeed, AnchorSpanFuse), and fuses with StampMerge.
| step | wallet | sync service | aggregator |
|---|---|---|---|
| AnchorSpanSeed | possible | yes | yes |
| AnchorSpanFuse | possible | yes | yes |
| SummarySeed | possible | yes | no |
| SummaryAdvance | possible | yes | no |
| QrSummaryIntake | possible | yes | no |
| QrStampIntakeSeed | possible | yes | no |
| QrEmptyIntakeSeed | possible | yes | no |
| QrIntakeMerge | possible | yes | no |
| QrIntakeSplit | possible | yes | no |
| QrBucketSeal | possible | yes | no |
| EvidenceTreeLeafPair | possible | yes | no |
| EvidenceTreePairFuse | possible | yes | no |
| EvidenceTreeFuse | possible | yes | no |
| EvidenceTreeCap | possible | yes | no |
| EvidenceTreeDescend | possible | yes | no |
| EvidenceTreeOpen | possible | yes | no |
| QrSideDescend | possible | yes | no |
| QrUnspentInit | possible | yes | no |
| UnspentFuse | possible | yes | no |
| UnspentLift | possible | yes | no |
| NoteSeed | yes | no | no |
| NullifierDerive | yes | no | no |
| NullifierFuse | yes | no | no |
| UnspentBind | yes | no | no |
| SpendableInit | yes | no | no |
| QrSpendableInit | yes | no | no |
| SpendableLift | yes | no | no |
| SpendBind | yes | no | no |
| OutputBind | yes | no | no |
| OutputStamp | yes | no | no |
| SpendStamp | yes | no | no |
| StampMerge | yes | no | yes |
| StampLift | yes | possible | yes |
Soundness
The subsections below walk each subtree bottom-up.
Anchor segments
AnchorSpanSeed, SummarySeed, and QrStampIntakeSeed each witness a predecessor anchor and prove one anchor step from it, and the fuses compose adjacent segments by checking endpoint equality.
A segment ties to real chain history only through a consensus-published stamp whose anchor matches an end-of-block value, emitted at StampLift. SpendableInit's anchor closes the same way without a segment: the private spendable's anchor reaches consensus once it is spent into a stamp.
An AnchorSpan covers [anchor_start, anchor_end].
Its header also carries members, a commitment to the polynomial whose roots are the anchors in (anchor_start, anchor_end].
Each stamp folded into the span adds one member.
anchor_end is a member and anchor_start is not.
AnchorSpanSeed folds one stamp and commits to the anchor it produces, using the fixed generators.
AnchorSpanFuse requires the left span's anchor_end to equal the right span's anchor_start, and proves that the combined members polynomial is the product of the two halves' polynomials.
StampLift moves a stamp from anchor_start or from any member to anchor_end.
It checks , where is the members polynomial and is the stamp's anchor.
The members polynomial records which anchors are in the span and not their order.
StampLift therefore always moves the stamp to anchor_end.
StampLift evaluates at the stamp's anchor without a random challenge.
It checks that the witnessed polynomial's commitment equals the header's members.
ArbitraryUnspent composition
An ArbitraryUnspent covers [anchor_start, anchor_next), from the entry anchor of epoch_start up to the entry anchor of epoch_next, plus elapsed: the product of one indexed cubic factor per epoch in [epoch_start, epoch_next)1.
Each (anchor, epoch) pair names one boundary. The excluded bound belongs to the next epoch, whose nullifier the segment does not test.
Each factor carries its own epoch, so the product is a multiset of (epoch, nullifier) pairs and needs no degree pin. Every producer holds the two properties that UnspentBind relies on: each factor's epoch lies in [epoch_start, epoch_next), and each such epoch has exactly one factor.
QrUnspentInit is the only seed. It pins its one-factor product against the value it tests, at a challenge absorbing the sequence commitment and a scalar-binding point of the value.
UnspentFuse composes two segments on one boundary (left.anchor_next == right.anchor_start, left.epoch_next == right.epoch_start), confirming
for the witnessed combined , left , and right . The halves hold disjoint epochs, so their product holds each epoch once. The recursive verification of the two input PCDs binds and before the challenge.
UnspentLift appends one epoch in one step. Its bucket starts on the segment's excluded bound (unspent.anchor_next == bucket.anchor_start, unspent.epoch_next == bucket.epoch), it tests a value against the bucket exactly as QrUnspentInit does, and it confirms
for the witnessed extended , the header-bound elapsed , and the one factor of the tested pair, at a challenge absorbing both sequences and the value's scalar-binding point. The new factor's epoch is epoch_next, which the step advances by one, so both properties hold.
Summaries
A Summary carries (epoch, anchor_prev, anchor_end, acc_commit): a run of one epoch's stamps whose tachygram sets fold into one accumulator while the anchor absorbs the same commitments.
SummarySeed performs the same fold as AnchorSpanSeed, and also puts the stamp's tachygram-set commitment on its header.
SummaryAdvance binds the witnessed accumulator to the header by commit-equality, checks extended = acc * stamp at a challenge, and advances anchor_end by the same stamp.commit().
The product of two root polynomials is the root polynomial of the multiset union, and consensus forbids republishing a tachygram within two epochs, so the accumulator is square-free.
The prover chooses where a summary starts and stops.
A consumer joins two summaries when the first summary's anchor_end equals the second summary's anchor_prev.
The joined chain contains every stamp absorption of both summaries.
Summaries root unbound like every seed. The QR evidence built on them closes through the bucket seal's crossing, where consensus anchor membership forces every stamp absorption.
QR epoch evidence
An epoch's evidence partitions its tachygrams by a sequence of quadratic tests. The builder samples the first discriminant privately; every QR header carries it, and the discriminants progress by one from it,
A value takes the residue side at depth when is a square or zero. A private is what lets a network be routed while its epoch is still in flight: a builder opens one, keeps and its intake headers unpublished until the epoch closes, and publishes the sealed buckets after. Choosing moves how members distribute across buckets, never which bucket holds a given value under that , so a biased or prematurely revealed affects only that builder's buckets, and a wallet can use any valid network. Honest depth is of the bucket count and stays below 26 at any proposed throughput; the 32-position register is a width, not a security parameter5. A profile is the string of sides on the path to a bucket.
QrSummaryIntake starts a QrIntake from a Summary at depth zero, QrStampIntakeSeed starts one from a single stamp directly, QrEmptyIntakeSeed starts an empty one over an epoch that published no stamp, and QrIntakeMerge joins two intakes of one epoch, discriminant and profile whose spans meet, so spans compose as anchor segments do.
QrIntakeSplit factors an intake's contents into two sides at as QrIntakeSides, and QrSideDescend extracts one side while attesting the other at its class multiplier :
holds only when every root of the sibling takes its side at , since each root leaves ; with the split's product, every member of the extracted class is then in the child. A child may carry a stray member of the other class, which only tightens the openings its consumers make, but it cannot lack a member of its own. The exceptional value has root under either class, so the split also opens the non-residue side nonzero at . The descent's challenge absorbs the three commitments and a scalar-binding point of . is prover-chosen, so without it a prover could solve the identity for after . is read off the header, so every step of one network classifies at the same progression. Each descend requires the parent's depth below 32, so and two paths never share a profile. A layer splits every intake over capacity, then merges same-profile neighbours while the product fits one polynomial; sibling buckets need not stop at the same depth.
QrBucketSeal turns a routed intake into a QrBucket that runs boundary to boundary. The intake covers stamp absorptions over (anchor_prev, anchor_end] within its epoch. The bucket covers [anchor_start, anchor_next). The range includes anchor_start. anchor_start absorbs no tachygrams. The seal checks that the intake's anchor_prev is a boundary digest into the epoch, and uses it as the bucket's anchor_start. It computes the boundary digest of the intake's anchor_end into the next epoch, and uses the result as the bucket's anchor_next,
Epoch zero's entry anchor is the first rule at .
It checks nothing about the discriminant. That is the builder's own ; every step threads it unchanged and every merge requires it equal.
The crossing makes a bucket used in a consensus-accepted spend cover the whole epoch.
In the accepted chain, the only boundary digest into is the one computed from .
If the intake stops before the final anchor, the seal computes an anchor outside the accepted chain.
A later fold can reach the accepted chain only by producing a Poseidon collision.
Its bucket cannot support a spend that consensus accepts.
A final anchor could not carry this guarantee: consensus acknowledges every end-of-block anchor, so a bucket ending on one could stop short. That is why both bucket bounds are entry anchors, and why the end bound is excluded.
The seal admits every bucket; EvidenceTreeOpen only replays one a tree already holds.
QrUnspentInit witnesses a nonzero value , a side and root at each of the 32 positions, a mask , the sequence naming , and the bucket's contents.
With and the non-residue,
so is the value's own side at every position, with filed residue-side as the split files it. The mask selects the bucket's depth as a prefix and the fold compares the bucket's sides against the value's,
since among boolean vectors of weight only the leading positions attain the minimum index sum; positions past are tested but compared to nothing.
A bucket matching 's profile contains every occurrence of in its span, so opening its contents nonzero at proves absence over that span.
The emitted segment takes the bucket's extent, with epochs , and its one member is . Consecutive epochs' segments meet on the entry anchor of and UnspentFuse composes them directly.
The sequence's one member is checked at a challenge absorbing ; the sequence and the contents are the step's two oracles.
QrSpendableInit bootstraps a spendable from the bucket holding the note's creation.
Its left input is the note's NoteUnspent over that epoch, the QR segment bound by UnspentBind, so cm and the whole-epoch absence of the nullifier arrive on the header; the step opens the bucket at for zero, requires the segment's extent to equal the bucket's, and emits the spendable on the segment's (epoch_next, anchor_next), the next epoch's entry anchor.
Membership needs no profile: every bucket divides the epoch's stamp polynomials, so a root of any bucket is a tachygram published in its span, and the span equality closes the bucket's anchors through the lineage the segment already joins.
Evidence trees
A bucket is complete evidence on its own, so a builder needs every bucket's proof only until it has something that vouches for them all at once.
EvidenceTreeLeafPair admits two sealed buckets at once, hashing each bucket header into a leaf digest,
and emitting the two under one half-assembled node.
Admitting two at a time is what holds a tree over n buckets to n - 1 steps: every step reads at most two proofs and emits one, so n proofs reach one root in at least n - 1, and only a step that consumes two moves toward that bound.
A tree therefore starts at four leaves. A builder short of four repeats a bucket, which is a bucket the tree holds twice and no step forbids. A builder holding one bucket needs no tree: it serves that bucket's own proof, and a consumer cannot tell a sealed bucket from a replayed one.
A node has four children, so it fills the sponge rate and takes no domain constant of its own.
Four children reach one hash through two steps, since a step takes at most two predecessor proofs: EvidenceTreePairFuse carries two trees into a half-assembled node, and EvidenceTreeFuse hashes two of those halves,
Both require their inputs to agree on epoch, anchor_start, anchor_next and discriminant.
Those four are checked equal because a consumer reads the extent off the tree: a tree spanning further than its leaves do would let a bucket's exclusion cover folds the bucket never held.
Every bucket of one network shares all four.
EvidenceTreeCap raises a root by repeating it into all four slots. A builder runs it until the depth is a multiple of the levels one descent covers.
The builder keeps the buckets' polynomials, the tree, and one proof for the root, and drops the per-bucket proofs.
A query walks back down. EvidenceTreeDescend witnesses one node's four children per level, checks they hash to the node it holds, and selects among them on two side bits; the levels per step are fixed, so a deeper tree takes a longer chain of descents.
EvidenceTreeOpen then witnesses the leaf's preimage, checks the leaf digest against the root it has reached, and emits the QrBucket the leaf stands for. Only a descent emits a tree whose root is a leaf digest, so every open follows one. QrUnspentInit and QrSpendableInit consume it unchanged.
Binding the profile into the leaf is what makes the replay safe: a real bucket's contents presented under the tested value's own profile would pass the fold and open nonzero, proving exclusion for a value published in a different bucket.
A leaf absorbs nine elements and a node four, so no path can stop one level short and present a node as a bucket.
A leaf digest absorbs nine elements, three permutations at rate four; a node absorbs four, one permutation. No evidence step multiplies a point or opens a polynomial:
| Step | Permutations |
|---|---|
| EvidenceTreeLeafPair | 6 (two leaf digests) |
| EvidenceTreePairFuse | 0 |
| EvidenceTreeFuse | 1 (node) |
| EvidenceTreeCap | 1 (node) |
| EvidenceTreeDescend | 4 (one node per level) |
| EvidenceTreeOpen | 3 (leaf digest) |
The tree claims nothing about which buckets it holds, and nothing asks it to. A tree over one bucket is as valid as a tree over a whole network; a builder that omits a bucket can only fail to answer for it, never answer wrongly, since the bucket it does serve carries its own whole-epoch claim. Two builders, or one builder at two times, may therefore publish different trees for one epoch.
Derivation window
NoteSeed is the only seed. It binds the master key to the note: deriving pk from pak pins nk, and the note commitment digests nk (through pk) and psi, so the derived mk = Poseidon(psi, nk) is consistent with the cm the seed threads forward.
NullifierDerive threads mk from that header, squeezes the window's nullifiers natively, and binds the witnessed sequence to them at a fresh challenge :
for the window width. The sequence is committed before exists, and every factor's scalars are pinned in-circuit: each epoch index is epoch_start plus a constant, and each nullifier is a sponge output of the threaded mk. epoch_start is a free witness constrained group-aligned in-step, pinned by the header it produces because it is emitted on the header directly.
NullifierFuse binds both sequences and their product by commit-equality and confirms , requiring the same cm and contiguity, which keeps the product squarefree.
Binding unspent to derivation
UnspentBind consumes the sync's ArbitraryUnspent and any NoteNullifiers, comparing no bounds against the unspent span.
It binds elapsed and the derivation's sequence to their headers by commit-equality, then confirms the divisibility
where the witnessed complement holds the derivation's factors outside the lineage. Every factor is irreducible, so divisibility is multiset containment: each elapsed factor, its epoch included, is a genuine derived pair, and an epoch the derivation lacks has no factor to divide out.
With the provenance properties above, every epoch of the span was therefore tested with its own genuine nullifier.
The derivation's cm is stamped onto the NoteUnspent.
Spendable lineage
SpendableInit seeds a lineage that spends within its creation epoch, and is wallet-only.
It witnesses the creation stamp's tachygrams, the anchor running into the creation stamp, and the creation epoch.
It takes cm from the range header and binds the note to the pool (cm in creation_set), which pins the whole note to the real minted note.
It emits NoteSpendable(cm, creation_epoch, anchor), where anchor folds the creation epoch onto the free-witnessed anchor_prev; a wrong epoch or predecessor lands the anchor off the published sequence, so consensus anchor membership of the eventual spend forces both.
It tests no exclusion: the only stamp its position covers is the creating one, and a spend inside that stamp would need an anchor folding in the stamp's own tachygrams.
SpendableLift advances the lineage over a NoteUnspent.
It threads cm by equality (unspent.cm == spendable.cm), so every consumed segment belongs to the lineage's one note and the spent value cannot drift to a different same-mk note.
Every NoteUnspent factor is genuine by UnspentBind, so a lineage cannot skip an epoch or splice in another note.
Continuity holds through the epoch: unspent.epoch_start == spendable.epoch_current.
UnspentBind made every member of the segment the genuine nullifier of cm at its epoch, so equal cm and epoch fix the member the segment starts on without comparing nullifiers.
The anchor adjacency check (unspent.anchor_start == spendable.anchor) welds the segment to the lineage's current position.
Every segment opens on an entry anchor, so only a lineage resting on one lifts: a QrSpendableInit spendable, or one already lifted.
Spend binding
Spending a note publishes two nullifiers, one for the current epoch and one for the next, both pinned to the note's genuine derivation.
SpendBind consumes the NoteSpendable and the note's NoteSecret, and requires secret.cm == spendable.cm.
It derives both nullifiers from the secret's mk, one group sponge each, at and with the lineage's epoch. Nothing in the pair is witnessed: mk and cm were bound together at NoteSeed, and is threaded on the spendable.
Each published nullifier must be nonzero, or it would collide with the note's own cm in the tachygram scan.
SpendBind also commits the note's value as , reading off the secret.
The output SpendHeader threads cm, the derived pair, and the anchor, with the note's pk and cv.
NoteSeed computed the secret's cm from its note, so secret.cm == spendable.cm rejects a phantom note reusing the same psi, and so the same nullifiers, while carrying a different value and hence a different cm.
The note rides only on the wallet-private NoteSecret, so it never reaches a published header.
SpendStamp completes the publication: it requires the witnessed proof authorizing key to derive the header's pk, derives alpha from the witnessed theta and the header's cm, derives the randomized action key rk, and commits the one-action set alongside the two-element tachygram set.
The two complementary cm checks pin value two independent ways. NoteSeed's cm = note.commitment() ties cm to the note by Poseidon collision-resistance (the spender must know rcm, pk, value, psi). spendable.cm == cm ties it to the lineage, which the creation stamp proved minted. Together they bind the action's value commitment to the note actually being spent. Publishing both nullifiers lets consensus apply the spend across an epoch transition that may occur between proof construction and inclusion.
The note's age never becomes public. The lineage carries only a single current nullifier, not a polynomial with a consumed offset, and the published pair sits at the constant epochs of the live range, so no step reads a position that would leak how long the note has existed.
Stamp construction
A stamp commits to two multisets, an action-digest set and a tachygram set2.
OutputBind derives the output's tachygram pair from one note, the commitment cm and the padding tachygram pad, so both are fixed before any action material exists, and rejects over-range values. Each tachygram is nonzero-guarded, and the pad's preimage is the note opening rather than cm, which is what stops an observer pairing the two off in the published set2.
Beside the pair it carries the value commitment .
OutputStamp reads cv off the OutputHeader, derives the action randomizer alpha from the witnessed theta and the header's cm, then an action verification key and action digest. No key material is witnessed: an output's rk is a fresh randomizer's public key, and the recipient's payment key rides inside cm where the sender cannot be asked to prove anything about it6.
SpendStamp reads cv off the SpendHeader, derives alpha from theta and the header's cm, then the action verification key and action digest, and emits a stamp whose one-action digest set, two-nullifier tachygram set, and threaded anchor follow. The nullifier pair it publishes was derived from the master key at SpendBind.
Each action takes two steps because its work exceeds one step's budget: a Poseidon permutation costs about a seventh of a step, and a scalar multiplication about a quarter. The work splits as follows, each stamp step also opening its action-set and tachygram-set polynomials:
| Step | Permutations | Scalar multiplications |
|---|---|---|
| OutputBind | 4 (cm, pad) | 2 (cv) |
| OutputStamp | 3 (alpha, action digest) | 1 (rk) |
| SpendBind | 2 (nullifier pair) | 2 (cv) |
| SpendStamp | 4 (pk, alpha, action digest) | 1 (rk) |
StampMerge fuses two stamps by checking anchor equality and confirming each output set is the union of the two inputs': it witnesses the merged sets and enforces, for each, that the merged set polynomial is the product of the input set polynomials.
Stamp anchor
OutputStamp is the only stamp-producing step that takes an anchor as direct witness: an output operation has no prior chain state to thread from.
The other stamp-producing steps thread the anchor from a validated spendable through SpendBind/SpendStamp, equality-constrain the two inputs' anchors (StampMerge), or move the stamp to the end of an AnchorSpan that contains the stamp's anchor (StampLift).
Consensus verifies the published anchor against the chain before accepting the stamp.
Rerandomization at trust boundaries
Every stamp-producing step rerandomizes its proof before releasing it: prove_output, prove_spend, and prove_merge each rerandomize the PCD they built. This is obligatory rather than cosmetic.
A PCD proof is a commitment to its own witness data. Two proofs built from overlapping private inputs are correlated as group elements, even when their public headers reveal nothing. The proof a wallet holds after SpendBind and the proof it publishes in a stamp share a lineage, so an observer holding both could link them, and an aggregator that merges two stamps sees both inputs directly.
A stamp crosses a trust boundary at exactly these points. A wallet hands an autonome to the p2p network; an aggregator hands a merged stamp onward while retaining the inputs it merged. Rerandomizing at each handoff replaces the proof with an unrelated one that verifies against the same header, so the released artifact carries no correlation back to the private lineage that produced it, and none forward to a later release of the same lineage.
The rule is that a proof leaving the process that built it is rerandomized first. Intermediate PCDs that stay inside a wallet, such as a derivation window or an ArbitraryUnspent segment, do not need it: nothing outside the wallet ever observes them.
Simple transaction
A transaction with one spend and one output, where the spendable was bootstrapped in a previous epoch and lifted over an ArbitraryUnspent crossing an epoch boundary before the spend.
flowchart TB
subgraph derive [nullifier derivation]
w_seed[/value, psi, rcm, pak/]
s_seed[NoteSeed]
w_window[/epoch_start, seq/]
s_window[NullifierDerive]
s_dfuse[NullifierFuse]
nf_range((NoteNullifiers))
end
subgraph spendable [spendable advance]
bucket_in((QrBucket))
creation_in((NoteUnspent))
w_init[/contents/]
s_init[QrSpendableInit]
unspent_in((ArbitraryUnspent))
s_unspentbind[UnspentBind]
s_lift[SpendableLift]
end
subgraph spend_stamp [spend action]
w_bind[/rcv/]
s_bind[SpendBind]
end
subgraph merge [transaction assembly]
w_stamp[/theta, pak/]
s_spendstamp[SpendStamp]
w_outbind[/note/]
s_outbind[OutputBind]
w_output[/rcv, theta, anchor/]
s_output[OutputStamp]
s_merge[StampMerge]
end
stamp_out((Stamp))
w_seed --> s_seed
s_seed -->|NoteSecret| s_window
w_window --> s_window
s_window -->|NoteNullifiers| s_dfuse
s_dfuse --> nf_range
creation_in --> s_init
bucket_in --> s_init
w_init --> s_init
nf_range --> s_unspentbind
unspent_in --> s_unspentbind
s_init -->|NoteSpendable| s_lift
s_unspentbind -->|NoteUnspent| s_lift
s_lift -->|NoteSpendable| s_bind
s_seed -->|NoteSecret| s_bind
w_bind --> s_bind
s_bind -->|SpendHeader| s_spendstamp
w_stamp --> s_spendstamp
w_outbind --> s_outbind
s_outbind -->|OutputHeader| s_output
w_output --> s_output
s_spendstamp -->|Stamp| s_merge
s_output -->|Stamp| s_merge
s_merge --> stamp_out
The single SpendableLift consumes one composed NoteUnspent (potentially crossing many epoch boundaries); threading cm chains the lineage's binding to the note through every advance.
Focused subgraphs
Stamp anchor advance
flowchart LR sh_in((Stamp)) w_span[/anchor_start, epoch, stamp_commit/] s_span[AnchorSpanSeed] w_next[/anchor_start, epoch, stamp_commit/] s_next[AnchorSpanSeed] w_spanfuse[/left_members, combined, right_members/] s_spanfuse[AnchorSpanFuse] w_lift[/members/] s_lift[StampLift] sh_out((Stamp)) w_span --> s_span w_next --> s_next s_span -->|AnchorSpan| s_spanfuse s_next -->|AnchorSpan| s_spanfuse w_spanfuse --> s_spanfuse sh_in --> s_lift s_spanfuse -->|AnchorSpan| s_lift w_lift --> s_lift s_lift --> sh_out
ArbitraryUnspent composition across epochs
flowchart LR bucket_e((QrBucket)) w_init[/value, classes, mask, sequence, contents/] s_init[QrUnspentInit] bucket_next((QrBucket)) w_next[/value, classes, mask, sequence, contents/] s_next[QrUnspentInit] w_ufuse[/left_elapsed_seq, combined_elapsed_seq, right_elapsed_seq/] s_ufuse[UnspentFuse] bucket_after((QrBucket)) w_ulift[/value, classes, mask, elapsed_seq, extended_seq, contents/] s_ulift[UnspentLift] unspent_out((ArbitraryUnspent)) bucket_e --> s_init w_init --> s_init bucket_next --> s_next w_next --> s_next s_init -->|ArbitraryUnspent| s_ufuse s_next -->|ArbitraryUnspent| s_ufuse w_ufuse --> s_ufuse s_ufuse -->|ArbitraryUnspent| s_ulift bucket_after --> s_ulift w_ulift --> s_ulift s_ulift --> unspent_out
Headers
| Header | Fields |
|---|---|
| AnchorSpan | (anchor_start, members, anchor_end) |
| Summary | (epoch, anchor_prev, anchor_end, acc_commit) |
| QrIntake | (epoch, anchor_prev, anchor_end, discriminant, profile, contents) |
| QrIntakeSides | (epoch, anchor_prev, anchor_end, discriminant, profile, non_residue, residue) |
| QrBucket | (epoch, anchor_start, anchor_next, discriminant, profile, contents) |
| EvidenceTree | (epoch, anchor_start, anchor_next, discriminant, root) |
| EvidenceTreePair | (epoch, anchor_start, anchor_next, discriminant, first, second) |
| ArbitraryUnspent | (anchor_start, epoch_start, elapsed, epoch_next, anchor_next) |
| NoteUnspent | (cm, anchor_start, epoch_start, epoch_next, anchor_next) |
| NoteSecret | (cm, note, mk) |
| NoteNullifiers | (cm, epoch_start, nf_commit, epoch_end) |
| NoteSpendable | (cm, epoch_current, anchor) |
| OutputHeader | (cm, pad, cv) |
| SpendHeader | (cm, nf_current, nf_next, anchor, pk, cv) |
| Stamp | (action_commit, stamp_tg_commit, anchor) |
Steps
| Step | Left | Right | Witness | Output |
|---|---|---|---|---|
| AnchorSpanSeed | — | — | anchor_start, epoch, stamp_commit | AnchorSpan |
| AnchorSpanFuse | AnchorSpan | AnchorSpan | left_members, combined, right_members | AnchorSpan |
| SummarySeed | — | — | anchor_prev, epoch, stamp_commit | Summary |
| SummaryAdvance | Summary | — | acc, extended, stamp | Summary |
| QrSpendableInit | NoteUnspent | QrBucket | contents | NoteSpendable |
| QrSummaryIntake | Summary | — | discriminant | QrIntake |
| QrStampIntakeSeed | — | — | anchor_prev, epoch, discriminant, stamp_commit | QrIntake |
| QrEmptyIntakeSeed | — | — | anchor, epoch, discriminant | QrIntake |
| QrIntakeMerge | QrIntake | QrIntake | left_contents, right_contents, merged | QrIntake |
| QrIntakeSplit | QrIntake | — | contents, non_residue, residue | QrIntakeSides |
| QrSideDescend | QrIntakeSides | — | bit, sibling_contents, interpolant, quotient | QrIntake |
| QrBucketSeal | QrIntake | — | anchor_final_prev | QrBucket |
| QrUnspentInit | QrBucket | — | value, classes, mask, sequence, contents | ArbitraryUnspent |
| EvidenceTreeLeafPair | QrBucket | QrBucket | — | EvidenceTreePair |
| EvidenceTreePairFuse | EvidenceTree | EvidenceTree | — | EvidenceTreePair |
| EvidenceTreeFuse | EvidenceTreePair | EvidenceTreePair | — | EvidenceTree |
| EvidenceTreeCap | EvidenceTree | — | — | EvidenceTree |
| EvidenceTreeDescend | EvidenceTree | — | path | EvidenceTree |
| EvidenceTreeOpen | EvidenceTree | — | profile, contents | QrBucket |
| UnspentFuse | ArbitraryUnspent | ArbitraryUnspent | left_elapsed_seq, combined_elapsed_seq, right_elapsed_seq | ArbitraryUnspent |
| UnspentLift | ArbitraryUnspent | QrBucket | value, classes, mask, elapsed_seq, extended_seq, contents | ArbitraryUnspent |
| UnspentBind | ArbitraryUnspent | NoteNullifiers | elapsed_seq, nf_seq, complement_seq | NoteUnspent |
| NoteSeed | — | — | value, psi, rcm, pak | NoteSecret |
| NullifierDerive | NoteSecret | — | epoch_start, seq | NoteNullifiers |
| NullifierFuse | NoteNullifiers | NoteNullifiers | left_seq, merged_seq, right_seq | NoteNullifiers |
| SpendableInit | NoteNullifiers | — | anchor_prev, creation_set, creation_epoch | NoteSpendable |
| SpendableLift | NoteSpendable | NoteUnspent | — | NoteSpendable |
| SpendBind | NoteSpendable | NoteSecret | rcv | SpendHeader |
| OutputBind | — | — | note, rcv | OutputHeader |
| OutputStamp | OutputHeader | — | theta, anchor, action_set, tachygram_set | Stamp |
| SpendStamp | SpendHeader | — | theta, pak, action_set, tachygram_set | Stamp |
| StampMerge | Stamp | Stamp | (action_set, tachygram_set) × left, merged, right | Stamp |
| StampLift | Stamp | AnchorSpan | members | Stamp |
-
See Nullifiers for the nullifier sponge, the scalar
psiseed, and the delegated absence sequence. ↩ ↩2 -
See Tachygrams for the per-stamp multiset polynomial and its Pedersen commitment. ↩ ↩2 ↩3 ↩4
-
See Notes for the four-field note structure and its commitment. ↩
-
See Aggregation for the autonome/aggregate/adjunct lifecycle and the miner-side stripping that realizes the chain-cost reduction. ↩
-
Profiles of and are shifts of one another along the progression, so two values share a bucket of depth only when across a window of consecutive , about per pair for any fixed by the Weil bound; for uniform tachygrams the loads are those of independent uniform assignment, and the binomial balance argument applies. ↩
-
See Keys for the wallet key hierarchy and the per-action derivations. ↩
Aggregation
Instead of verifying each transaction individually, transaction proofs may be recursively merged into a single proof that covers many transactions. This is how Tachyon seeks to reduce chain costs.
The act of merging proofs is aggregation, and aggregators are nodes enganged in this activity creating aggregate transactions.
Miners are likely to vertically integrate aggregation.
Bundle States
Transactions with no Tachyon bundle1 are not covered here.
Aggregation creation of a new transaction with a proof that can replace the proof in a selection of other transactions. To create a valid block with a given aggregate, a miner must include all of those other transactions, sans their now-redundant proofs.
So Tachyon bundles have two main states: stamped or stripped.
These two states do not correspond perfectly with 'aggregate' and 'not aggregate', so we establish some nomenclature:
| Term | State | Provenance | Validation |
|---|---|---|---|
| autonome | stamped | wallet | Complete proof with all inputs |
| aggregate | stamped | aggregator | Merged proof needs input from other transactions |
| adjunct | stripped | miner | Input to merged proof from another transaction |
Aggregates may be further named:
- innocent aggregate containing no Tachyon actions.
For example, an aggregate transaction might only contain activity in other pools, or no activity at all. - based aggregate proving its own Tachyon actions.
For example, a miner's coinbase transaction might be an aggregate, and also output miner rewards via Tachyon action.
When stripped, an innocent contributes no actions but still names a covering transaction: its tachyonAggregateId is a nonzero reference to the aggregate that absorbed its stamp, never the all-zero wtxid.
Aggregation Process
Merge to produce Aggregate
A proof's wire format is compressed for bandwidth efficiency. Aggregators must decompress proofs to a mutable format in order to merge proofs, and then re-compress to broadcast.
Aggregators collect autonomes or existing aggregates and merge their stamps:
- Select transactions
- Deserialize and validate stamps
- Match/update anchors
- Merge stamps
- Merge tachygrams (exclusive sets)
- Merge proofs
- Serialize and compress the merged stamp
- Publish aggregate transaction
Strip to produce Adjuncts
Miners obtain the broadcast aggregates, or by vertically integrating as aggregators.
When authoring a block, miners remove stamps from transactions covered by an aggregate, to produce appropriate adjuncts, and assign the adjunct a reference to the wtxid of the aggregate.
---
title: Aggregation and Stripping
---
flowchart LR
classDef tstamp fill:#7fff0040
classDef ta_vec fill:#7fffd440
classDef proof fill:#da70d640
classDef txanchor fill:f0fff040
style agg fill:black,stroke:white
style invisible fill:none,stroke:none
style pool fill:#f0e68c40
style block fill:#bdb76b40
subgraph pool["Mempool"]
subgraph mp1["Autonome 1"]
mp1_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
mp1_ts:::tstamp@{ shape: trap-t, label: "tachystamp" }
end
subgraph mp2["Autonome 2"]
mp2_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
mp2_ts:::tstamp@{ shape: trap-t, label: "tachystamp" }
end
subgraph mp3["Autonome 3"]
mp3_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
mp3_ts:::tstamp@{ shape: trap-t, label: "tachystamp" }
end
subgraph mp4["Autonome 4"]
mp4_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
mp4_ts:::tstamp@{ shape: trap-t, label: "tachystamp" }
end
end
mp1_ts ---o agg
mp1_ta ==> bk1_ta
mp2_ta ==> bk2_ta
mp2_ts ---o agg
agg(("merge")) ==> bk0_ts
mp3_ta ==> bk3_ta
mp3_ts ---o agg
mp4_ta ==> bk4_ta
mp4_ts ---o agg
subgraph block["Block"]
direction LR
subgraph bk0["Aggregate"]
bk0_ts:::tstamp@{ shape: trap-t, label: "tachystamp" }
end
bk0 ~~~ invisible
subgraph invisible[" "]
subgraph bk1["Adjunct 1"]
bk1_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
end
subgraph bk2["Adjunct 2"]
bk2_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
end
subgraph bk3["Adjunct 3"]
bk3_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
end
subgraph bk4["Adjunct 4"]
bk4_ta:::ta_vec@{ shape: procs, label: "tachyaction" }
end
end
end
Action set indicator
An aggregate's stamp proves its own actions together with every covered adjunct's actions, but carries no proof header: a verifier reconstructs the header from the covered actions. Within a block that material is all at hand, since each adjunct points to its aggregate by wtxid. Before block inclusion it is not: aggregators publish only their merged transactions, and the ambiguity between actions and tachygrams makes a nearly-complete collection of adjuncts hard to recognize without falling back on full proof verification.
To make that recognition cheap, the stamp trailer carries hStampActionsTachyon, an assistive indicator the transaction author provides (see Bundles → Wire Format). It is a BLAKE2b-256 digest over the sorted cv || rk descriptors of every action the stamp covers, so an observer can cheaply tell an autonome from an aggregate and judge whether a collection of adjuncts is complete, without verifying the proof. The proof binds the same actions as a Pedersen commitment to their Poseidon digests; recomputing the trailer digest is the cheap check, and it is a separate construction over the same set rather than a copy of the one the proof carries.
The indicator is authorization data, not effecting data: it rides on the strippable stamp trailer, contributes to auth_digest, and is absent from adjuncts. It is not a soundness mechanism. The proof binds the action set regardless; a wrong indicator only harms its author, since mempool actors decline to handle a transaction whose indicator they cannot satisfy, and a subset, superset, or partial overlap simply fails to validate.
Coverage verification uses it as the first of two fast-fail gates. It recomputes the digest over the candidate collection's actions and, on disagreement with the carried hStampActionsTachyon, fails before attempting the expensive proof verification. It then checks the tachygram arity, nTachygrams == 2 * covered actions, which the fixed per-action ratio makes an exact test: a stamp short of the arity has reused a tachygram across actions, since the published tachygrams are a set.
Overview
Without Tachyon, the ZCash transaction lifecycle is similar to other blockchains:
sequenceDiagram
participant Wallet
box ZCash Network
participant Mempool
participant Miner
end
participant Chain
note over Wallet: Create transaction
Wallet ->> Mempool: Wallet RPC
Mempool -->> Miner: Gossip
note over Miner: Select transactions
Miner ->> Chain: Mine Block
Tachyon introduces shielded transaction aggregates, which introduce a new network role, called an aggregator:
sequenceDiagram
participant Wallet
box ZCash Network
participant Mempool
participant Aggregator
participant Miner
end
participant Chain
note over Wallet: Create transaction
Wallet ->> Mempool: Wallet RPC
Mempool -->> Aggregator: Gossip
note over Aggregator: Aggregate transactions
Aggregator -->> Mempool: Gossip
Mempool -->> Miner: Gossip
note over Miner: Select transactions
Miner->>Chain: Mine Block
A Deep Dive on Tachyon
Although Tachyon’s central contribution is its use of prunable nullifiers to scale Zcash without compromising privacy, we begin from a different vantage point. Rather than diving directly into how evolving nullifiers work, we first examine a foundational design decision in Tachyon’s key structure: the separation of concerns across subprotocols that shapes the rest of the system.
The Zcash Spec is most illustrious for its sedimentary layers of meticulous notations and its evolving key structures across network upgrades. We marvel at the sophistication of the key designs, at the laborious effort behind to strive for efficiency, security, and rich functionalities all at once. But why such growing complexity? After all, the Sprout upgrade, following the original Zerocash, only requires one payment key and one encryption key.
One source of the complexity is the separation of proof generation and transaction authorization. In Zerocash/Sprout, a valid SNARK proof already ensures rightful ownership, thus no further authorization needed theoretically. In practice, however, hardware wallets are both resource constrained and vendor gated to support intensive proof generation. While Sprout can lean on the zero knowledge of SNARKs to prevent linkability, Sapling spends authorized via signatures requires re-randomizable signature to prevent linkage between spends from the same owner. This re-randomization manifests through the authorization key in the secret witness and the randomized authorization key in the public instance of the proof. The spend authorization signature is verified against the publicized .
Another reason for the complexity is the conflation of note ownership and note transmission. Since the original Zerocash (inherited in all Zcash upgrades), the payment address serves dual purposes: declaring note ownership and facilitating transmission of note secrets. The sender of a transaction needs to securely communicate the output note openings so that they can be spent later by the recipient. Without assuming secure channels between all users, Zcash has been transmitting the encrypted memo in-band as part of the transaction, effectively using the blockchain as the public bulletin board. The payment address, publicized to the sender, contains a transmission key which is the encryption key of a hybrid public key encryption scheme. Zcash, from Sapling onward, is extra cautious about the privacy leakage in case of colluding senders under reused transmission keys. Therefore, diversified address is introduced to randomized the transmission key while preserving the same incoming viewing key for memo decryption and detecting incoming notes.
Furthermore, fine-grained disclosure of transaction flows requires a distinct outgoing viewing key to enable optional viewing of outbound notes. Viewing keys support selective disclosure of both incoming and outgoing notes, either to the account holder or to authorized third parties. This separation also facilitates quantum-safe outgoing viewing keys from day one, as they are not subject to the address-diversification requirement that currently ties to discrete-log–based constructions.
Decoupling Payment Protocol from Shielded Protocol
A key observation Tachyon makes is that we can separate the concerns of spend authorization and note transmission! This separation appears in the decoupling of the shielded protocol from the payment protocol. The payment protocol is responsible for full payment address construction, note transmission, and selective disclosure capabilities, while the shielded protocol is reduced to the minimal functionality required to maintain the shielded pool and enforce note ownership and authorized transfers on-chain.
Informally:
- Shielded protocol: binds every note to an owner for spend authorization
- Spend authorization requires both valid proof of ownership (proof of knowledge on ) and transaction authorization (signature under )
- Beyond maintaining the shielded pool, the blockchain acts as a data availability layer for arbitrary payment-protocol data
- Payment protocol: securely transmits relevant note info to intended recipients
The rationale for this separation becomes clearer when examining the underlying key material. Of all derived keys, only two are strictly necessary for enforcing note ownership: the nullifier key , used to derive nullifiers, and the authorization key , used to derive the randomized spend validation key. Both are known only to the note owner and supply as secret witnesses in the SNARK proof.
In Zcash today, a shielded payment address binds together and additionally includes for incoming note detection. Tachyon instead decomposes this structure into a payment key , a binding commitment to the pair and a separate transmission key managed entirely by the payment protocol. This significantly simplifies the shielded protocol’s key architecture by removing functionality unrelated to spend authorization.
Among the main security properties, Tachyon shielded protocol needs to uphold Ledger Indistinguishability (defined in Zerocash), Balance, Note Privacy, Note Privacy (OOB), Spend Unlinkability (but attackers access restricted to only payment key). Full Spend Unlinkability (attacker with access) and Faerie Resistance are now the responsibilities of the payment protocol. Security analysis on a more comprehensive list of properties is outside our scope.
This separation1 yields several benefits: a narrower and more manageable scope for shielded pool upgrades, cleaner isolation of security assumptions for auditing, greater flexibility in exploring payment protocol designs while preserving a stable shielded core, and the ability to develop sub-protocols in parallel. More broadly, we believe this separation of concerns enables Tachyon, and future post-Tachyon upgrades, to evolve more rapidly while supporting more modular security analysis.
Shielded Protocol
We incrementally cover the whole Tachyon shielded protocol in this section.
Note: in practice, all derivation functions (e.g., hash, KDF, XOF, and Derive) should be domain-separated; we omit this detail here for simplicity of presentation.
Payment Key
As explained above, Tachyon shielded protocol only expects an authorization key from a re-randomizable signature scheme2 and a nullifier key . While both keys should be derived from a master spending key as per ZIP-32, the concrete derivation path is specified by wallet standards. The transfer proofs in shielded transaction only use them directly as secret witnesses to further derive public values including (randomized) spend validating key and nullifier , but never constrain their derivations. The shielded protocol only mandates that they are indistinguishable from randomly sampled keys.
The payment key is the owner field every note commits to: a binding commitment to the pair. A wallet mints a fresh address per sender from its master spending key in ZIP-32-style. Instantiated with a hash-based commitment, gives a succinct owner field and quantum recoverability today. Publicizing directly, a Schnorr verification key, to senders who might have future access to a quantum computer exposes the user "Harvest Now, Decrypt Later" risk.
Spend authorization follows the same construction as in Orchard. The authorization key pair satisfies the DLog relation , and can be re-randomized into an unlinkable key pair using a randomizer . Transactions are signed using the re-randomized signing key . The resulting signature is unlinkable to the original spending authority, while remaining verifiable against the randomized spend validating key , defined as:
Note
A tachyon note is a tuple:
where is the payment key, is the value of the note, is pseudo-random note identity that binds to the note nullifier value as an input to its derivation, and is a random commitment trapdoor3. In contrast to Sapling/Orchard, the note commitment in Tachyon is purely based on symmetric primitives4. Thus, Tachyon doesn't require extra enforcement on derivation on wallets to achieve quantum recoverability like Orchard does.
Evolving Nullifier
Readers should refer to Sean's post and the short note [BM25] for a detailed motivation and an overview of Tachyon's evolving nullifiers.
A scaling Zcash produces more note commitments and nullifiers, both accumulating in the shielded pool. The commitment set grows on disk, but luckily storage is cheap. The nullifier set becomes the bottleneck: every transaction must check that its inputs' nullifiers have never appeared before, which forces consensus nodes to keep the whole set in memory on the critical path. At Visa-level throughput, this nullifier state would grow by an unattainable 500 GB per day.
Tachyon offloads most of this check to the user. The consensus node retains only nullifiers from the most recent blocks; the user supplies an exclusion proof attesting that their nullifier does not appear anywhere in the older history. This proof must be kept current as each new block lands, which Tachyon achieves incrementally via proof-carrying data (PCD). Since constantly scanning blocks and refreshing proofs is onerous, users can outsource the task to an oblivious syncing service (OSS). However, updating an exclusion proof requires knowing the nullifier value, and a nullifier revealed to the OSS lets it trace the eventual spend of that note — a disastrous privacy leak. Tachyon resolves this by letting nullifiers evolve across epochs: the value a user shares with the OSS in one epoch is unlinkable to the value revealed at spend time. This breaks a long-standing Zcash invariant: each note has only one nullifier that is globally unique value in the pool. As a result, Tachyon requires both a new nullifier derivation and a new double-spending prevention mechanism.
Philosophy: Client-side Validation (CSV).
Tachyon's scaling approach rests on one principle: move validation off the critical path of consensus and onto the client wherever possible. As a blockchain scales, the burden on consensus nodes grows along every axis — compute, memory, storage, and bandwidth. The remedy is to let the transacting client prove its own correctness and leave consensus only cheap verification. This principle guides many design decisions beyond our prunable nullifiers.
The ideal functionality for an epoched nullifier is a deterministic function
whose outputs are indistinguishable from random bytes. Such an binds to both the spending authority (via ) and the underlying note (via its per-note trapdoor ), while remaining unlinkable across epochs to anyone without .
Circuit efficiency and delegated privacy shape the choice of . A constrained PRF [BW13] would let the wallet hand an OSS an evaluation key for a delegation range, but the GGM-based candidate has relatively poor circuit efficiency (see its cost analysis). After exploring the alternatives, we instead entrust users themselves to derive and prove their nullifiers. The OSS receives nullifier values and a proclaimed range without any note-binding evidence: a valid syncing request may equally be a decoy list unrelated to any note. The user/wallet later binds the exclusion proof returned by the OSS to nullifiers derived from the actual note.
The leading candidate first derives the per-note master key , then evaluates several consecutive nullifiers with one algebraic permutation:
For example, if a user wants to cover epoch with a sponge rate of , she would delegate the range , a subrange of local derivation range realized by a single Poseidon squeeze: . In practice, the delegation range may be larger, which requires the user multiple PCD steps to fully cover the whole .
For the remaining presentation, denotes any construction that provides efficient batched evaluation and the required semantic security.
Ranged Nullifier Commitment
A ranged nullifier commitment binds a sequence of epoched nullifiers for some epoch range . This primitive provides three properties:
- Position and value binding. A committed entry binds both its epoch and its nullifier .
- Incremental range extension. The commitment can be incrementally built and updated without fixing the range endpoint in advance.
- Indexed-subset proof. Given commitments to two nullifier ranges, the prover can succinctly prove that every indexed value in one occurs in the other. Range counters separately enforce order and contiguity.
The natural candidate is a vector commitment (VC) scheme that supports subvector opening and updatability (cf a SoK on VC). However, existing solutions are all built on RSA or bilinear groups, neither is circuit-friendly. Luckily, in our specific use case, we don't strictly need a full-blown VC: our nullifier commitment is built incrementally, with each update proven correct against the running commitment. In other words, the prover in a standard VC is given to produce a commitment to the verifier for subvector opening, but a cheating prover could deviate from the prescribed commit algorithm; whereas in our context, we can enforce honest commit/update, thus expand the design space for the commitment scheme.
In our setting, the wallet locally proves correct derivation of nullifiers in range and commits to them. Concurrently, the OSS receives opaque pairs , proves each absent from all tachygrams appeared in the past epoch , and commits to the epoched nullifiers for which it has tested non-membership. Both the wallet and the OSS compute their nullifier commitment incrementally because both nullifier derivations and non-membership tests span across multiple PCD steps. The wallet then proves that the OSS-tested indexed set is contained in its locally derived range. This binds the delegated exclusion proof back to the note without revealing the note or any linkable information to the OSS.
Here is our concrete construction.
Let for , where evaluations outside any revealed set remain computationally indistinguishable from random. To bind both an epoch position and its value, fix a non-cubic residue and encode as the cubic factor
Encoding both the absolute epoch index and its nullifier in each factor provides both positional and value binding. It allows us to sidestep traditional vector commitments and collect the range as an indexed multiset, which admits a simple subset proof.
The wallet begins at an arbitrary epoch . For a consecutive range it derives the corresponding nullifiers and commits to
The commitment is incrementally built. Starting from , appending the next epoch gives
Using Ragu's polynomial oracle5 functionality, we can easily check the update to the commitment by identity testing at a random point. Importantly, this commitment is naturally extensible without fixing the overall range or the endpoint in advance.
An OSS receives opaque pairs and proves each absent from the assigned portion of epoch 's public history. It commits to the corresponding indexed factors for the consecutive range :
To bind the delegated work back to the note, the wallet proves that every OSS-tested occurs in its locally derived range. This indexed-subset relation is enforced via the standard quotient argument: there must exist a quotient such that
The commitments to , , and are fixed before the oracle challenge , after which the verifier checks .
Divisibility itself is commutative and therefore proves only indexed-multiset inclusion; it does not prove order. Order is enforced separately by requiring to be a contiguous increasing epoch range and checking its counter and sentinel endpoints as it is built.
Soundness sketch. For Pasta scalar field , we know , thus we can fix as a public non-cube. Then is irreducible over , and so is its image under every invertible affine substitution . For a valid epoch , we have in . With unique factorization, there is only a rare chance left for indexed-subset forgery: when is not injective:
But since our epoch range is small and the nontrivial cubic root of unity is very large, such coincidence will never occur. Even though we didn't explicitly enforce 's range in circuit, we do enforce its increment as the user or the OSS incrementally builds and . Additionally, an out-of-range will result in invalid anchor values in the final proof; thus indirectly rejected.
Nullifier Security
We now examine how the evolving nullifier upholds the security properties carved out for the shielded protocol. Readers can safely skip this section and come back later since the analysis refers to concepts introduced in later sections.
Balance. Only the holder of can compute any , since requires it. A spend proof pins both and to a deterministic function of the note and epoch, so a note has exactly one valid nullifier per epoch and no freedom to mint a fresh value that dodges a past spend. Double-spending is ruled out by two complementary checks: the user proves exclusion from authenticated older history, while consensus checks duplicates in the recent epochs it retains. Publishing both adjacent nullifiers makes those checks overlap across an epoch boundary.
Note Privacy. The adversary is a keyless third party reading the whole
on-chain transaction, including any in-band memo. The shielded footprint, namely
the commitment (hidden by ), the spend's revealed nullifiers (pseudorandom
by the semantic security of ), the rerandomized , and the hiding
,
reveals none of , , . The in-band memo is payment-protocol data
that the shielded protocol carries opaquely and never parses (committed only to
da_digest), so its secrecy rests on the payment protocol's encryption, not on
the shielded core.
Note Privacy (OOB). Here the note plaintext travels out of band rather than as an in-band ciphertext, so the adversary of concern is the sender, who learns but never the recipient's . Because every hangs off the master key , which cannot be formed without , knowledge of the note plaintext alone does not let the sender, or anyone it colludes with, recognize the recipient's eventual spend on chain or link it back to the note it sent.
Spend Unlinkability. Across epochs the of a fixed note are mutually pseudorandom to anyone lacking : by the semantic security of , any set of revealed evaluations leaves every evaluation outside it indistinguishable from random, and this holds even for the pair revealed together at spend. Delegation is list-bounded: an OSS delegated a set holds the explicit evaluations and no key material at all, so it can refresh exclusion proofs for exactly those epochs and predict nothing beyond the list. It sees the public history segments assigned to it, but not the note commitment, the user's note-binding proof, or the eventual spend endpoint. Range standardization, decoys, and local continuation can therefore keep maintenance and imminent-spend requests in the same cryptographic shape. And since binds the per-note , a list delegated for one note reveals nothing about any other note the user owns. To an attacker holding only the on-chain , the spend is unlinkable to it, since the two draw on disjoint randomness ( versus ). The stronger flavor of spend unlinkability, under incoming viewing key access, falls to the payment protocol, since Tachyon's shielded core has no .
Faerie-gold via the wallet. In Orchard, Faerie-gold resistance comes from binding each new note's to the unique nullifier of an input note. Tachyon's tachygram accumulator does not assign notes a canonical position, so the shielded protocol cannot enforce that binding. A malicious sender could in principle pick colliding values across two notes sent to the same recipient, where only one of them is spendable. We push detection to the recipient's wallet: upon receiving a note, the wallet computes the note's nullifier at a fixed reference epoch and rejects the note if it collides with any other note it currently holds. Since a wallet's note set is small, the check is cheap; the knowledge that compliant wallets will reject such collisions is enough to deter the attack.
Tachygram Accumulator
All shielded pools in Zcash today maintain two separate accumulators: a note commitment Merkle tree for efficient inclusion proofs and a nullifier set with constant-time membership queries for exclusion testing.
Tachyon instead uses a single cryptographic accumulator whose members are encoded as roots of a polynomial, so that both membership and non-membership tests reduce to a single evaluation query. Conveniently, Tachyon's PCD proof system natively and cheaply supports evaluation queries against online polynomial oracles5. Because the accumulator is universal6, it need not distinguish nullifiers from note commitments: a single accumulator collects indistinguishable 32-byte blobs, each a tachygram, that can be either a nullifier or a commitment.
The accumulator is the commitment to a polynomial :
The key properties of this universal accumulator:
- Membership is enforced via , non-membership via
. Both tests are insensitive to multiplicity, so this is a
multiset accumulator: a tachygram appearing times contributes the factor
, but a single occurrence already certifies membership.
- We do not deduplicate. In honest operation every tachygram is a distinct pseudorandom blob, so multiplicity exceeds one only with negligible (or adversarial) probability; and since (non-)membership ignores multiplicity, such cases are harmless.
- Consensus nevertheless requires every newly validated tachygram to be distinct from both the retained window and earlier tachygrams in the same candidate bundle. Consequently every accepted per-epoch accumulator guarantees to have a multiplicity of for all members/roots.
- Members are unordered: a multiset commitment, not a vector commitment.
- Multiset union
is polynomial multiplication, yielding a product accumulator
(unconditionally, with no disjointness precondition);
multiset difference is division, yielding a quotient
whenever the divisor is contained, and failing with a remainder otherwise.
- A union can be tested via at a random point .
We emphasize a subtlety in the security of this polynomial-based accumulator. Polynomial-commitment binding says that a commitment opens to one polynomial; it does not say that this polynomial is the accumulator of the claimed tachygrams. An attacker could instead commit to a polynomial that adds a malicious root or drops a genuine one, making the corresponding membership test true or false at will. Tachyon therefore verifies every against its published tachygram list using the technique below. The randomized identity test is sound relative to the PCS degree bound : commitments are fixed before the challenge, so a false identity passes with probability at most .
Checking Accumulator Correctness
Our goal is to check the correctness of the accumulator value given a public list of without expensive recomputation.
The solution is batch verification via a randomized point check. The verifier samples a random and invokes the PCS evaluation procedure on the (commitment, point, evaluation) claim , where is computed locally. Naturally, this proof can be made non-interactive with Fiat-Shamir. Notably, the verifier performs only cheap field operations, avoiding the group operations that recomputing the commitment would require (for Pedersen, KZG, or Bulletproof PCS).
Tachyon Transaction
Each block contains one or more transactions. Each transaction has a txid,
which commits only to its effecting data
(ZIP-244) and is therefore the stable,
non-malleable transaction identifier, and a wtxid
(ZIP-239), which additionally commits to the
malleable authorization data and is the identifier used to relay v5+ transactions
over the p2p network.
Each transaction optionally contains a bundle of transfers from each pool:
JoinSplit for Sprout (soon deprecated), Spend/Output for Sapling, Action for
Orchard, and now Tachyon Action for the new Tachyon pool.
A Tachyon Action transfer either spends an old note or creates a new one. Whether a spend or an output, its Action description is uniformly represented by a pair , where is the randomized spend validating key, whose derivation binds to the underlying note, and is a blinding commitment to the net value (positive for a spend, negative for an output, following the Sapling/Orchard sign convention). Unlike Sapling and Orchard, the tachygrams (nullifier or commitment) are left out of the description, because evolving per-epoch nullifiers are no longer static. We instead bind the note to through its randomizer :
A spend's re-randomizes the custody-held spending authority ; an output's carries no authority at all — creating a note requires none, since the binding signature already enforces that outputs are funded. An output's signing key is thus just , so a hot device can sign outputs without a custody round-trip; only spends need the custody-held . Both forms of are uniformly random points, indistinguishable on chain.
The Tachyon bundle inside a transaction carries a sequence of Action
descriptions together with the net balance of all action transfers
,
positive when value leaves the shielded pool, matching the valueBalance
convention of Sapling/Orchard and keeping the ZIP-209 pool-turnstile accounting
uniform across pools. The balance is proven by a binding signature
as in Sapling/Orchard.
Recall: How binding signature works.
The net value commitment in every action description is Pedersen-committed:
where is the blinding factor and is an independent group generator.
(Both value-commitment bases are independent of the spend-authorization base
behind ; in practice Tachyon reuses Orchard's ValueCommit generators.)
By the homomorphic property of Pedersen commitments, the verifier can sum the in a bundle to obtain , itself a blinding commitment to the net balance with blinding factor :
To verify the net balance, the validator reconstructs a discrete-log public key
and then verifies a Schnorr signature produced under . Effectively, the signature serves as a proof of knowledge of the secret scalar behind the public key .
Before describing the stamp, we name a recurring object it relies on: the spendability proof. Once complete, it establishes two historical facts about a spent note: its commitment appeared in a stamp included in a finalized block (inclusion), and every nullifier required for complete earlier epochs was absent (exclusion). For a same-epoch note the exclusion range is empty. Historical claims remain relative to an authenticated chain position until the target anchor is checked by consensus. Since old tachygrams are pruned from the live tachygram set, these facts are proven against an authenticated history of tachygrams on-chain.
Once the creation block is finalized, the wallet may prepare evidence for an immediate same-epoch spend, where no past exclusion is required. If the note survives the epoch, authenticated full-epoch evidence establishes both creation membership and inclusion-epoch nullifier exclusion. Additional full-epoch evidence extends exclusion through later completed epochs.
A Tachyon Stamp provides a PCD proof that every action in the bundle is
valid and that the action and tachygram accumulators match those actions.
Its public inputs are . The stamp
also publishes the tachygram multiset . The target epoch is implied
by the target in the anchor chain.
Alternatively, the stamp holds a wtxid reference to another transaction whose
stamp carries an aggregated PCD proof and the corresponding public inputs.
The accumulator is included to spare miners from recomputing it over all
tachygrams; instead, the correctness of is proven using the
batched verification trick.
The PCD construction supports aggregating finished bundle proofs: a new
aggregated transaction will be created whose stamp contains the union of the
action and tachygram multisets, their accumulators, the common anchor, and an
aggregated PCD proof. The stamps of all constituent transactions are replaced
by a reference to the aggregated transaction's wtxid.
Note: an aggregated Tachyon bundle shares exactly the same format as a normal standalone bundle (a.k.a. a Tachyon autonome), and may even carry additional Action descriptions of its own. A purely aggregating bundle, by contrast, carries an empty Action list (hence no authorization signatures), a zero value balance, a trivial binding signature, and a stamp holding the aggregated proof and its proof data.
The balance check and authorization signature verification (including the
SIGHASHcomputation) are identical for every bundle, aggregated or standalone. The only difference is proof verification: an aggregated bundle verifies against the single stamp of the aggregated transaction, so its cost is amortized across all constituents and thus economically incentivized.
Importantly, each Action description is associated with two tachygrams, a consequence of the evolving nullifiers. If a user proves only the nullifier for the current epoch , the epoch may advance to before the transaction is picked up from the mempool. Since neither miners nor the OSS—the latter responsible only for syncing past epochs, and never learning future nullifiers, least of all at spend time—can unilaterally update the proof, the transaction goes stale and requires further user input to refresh. This is poor UX and a potential timing side-channel that leaks privacy. We therefore require every spend action to reveal (and prove in circuit) the nullifiers for both the current and the next epoch, leaving an ample buffer against this cross-epoch race. To keep spend and output actions indistinguishable, we further require each output action to publish a dummy tachygram alongside its note commitment, so every action uniformly carries two.7
All non-malleable parts, collectively the effecting data, hash into a stable
identifier txid: a bundle commitment from each pool and their value balance
. In-band memos count as effecting data in the legacy pools,
and they remain so in the Tachyon pool, entering txid through the da_digest
described below.
Each Action description is first mapped to a field element:
The Action multiset and its polynomial commitment are
Repeated Action descriptions contribute repeated factors. The canonical encoding of enters the Tachyon bundle commitment directly.
All mutable parts (orange in the diagram) commit only to the auth_digest, and
hence transitively to wtxid = txid || auth_digest; only the stable parts
(green in the diagram) contribute to txid.
Specifically,
da_digestcommits to the (optional) memo bytes, which the Tachyon pool carries as an opaque DA blob: unconstrained, never parsed or interpreted by the shielded protocol.txidcommits to .auth_digestcommits to .
Keeping the memo payload inside the effecting data is what makes it
tamper-proof. Authorizing data is malleable by definition, and Tachyon relayers
rewrite it in flight: aggregation replaces a transaction's stamp, and with it
auth_digest and wtxid. With da_digest inside txid, tampering becomes
detectable: every authorization signature signs over it through the SIGHASH,
so altering the DA bytes yields a different transaction whose signatures no
longer verify. ZIP-244 makes the same choice for the legacy pools by hashing
their in-band memo ciphertexts into txid.
Finally, the Tachyon bundle carries a spend authorization signature for every
Action description, each signed over the SIGHASH, which commits to the same
transaction-wide effecting data (across all pools) used to derive txid8.
Block space can additionally serve as a data-availability layer for arbitrary
payment-protocol data used in note transmission; the shielded protocol neither
interprets this data nor checks its correctness. As explained later,
the payment protocol Tachyon targets distributes the recipient's KEM encapsulation
key out of band through the address, and carries a KEM ciphertext
in-band only on rare first-contact transactions (ordinary payments carry none), so
the in-band footprint stays small. The scheme is quantum-safe from day one and
leaves the format unchanged even through a full quantum upgrade.
Anchor Chain
An anchor chain is a hash chain whose updates absorb per-stamp tachygram accumulator commitments. Every stamp carries a committing to the tachygrams it introduces: those of a single bundle for a standalone transaction (a Tachyon autonome), or their union across many transactions for an aggregate. Each chain state (the field in each block header) is an anchor; itself is not an anchor, but a state delta to compute the next anchor. A stamp in consensus epoch extends the chain as
Binding at every tick lets a proof authenticate the epoch containing each anchor-chain segment without relying on external validation.
At the transition into every epoch , consensus appends exactly one domain-separated epoch sentinel, after all stamps of epoch :
Here is the final anchor-chain state before the transition; for an epoch with no stamps, it is simply . This is an ordinary update of the anchor-chain state already carried by every block header, not a new header field: the terminal block of epoch commits to after processing its stamps and the transition. By convention, the sentinel for epoch always means its first anchor . Epoch therefore spans to . Every transition has a sentinel, so even an empty epoch has two distinct, authenticated boundaries. For epoch zero, the genesis anchor-chain state replaces .
Every canonical anchor therefore determines a unique epoch: and all ordinary anchors after it but before belong to epoch . We write for this value and assume validators implement this map efficiently.
The chain therefore advances at sub-block, above-transaction granularity: in a block containing only standalone Tachyon bundles, it ticks once per transaction. A published stamp carries a target . As with Orchard anchors today, validators maintain the (unpruned) anchor chain and are responsible for validating the stamp's against the canonical history. When consensus accepts the stamp, its is absorbed into the current state to produce the next anchor.
Why anchor per-stamp rather than per-block, when the block is the unit of consensus finality? The primary justification is that it minimizes validator work, in alignment with our philosophy. Each stamp already ships a whose correctness is batch-verified in circuit, so a validator merely hashes it into the chain. A per-block anchor would instead force every validator to rebuild a block-wide accumulator from scratch: re-accumulating every tachygram in the block, interpolating the product polynomial, and committing to it, which involves an expensive multi-scalar multiplication for some PCS choices.
Per-stamp cadence also raises concerns about the cost of generating exclusion proofs. To prove never appeared in epoch , a user could naively show against the accumulator of every stamp folded into the chain that epoch. Instead, we leverage the multiset union operation on our accumulator polynomials to collapse the per-stamp checks into one. The product of all stamp polynomials in an epoch is itself an accumulator over all tachygrams of that epoch — the epoch accumulator :
and is absent from the epoch exactly when . Anyone (typically an OSS) can prove that is the correct product of the per-stamp polynomials whose commitments were absorbed into the anchor chain, by showing using the proof system's cheap polynomial-oracle queries5. Since the queries are served natively by the folding scheme and not through a step circuit, may have as high a degree as the PCS SRS allows, independent of any per-PCD-step-circuit size limit. Admittedly, the prover cost is still linear in the epoch's stamp count, but it is paid once and then amortized. The epoch accumulator , carrying its correctness proof, can now be reused to test each unspent note's epoched nullifier directly.
Sentinel transitions absorb no tachygram-accumulator commitment and therefore contribute no factor to . For an empty epoch , ; the distinct endpoint anchors still certify that the whole epoch was traversed.
This removes the per-stamp checks, but still has degree linear in the total number of tachygrams within an epoch. Even though Ragu theoretically supports high-degree polynomial oracles, they become practically infeasible: a modest throughput of TPS (all 2-input-2-output) and a two-week epoch would yield tachygrams. With our Bulletproof PCS's linear-time verifier, transaction verification would take more than 16 minutes9.
We now present an optimization that reduces the amortized per-nullifier cost to strictly sublinear, without maintaining or testing against any high-degree polynomials at all.
Quadratic Residue Filters
Our goal: prove non-membership of over an entire epoch at an amortized cost sublinear in , the total number of tachygrams in epoch .
The idea is bucketing: partition the epoch's tachygrams into smaller groups so that a query needs to examine only one of them. Assign each tachygram a short QR profile using discriminants that the queried tachygram can also evaluate. The profile is derived deterministically from the tachygram, partitioning the tachygram space into disjoint classes. Thus belongs to exactly one class and, if it appeared during the epoch, must lie in the corresponding bucket. Epoch-wide non-membership therefore reduces to one accumulator opening against that bucket.
To construct the profile buckets within the polynomial degree bound, first collect the epoch into bounded, unclassified root buckets. An OSS can route these buckets as they arrive under its privately chosen discriminants. Routing repeatedly decomposes each bucket under the next discriminant and merges adjacent buckets assigned the same resulting profile whenever their union remains within capacity. Once all buckets for one profile merge into a single bounded bucket covering the full epoch, that bucket is final; otherwise those buckets continue through another routing round. QR discriminants make each decomposition cheap to prove while keeping expected profile loads nearly balanced.
A number theory detour
Over a prime field , the nonzero elements split perfectly in half: the quadratic residues () and the non-residues (). Both classes are cheap to test in-circuit:
- : supply the root as advice; one constraint .
- : fix a public quadratic non-residue and supply with , since multiplying by a non-residue flips the class:
A QR discriminant is one such split under an offset : classify by whether is a square, assigning the exceptional value to the residue side. A random offset cuts any fixed epoch set roughly in half, and distinct discriminants tag every element with a -bit QR profile , where iff is a square or zero (written as ), and otherwise (written as ). The discriminants together sort the field into disjoint buckets of roughly equal size.
For a claimed non-residue bit, the circuit must also prove , for example with an inverse witness. Otherwise could incorrectly take the non-residue branch with square root zero.
Batched QR Test
Given the square-free vanishing polynomial , we can batch-test that all roots are QR, namely , as follows. Canonical epoch accumulators are square-free by the consensus uniqueness rule. "Square-free" here means that every root has multiplicity : there are no repeated .
- Prover interpolates all QR pairs into a polynomial where and .
- Prover computes and sends commitments to
and to the Verifier.
- Observe that the numerator vanishes over all (since ), so perfectly divides the numerator.
- Verifier samples a random and tests .
For an offset , the corresponding identities replace by . The prover for a batched test would set as:
Similarly, the prover for a batched test would set as:
QR Decomposition
With the batched QR test, we can reduce a QR decomposition claim to PCS evaluation claims. Let be the square-free accumulator of a set , and let be a fixed public quadratic non-residue. The relation is
It preserves without adding or removing elements. The left output contains exactly the elements and the right output exactly the elements.
The reduction works as follows:
- Prover interpolates such that
- Prover computes and commits to these four polynomials.
- After all commitments are fixed, the verifier samples and checks
The last check assigns the exceptional value to . The non-residue identity alone cannot distinguish it, since satisfies . Because is a product of linear factors, proves that is absent from the non-residue output. Together with , this forces it into whenever it occurs.
QR Bucket Routing
Routing Round. QR decomposition is the atomic algebraic relation: it takes one bounded bucket and returns its two factors under one discriminant. Bucket routing composes many such relations into decompose-merge routing rounds. A round decomposes its input buckets under the next discriminant and merges adjacent outputs with the same extended profile wherever their union remains within the bucket capacity.
The diagram below shows round , using discriminant . Its inputs are outputs of the preceding round, with and sharing one QR profile and carrying another. Decomposition sends each bucket's tachygrams left and its tachygrams right. The resulting buckets inherit the input bucket's anchor range and append the corresponding class bit to its profile. Both outputs retain that range even when one is empty and represented by the unit polynomial. Consequently, outputs produced from different input profiles remain different even when they take the same side under .
Merging then combines outputs only when two conditions hold: they have identical profiles, and their anchor ranges are contiguous. If the left bucket covers and the right covers , their merged bucket covers the union . A merge is performed only when the union remains within the bucket capacity. An output that cannot merge with its neighbor, such as the orange bucket in the diagram, remains a separate bucket with its original range.
Each routing round consumes buckets and, with high probability, emits buckets. Decomposition approximately halves each input, after which merging pairs of adjacent, same-profile outputs brings the resulting buckets back toward capacity.
Conveniently, each routing round is highly parallelizable and conducive to streaming. Decompositions are independent, while merges are local to ordered runs of same-profile buckets. The round can therefore be parallelized across those runs or pipelined over a stream of input buckets when memory is limited.
Routing Network with a Jagged Frontier. Every root bucket begins with a contiguous anchor range, and the root ranges together cover the epoch. Decomposition preserves these ranges, while each merge replaces two contiguous ranges by their union. This range invariant is what allows routing to turn many partial-epoch buckets into one full-epoch bucket for each final profile.
Call a routing round full when it is applied across the entire current layer. After full rounds, most profiles may already have one bounded bucket covering the whole epoch. Capacity fluctuations can nevertheless leave several partial-epoch buckets with the same profile at that layer. As illustrated below, only those unresolved buckets need another, partial routing round. Their decompositions preserve the partial ranges, and merges between matching outputs extend those ranges until they cover the full epoch.
This additional work creates a jagged frontier: buckets completed after the full rounds remain at depth , while unresolved buckets continue to deeper profiles. A partial routing round can complete some of those profiles and leave others unresolved, so a branch may require more than one partial round.
Zooming out, suppose root buckets cover consecutive ranges of one epoch. The network applies full routing rounds to all active buckets, then zero or more partial routing rounds only to unresolved same-profile buckets. At depth , the complete class for profile is
Routing for is complete only when all of is represented by one bounded bucket whose anchor range covers the epoch. Final profiles may therefore have different depths. They form a prefix partition of the field, and every final bucket covers the whole epoch. QR balance controls the expected number of full and partial rounds, while decomposition and contiguous range unions preserve the epoch's tachygrams.
QR Discriminant Choice. The discriminants must remain unpredictable to users while the epoch's tachygrams are chosen; otherwise a user could grind commitments to overload a chosen bucket. Each OSS privately samples its own and increments sequentially:
The OSS keeps private until the epoch closes, allowing it to build its routing network in flight without exposing a grinding target. Discriminant choice affects balance, not soundness: decomposition proofs certify the output buckets for any choice. Consumers may use any valid routing network, so a biased or prematurely revealed network can simply be ignored in favor of an honest OSS's routing network. Consecutive discriminants are not statistically independent, but their QR classes have negligible correlation and retain an almost-uniform profile partition.10
Queries and cost. After the epoch closes, a service reveals . A consumer authenticates one full-epoch final-bucket opening. For membership, it directly tests without deriving 's profile. For non-membership, it derives successive discriminants and profile bits, checks that they select the opened bucket, and tests . Routing processes a tachygram once per depth it traverses; this one-time work is amortized across later queries.
A 32-bit profile is sufficient for our intended scale. Even at two-input-two-output transactions ( tachygrams each) per second for a two-week epoch, there are fewer than tachygrams, or fewer than root buckets at entries each. Thus 32 bits is ample for . This leaves room for an unlikely unbalanced profile while keeping the complete profile derivation and QR checks compact.
Evidence Tree
The routing network above produces one proof per final bucket. Retaining and serving every proof is unnecessary: as an orthogonal post-processing step, the OSS folds any chosen set of final-bucket proofs into one proof committing to a evidence tree.
The evidence tree is a Poseidon Merkle tree over any chosen set of final buckets. A leaf binds the epoch, its sentinel endpoints, , the profile depth , the encoded profile , and the bucket's tachygram-set commitment . The folded proof attests that every included leaf came from a valid full-epoch routing bucket and that all leaves use the same epoch metadata. Its public output is a single authenticated tree root.
We use Poseidon's rate as the Merkle arity. One permutation absorbs four children and so resolves two bits of a leaf address, which is the most a rate- sponge resolves per permutation. The tree is therefore quaternary, with depth for final buckets, half the depth of a binary tree over the same buckets. A node absorbs its four children and nothing else, so it needs no domain constant, and a builder with fewer than four children to give repeats one. At the intended maximum of fewer than buckets, a path is at most levels deep. An opening costs one node hash per level and one leaf digest.
The tree need not contain every final bucket. It only needs to contain the bucket a query uses, and a builder holding a single bucket needs no tree at all: a sealed bucket is complete evidence on its own. The OSS retains its chosen final buckets, their Merkle tree, and one proof for the root. A query supplies the selected leaf and its Merkle path, and the bucket's own routing proof can then be dropped. After authenticating the leaf against the tree root, the consumer derives and checks the claimed profile only for non-membership; membership directly checks that the queried value is a root. This layer does not replace or alter routing: it only compresses a set of already proven buckets into one reusable certificate. Since routing runs in flight, tree construction is the only post-epoch work on the critical path.
Transaction Life Cycle
At a high level, Tachyon retains the Orchard/Ironwood transaction pipeline: the wallet prepares Spend and Output actions, proves their validity, balance-binds and authorizes the bundle, and submits the enclosing transaction to the mempool.
Tachyon differs in two main respects:
- Spend-proof construction. Evolving nullifiers require an older note to prove nullifier exclusion across past epochs. This work can be delegated to an OSS without identifying the note, after which the wallet binds the returned exclusion proof to its local derivation and may privately advance the anchor. Spend and Output proofs have very different workloads and can be prepared independently.
- PCD aggregation. The action proofs in one bundle are folded into a Tachyon stamp, and finished stamps from different transactions may be folded again into one aggregate proof.
The transaction flow is as follows:
-
Initialize the spendability proof. Once the note's creation block is included on chain, the wallet proves that the note commitment belongs to its creation stamp and records that stamp's resulting anchor. The final stamp later authenticates the path from this anchor to its consensus-checked target. The resulting proof supports an immediate same-epoch spend. Within the active epoch, the wallet may advance its anchor locally, without delegated work, to avoid revealing the exact inclusion anchor.
-
Synchronize spendability: local derivation and delegated exclusion. To spend a note from a past epoch, the wallet derives the required epoched nullifiers. It directly proves inclusion-epoch exclusion and commits any later range with a ranged nullifier commitment. It may give one or more OSSs opaque lists of values. For every delegated epoch, the OSS proves the value absent from authenticated full-epoch tachygram history and commits to the epoched nullifiers it tested.
The request and returned exclusion proof are note-independent: OSS cannot differentiate a syncing request from a decoy request unrelated to any note. After the proofs return, the wallet shows that the epoched nullifiers tested by the OSS form an indexed subset of its locally derived range. This binds the delegated exclusions to the local derivation without revealing the note. Together, authenticated creation membership and the required exclusion evidence establish spendability through the completed epochs. A final active-epoch anchor segment may be covered locally before spending.
-
Fold the action proofs into a stamp. Output actions are independent of historical anchors, require no synchronization, and can be constructed when the transaction is prepared. The wallet folds all action proofs into one Tachyon stamp. The stamp contains the aggregated PCD proof with public inputs
The stamp separately publishes . The bundle accumulator commits to two tachygrams per action: for a spend and for an output. Revealing both adjacent nullifiers protects the transaction against the cross-epoch race while it waits in the mempool. The wallet may also lift the finished stamp to a later target anchor within the same spending epoch.
-
Authorize and balance-bind. Concurrently with the proving path above, the wallet assembles the transaction body, computes the
SIGHASHover the effecting data, and produces:- an authorization signature for every action, verifiable against its published : spends sign under the re-randomized key (a custody round-trip), while outputs sign under the bare randomizer (no spend authority is needed, so a hot device can sign); and
- the net value balance and one binding signature over the value commitments.
-
Mempool and aggregation. The finished transaction enters the mempool as a standalone Tachyon bundle. A miner or another aggregator may lift several stamps whose anchors lie in the same epoch to a common later anchor, take the multiset union of their actions and tachygrams, combine both accumulators, and produce one aggregated PCD proof. Each constituent stamp is replaced by a reference to the aggregate transaction's
wtxid; the aggregate carries the combined tachygrams, accumulators, anchor, and proof.
Consensus Validation
The bundle balance check and authorization-signature validation are unchanged from Orchard. Tachyon adds stamp verification and a live tachygram-duplicate window.
Stamp verification. Given , the published tachygrams , , and , the validator:
- checks that the target occurs in canonical chain history and obtains .
- confirms is either the current or the preceding epoch: .
- confirms that commits to the Poseidon digests of the covered Action descriptions and that commits to .
- verifies the stamp's PCD proof against the public inputs . The proof enforces the integrity of both accumulators, the revealed nullifiers and output commitments, and the initial inclusion and past exclusion of every spent note.
What the stamp proves. A stamp's PCD proof is bound to its public target , which is either the starting sentinel or an ordinary anchor in the target epoch . The diagram above shows where each historical claim ends:
- Same-epoch spend. Inclusion is established through the note's inclusion anchor in epoch . No nullifier-exclusion claim is needed before that point, because the note did not yet exist. Anchor-chain authenticity then connects the inclusion anchor to the target .
- Past-epoch spend. Authenticated closed-epoch history establishes inclusion in epoch , and authenticated full-epoch histories prove nullifier exclusion for every epoch in . This reaches . An authenticated active-epoch chain segment then reaches the target without making a further exclusion claim.
Thus, in either case, the stamp proves the required inclusion, all required exclusion before epoch , and an authentic path to its target anchor. It does not claim that is absent from epoch . The target anchor therefore cannot be interpreted as an exclusion endpoint. The stamp guarantees only the required exclusion prior to epoch : through for an older note, while a same-epoch note requires no past exclusion.
Target-epoch duplicate check. Every spend targeting epoch must therefore publish . Consensus places every tachygram published in epoch into one duplicate set. A candidate is checked against the values already in that set and then inserted, so later candidates are checked against it in turn. By the end of the epoch, the check has covered the whole of . Two spends of the same note targeting derive the same and therefore collide. This uniform whole-epoch check applies identically to same-epoch and past-epoch spends.
Epoch-boundary race. If stamps targeting were accepted only during epoch , publishing and checking epoch would suffice. In practice, a transaction may still be waiting in the mempool when epoch begins. Requiring an immediate proof refresh would make transaction validity brittle, so Tachyon also accepts an epoch- stamp during epoch . Each spend publishes the adjacent pair so that the same stamp remains protected after this boundary crossing.
Consensus window (new double-spend rule). The one-epoch grace period means that, while processing epoch , validators may see both fresh stamps targeting and lagging stamps targeting . Consensus therefore retains one duplicate window containing all tachygrams from the current and preceding epochs. Candidate tachygrams are processed in deterministic order, with each value checked and inserted before the next. A candidate consequently conflicts with the retained window, an earlier bundle in the same block, or an earlier tachygram in its own bundle.
For a stamp targeting epoch , the two possible acceptance times are safe:
- Accepted in . The live window is . Another spend targeting publishes the same . A spend targeting also publishes as its next-epoch nullifier, so a conflicting value published in either retained epoch is detected. A still older spend is impossible for a same-epoch note; for an older note, it lies within the history covered by the stamp's past-exclusion proof.
- Accepted in . The live window is . A competing spend targeting shares , while one targeting shares . A spend targeting that was accepted during epoch also published and remains in the preceding-epoch window. If it was accepted earlier, it lies before and is caught by past exclusion. As above, such an earlier spend is impossible for a note created in epoch .
Verifying standalone vs. aggregated bundles. Balance, authorization, and the tachygram-window check retain the same per-constituent semantics in both cases. A standalone bundle is verified against its own stamp. In an aggregated bundle, each constituent stamp has been replaced by a reference to the aggregate, whose single PCD proof covers the entire batch. Aggregation therefore amortizes proof verification without changing which actions, signatures, balances, or tachygrams consensus checks.
Proof Statement
First, we give the three monolithic statements an action's proof must satisfy: the per-action statements (Output or Spend), and the bundle-level statement that composes them. Their recursive realization via a PCD computation graph, where each step covers some sub-statements and recursively verify/fold input proofs, follows afterward.
Output Action Statement
A valid instance of an Output Action statement assures that, given the public input:
- : net value commitment
- : randomized action validation key, carrying no spend authority
- : the output note commitment, published as a tachygram
- : a dummy tachygram, so an output reveals two tachygrams, indistinguishable from a spend's nullifier pair
the prover knows the secret witness:
- : note opening, where is the recipient's payment key taken from their address
- : an arbitrary preimage for the dummy tachygram
- the randomizers
such that the following conditions hold:
- Value commitment integrity: , committing the negated created value (value entering the pool counts negatively toward , per the sign convention).
- Value range: in-circuit, with
zatoshi (
MAX_MONEY): non-negative as in Ironwood; zero-value outputs are legal (e.g., carrying a memo with no payment), while the upper bound keeps balance arithmetic overflow-free. - Note commitment integrity: , so the published commitment opens to this note.
- Dummy tachygram integrity: , where is a domain-separated hash reserved for dummy commitments.
- Nonzero tachygrams: and .11
- Authorization: and , binding the validation key to the output note. The signing key behind is itself, so creating an output requires no spend authority (rationale).
The statement contains no anchor or epoch. Historical context neither changes an output nor affects its validity.
Spend Action Statement
A valid instance of a Spend Action statement assures that, given the public input:
- : net value commitment
- : randomized spend-validation key
- : the spend-time nullifiers, published as tachygrams
- : the target anchor, which uniquely implies the spend epoch
the prover knows the secret witness:
- : note opening
- : authorization key and nullifier key
- : the note's inclusion epoch
- authenticated active anchor-span and closed-epoch QR-bucket evidence witnessing inclusion and every required past-nullifier exclusion
- the randomizers
such that the following conditions hold:
- Value commitment integrity: , committing the spent value (value leaving the pool counts positively toward , per the sign convention).
- Value range: is re-checked against the witnessed note. Although its creating output already enforced this range, the redundant check provides cheap defense in depth and keeps balance arithmetic overflow-free.
- Note commitment integrity: .
- Payment key integrity: .
- Spend Authority: and , binding the validation key to the note.
- Commitment Inclusion: occurs in an authenticated creation stamp in
epoch :
- Creation membership: is a member of the creation stamp's accumulator, i.e. .
- Creation stamp integrity: an authenticated anchor-chain history links the creation stamp to the target .
- Past Nullifier Exclusion: for every complete past epoch
, the nullifier never appears in that epoch's tachygrams:
- Past nullifier derivation: and .
- Nullifier nonmembership: the routed full-epoch accumulator selected by 's profile evaluates nonzero at .
- Tachygram integrity: its certificate binds the accumulator to all authenticated stamps between and .
- Spend-time Nullifier Integrity: and are this note's nullifiers at epochs , derived from and therefore bound to ; both are constrained nonzero.11
Bundle-level Statement
The bundle statement glues the per-action statements together. Given the public inputs and published tachygrams:
- : the common target anchor, which implies the target epoch;
- : the Action multiset commitment;
- : the associated tachygram multiset, two tachygrams per action; and
- : their accumulator, a PCS commitment to ,
it attests that:
- Per-action satisfiability: every Spend statement holds at the common target , and every Output statement holds.
- Action-multiset integrity: hashing each emitted with Poseidon produces exactly the multiset committed by .
- Tachygram association: each action contributes exactly its statement's pair— for a spend or for an output—and these pairs form exactly the published multiset .
- Accumulator integrity: commits to for exactly the published multiset .
The value-balance check, authorization signatures, and canonical target-anchor check remain outside the PCD statement. For an output-only bundle, the prover supplies the target directly; no output claim is made historical, and consensus performs the same canonical-anchor check.
Proof Tree
We now decompose the Output, Spend, and bundle-level statements into proof trees. Each node is a step: a bounded circuit that takes up to two child PCD proofs plus some private witness, checks part of its statement, and emits a fresh PCD proof. A step's output is its header (the "data" of proof-carrying data), the public input that captures the computation so far. Headers flow upward, from children to parents. A parent, besides proving its part of the sub-statement, bridges two children by loading both headers and equality-checking the fields they must agree on (e.g. the same field to ensure they are proving consistently against the same underlying note). Sufficient bridging checks make each decomposition into a tree of sub-statements sound.
Notation: we will use different font families for steps and headers: . Fields in a header are wrapped in braces: with dot accessor .
Naming: steps use "noun + verb" with verbs like "seed, fuse, lift, merge", and the noun is the header the step emits, not the one it reads. So fuses into an , and fuses into an although it reads two s. Most fuse steps read and emit the same header, which leaves the rule invisible until one does not. Three steps whose output is a part of what they read are named for the input instead: , and . Headers use a qualified noun like "NoteSpendable, ArbitraryUnspent, NoteUnspent".
Color: User scope is blue (), OSS scope is red (), and shared headers are green (). OSS-generated shared-evidence steps are red.
As previewed in the Tachyon transaction flow, the wallet proves note-specific facts, the OSS proves absence of nullifiers over past epochs, and shared evidence supplies closed-epoch evidence trees, authenticated bucket openings, and active anchor spans. The wallet bridges those branches only after the OSS proof returns.
Shared Evidence: Anchor Spans and Evidence Trees
Shared evidence has two durable final forms. Ordinary evidence advances stamps within the active epoch. Closed-epoch evidence authenticates a set of final QR buckets under one Merkle root. and are intermediate shared headers on the way to that tree. is both the routing network's output and what a query replays out of a tree leaf. Anchor spans do not use QR routing.
Active anchor spans. An anchor-span header is
where has one root for each anchor produced inside the span. is a root of and is not. witnesses one stamp transition, including the epoch and the tachygram-accumulator commitment absorbed by that transition, and emits its two endpoint anchors with the commitment to . takes two headers, requires the left endpoint of the second to equal the right endpoint of the first, proves that the combined is the product of the two halves' polynomials, and emits the outer endpoints. Since neither step admits a sentinel transition, a fused span cannot cross an epoch boundary. These headers are built only for the active epoch and are consumed only by .
flowchart LR classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a; classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a; AnchorSpanSeedA([""]):::o --> a[""]:::s AnchorSpanSeedB([""]):::o --> b[""]:::s a --> AnchorSpanFuse([""]):::o b --> AnchorSpanFuse --> out[""]:::s
Continuous stamp summaries. While epoch is active, an OSS continuously summarizes its stamps in bounded headers
starts from one stamp with accumulator : it sets and computes by absorbing into under epoch . fixes the old accumulator, next stamp accumulator, and product before its challenge, checks
and advances by absorbing the same commitment . A summary closes before another stamp would exceed the polynomial capacity. Thus its anchors bracket exactly the stamp transitions whose tachygrams are roots of ; summaries cannot cross a sentinel transition.
%%{init: {"flowchart": {"nodeSpacing": 12, "rankSpacing": 18, "padding": 4, "useMaxWidth": true}, "themeVariables": {"fontSize": "12px"}}}%%
flowchart LR
classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a;
classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a;
SummarySeed([""]):::o
summary0[""]:::s
SummaryAdvance([""]):::o
summary1[""]:::s
SummarySeed --> summary0 --> SummaryAdvance --> summary1
Streaming QR routing. During epoch , an OSS privately samples and turns each completed summary into
Here is the routing depth, and is the integer encoding of the QR profile bits encountered so far, with NQR encoded as and QR as . Appending a side bit updates to . Every routing header carries the network's first discriminant unchanged, so a header at depth classifies at without having to carry itself. The OSS keeps these routing headers unpublished until the epoch closes, so they do not reveal while users can still choose tachygrams.
The root profile has and the OSS's chosen . A stamp not yet included in a summary can enter through . This has the same root shape and binds its one stamp transition directly. equality-constrains to the consumed summary and fixes the root fields above; here encodes the empty profile. The single-stamp seed likewise carries exactly the stamp accumulator absorbed by its anchor transition.
For an empty epoch, emits the root intake
The sealing checks below authenticate both sentinels, so the empty polynomial cannot be used to omit a nonempty prefix.
Each realizes one bounded bucket in an abstract routing round: its anchor endpoints encode that bucket's source range, and its polynomial commits to the bucket's tachygrams. A round over buckets expands into fixed-arity proof steps.
realizes the atomic decomposition. It takes one intake polynomial , fixes proposed sides , and checks
Relative to the four QR decomposition substatements, enforces decomposition through the product identity and zero-value assignment through the nonzero opening at . It emits a header carrying both commitments.
Each invocation returns one side as a new while checking the purity of its sibling:
- returning the QR side enforces NQR purity of , proving that contains every QR root of the parent; and
- returning the NQR side enforces QR purity of , proving that contains every NQR root of the parent.
To realize one routing round, is invoked once for each side of every split. Each invocation requires and appends its chosen bit,
carrying through unchanged, so the child classifies at .
Checking the sibling proves the returned child is complete for its class: the product relation leaves nowhere else for a matching input root to go. Creation membership is also safe, because splitting and merging never add roots and a zero opening does not depend on the bucket's class label.
Because a round descends both sides of every split, both purity substatements are checked and the split is exact: carries precisely the parent's roots and precisely its roots, satisfying all four decomposition substatements. The two checks enforce each other, since a stray root left in makes the QR-side descent unprovable and a stray root left in makes the NQR-side descent unprovable. The exact partition is therefore the only split from which both children can be emitted, and it is what routing an epoch means; impure sides are not an expected outcome.12
What an individual child carries is weaker, because the two child proofs are not recombined: each child carries the split checks and its sibling's purity check, which proves completeness but not its own purity. This weaker per-branch claim is what the membership and non-membership queries below rely on. Applying the construction independently to all routing buckets produces the round's unmerged children.
joins two intakes only when they have the same epoch, profile, and first discriminant, their anchor ranges are contiguous, and the product fits the PCS degree limit. It fixes both input polynomials and their product before checking
Merge enforces none of the four decomposition substatements anew. Instead, repeated binary merges combine each contiguous block of same-profile outputs while preserving their completeness, root provenance, and range coverage. Where another merge would exceed the degree limit, neighboring pieces remain separate outputs of the round. Thus split, descend, and merge realize the abstract round's variable output arity without requiring a variable-arity proof step.
Routing and merging proceed as summaries arrive. Once the epoch closes, any profile represented by a single full-epoch intake can be sealed; remaining pieces continue through further decompose-merge rounds. verifies that the intake begins at and that applying the closing sentinel transition to its terminal stamp anchor yields , and requires . It emits the sentinel-bounded header
The following diagram collects all three intake paths and the subsequent closed-epoch QR routing flow. Every header is shared, while every step is run by an OSS. The two side branches show separate instances of the same descend, merge, and seal steps.
%%{init: {"flowchart": {"nodeSpacing": 10, "rankSpacing": 16, "padding": 3, "useMaxWidth": true}, "themeVariables": {"fontSize": "11px"}}}%%
flowchart TB
classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a;
classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a;
summary[""]:::s
QrSummaryIntake([""]):::o
QrStampIntakeSeed([""]):::o
QrEmptyIntakeSeed([""]):::o
root[""]:::s
QrIntakeSplit([""]):::o
sides[""]:::s
DescendNqr([""]):::o
DescendQr([""]):::o
child0[""]:::s
child1[""]:::s
peer0[""]:::s
peer1[""]:::s
Merge0([""]):::o
Merge1([""]):::o
merged0[""]:::s
merged1[""]:::s
Seal0([""]):::o
Seal1([""]):::o
bucket0[""]:::s
bucket1[""]:::s
summary --> QrSummaryIntake --> root
QrStampIntakeSeed --> root
QrEmptyIntakeSeed --> root
root --> QrIntakeSplit --> sides
sides --> DescendNqr --> child0
sides --> DescendQr --> child1
child0 --> Merge0
peer0 --> Merge0 --> merged0 -->|full epoch| Seal0 --> bucket0
child1 --> Merge1
peer1 --> Merge1 --> merged1 -->|full epoch| Seal1 --> bucket1
Evidence tree. The hash tree is quaternary, because one Poseidon permutation absorbs four children. The proof graph is binary, because a step reads at most two predecessor proofs. One node of the hash tree therefore takes two steps to build, and is the header in between: a node with two of its four children in place.
The tree uses two Poseidon digests, and they stay apart by length. A leaf digest absorbs a QR-bucket domain constant and the bucket header, nine field elements in all, because the commitment takes two. A node digest absorbs four children and nothing else. Absorption carries no length encoding, so the two digests never coincide, and a node never stands where a leaf belongs.
admits two sealed buckets. It reads two proofs and hashes each one's whole header into a leaf digest,
and emits the two digests as one half-node,
emits that same header from two subtrees in place of two buckets, and hashes nothing: it records that two roots sit side by side under one node. then reads two half-nodes and hashes their four roots, left pair first, into one node,
The pair header has two producers because a node's two children are either two buckets or two subtrees. The bottom level of the tree holds buckets, and every level above it holds subtrees.
A tree over buckets costs steps. That is the fewest possible, because every step emits one proof and proofs must reduce to one. pays for it in width: two leaf digests, six permutations, the most of any step here.
The tree is a perfect quaternary tree: every node holds four children, and every leaf sits at depth . A builder short of four repeats a child, and the repeat is the same proof in two slots, so it costs one step and not a subtree. A repeated child is a bucket the tree holds twice. No step forbids it, and no query notices. The smallest tree holds four leaves. A builder with one bucket serves that bucket's own proof instead.
Every step of the tree holds one invariant:
every leaf beneath is the digest of a sealed bucket whose own four network fields are the this header carries.
establishes it, because it reads two sealed bucket proofs and hashes their headers itself. Every other step preserves it. and require their two inputs to agree on the four fields and carry those fields to the output, so a leaf beneath the new root was a leaf beneath one of the inputs.
The invariant says nothing about which buckets are under the root. A sealed bucket already covers its whole epoch on its own, so a builder that leaves a bucket out loses only the ability to answer for that bucket. Once a bucket sits under a root, the builder keeps the tree proof and discards the bucket proof.
The diagram below builds two levels. Four buckets reach one node, and that node joins three sibling subtrees under the root.
flowchart TB classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a; classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a; bucket0[""]:::s bucket1[""]:::s bucket2[""]:::s bucket3[""]:::s leafpair0([""]):::o leafpair1([""]):::o pair0[""]:::s pair1[""]:::s fuse0([""]):::o tree0[""]:::s tree1[""]:::s tree2[""]:::s tree3[""]:::s pairfuse0([""]):::o pairfuse1([""]):::o pair2[""]:::s pair3[""]:::s fuse1([""]):::o root[""]:::s bucket0 --> leafpair0 bucket1 --> leafpair0 --> pair0 --> fuse0 bucket2 --> leafpair1 bucket3 --> leafpair1 --> pair1 --> fuse0 fuse0 --> tree0 --> pairfuse0 tree1 --> pairfuse0 --> pair2 --> fuse1 tree2 --> pairfuse1 tree3 --> pairfuse1 --> pair3 --> fuse1 fuse1 --> root
A query walks the tree back down, and the whole path is a private witness. reads one tree. Per level it witnesses that node's four children and two side bits, and it checks that the four children hash to the node it holds. The outer bit selects a half, and the inner bit selects within that half. The selected child is the next node. The step emits the subtree it reached, again as an . The invariant survives the walk, because every leaf of a subtree of a valid tree is a leaf of that tree.
A descent walks four levels. The number is fixed, because a circuit's witness has a fixed shape. The depth of the tree must therefore be a multiple of four. It is not one in general: the depth is , which answers to the bucket count and not to the descent. A tree three levels short leaves the last descent with nothing to read, because below a leaf there is no node.
supplies the missing levels. It reads one tree and emits a tree whose root is : one new node, with the old root in all four slots. The tree gains a level above its root and keeps the leaves it had, so the invariant holds. A descent through that level reaches the same child for any side bits, so the level is a no-op that a fixed-width descent can still walk.
The two paddings answer different constraints, and a tree can need either alone. Repeating a child fills a short level, below, so that every node holds four. Capping raises to a multiple of four, above the root, so that whole descents reach a leaf. Neither one builds a bigger tree. A repeat is one proof in two slots, and a cap is one node over four copies of one root. Five buckets need both: they pad to leaves, which gives , and two caps raise to for one descent. A tree over buckets needs no leaf padding at all, because the count is already a power of four, and still takes three caps to carry to for four descents. A tree at takes neither.
Capping is also the cheap way to reach a depth. One cap is one permutation, once, and every later query shares it. Reaching the same depth from below would cost a step for every leaf added, and depth is logarithmic in the leaf count: means leaves, and means .
The last descent emits a tree of depth zero, whose root is the leaf digest itself. reads that tree. It witnesses the profile and the tachygram-set commitment, checks them against the leaf digest, and emits the bucket itself,
This is the invariant at depth zero: with one leaf beneath the root, "every leaf is a sealed bucket of this network" is a statement about that one bucket, and the step reads it off. The leaf payload is the bucket header, so what comes out is a and every consumer of a sealed bucket accepts it. accordingly has two producers, and , and both carry the same claim. is the only step that emits a tree whose root is a leaf digest, so every open follows a descent.
Two properties make the replay safe. First, a descent that stops one level early reaches a node, and no leaf preimage opens a node digest, so an open cannot present a node as a bucket. Second, the digest binds to the contents. A real bucket's contents under another value's profile would pass a non-membership fold and open nonzero, and would prove exclusion for a tachygram that belongs to a different bucket.
The path and the profile stay separate concerns. A membership consumer checks directly: every authenticated bucket polynomial divides the full-epoch tachygram polynomial, so any root is a tachygram published in that epoch, and the profile plays no part. A non-membership consumer also derives the first discriminants from , checks that the QR classifications of encode , and then checks . Each non-residue profile bit also requires . This separation keeps every step bounded.
flowchart TB classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a; classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a; tree[""]:::s cap([""]):::o padded[""]:::s descend([""]):::o leafTree[""]:::s open([""]):::o bucket[""]:::s tree -->|"depth not a multiple"| cap --> padded --> descend tree -->|otherwise| descend descend --> leafTree --> open --> bucket
The diagram below summarizes the active anchor-span and closed-epoch QR headers. may end at the active tip; and its bucket openings are available only for complete past epochs.
Same-epoch Spend
We start with the simplest case: a user spends a note created in the same epoch (). No past exclusion is required, so the spend needs no OSS assistance.
%%{init: {"flowchart": {"nodeSpacing": 20, "rankSpacing": 15, "padding": 5}}}%%
flowchart TB
classDef u fill:#e8eeff,stroke:#4169E1,color:#1a1a1a;
classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a;
classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a;
notesecret[""]:::u
spendable[""]:::u
spendheader[""]:::u
spendstamp[""]:::u
outputstamp[""]:::u
stamp[""]:::u
stampprime[""]:::u
anc[""]:::s
SpendableInit([""]):::u
SpendBind([""]):::u
SpendStamp([""]):::u
OutputSeed([""]):::u
StampMerge([""]):::u
StampLift([""]):::u
SpendableInit --> spendable --> SpendBind --> spendheader --> SpendStamp --> spendstamp
notesecret --> SpendBind
OutputSeed --> outputstamp
spendstamp --> StampMerge
outputstamp --> StampMerge
StampMerge --> stamp
stamp --> StampLift
anc --> StampLift
StampLift --> stampprime
Each completed spend or output branch emits a header whose commits to the single root and whose commits to that action's two tachygrams. multiplies both input multiset polynomials and emits their two commitments.
always means, relative to its carried anchor lineage, that its is included and every required past nullifier is excluded before its epoch. The lineage does not contain a note opening. compares the of the lineage with the on . takes the creation stamp data as private witness, proves occurs among that stamp's tachygrams and is a root of its accumulator, then computes the stamp's resulting anchor from that same accumulator. The later connects this seed-rooted lineage through evidence to a target checked against canonical history. A same-epoch spend requires no past exclusion because the note did not exist before that stamp, so this base case satisfies the same conditional invariant. For , the input stamp anchor must be or a root of its ,
and the output stamp anchor equals . records which anchors are in the span and not their order. The output anchor is therefore always . The span contains only authenticated stamp transitions and admits no sentinel transition, so the lift remains within the same spending epoch. Sufficient lift is needed to obfuscate the inclusion block for spend unlinkability. requires the target anchor and carried spending epoch to remain aligned. Consensus later checks that the target anchor occurs in canonical history in that epoch.
Users may cache the immediately after note inclusion and send it to a hardware wallet for spend-time signing in parallel with , and the later steps.
To map back to the monolithic action statement, our steps cover these sub-statements respectively:
- : all of output action statement.
- : conditional creation-stamp commitment membership; past nullifier exclusion is unnecessary in the inclusion epoch.
- : spend-time nullifier integrity, integrity of and , and the value range of . The step compares the on with the of the lineage. It derives and from the on , and constrains the two nullifiers to be nonzero. It commits the value of the note on as . It puts the target , and on .
- : integrity of , and the spend authority . The step checks that the witnessed derive the on .
- : ensures action and tachygram accumulator integrity at the bundle level.
- : proves same-epoch ancestry from the stamp's old anchor to its target .
The division into and is a consequence of the circuit budget. It is not a division of the statement. reads , and reads what puts on . If one circuit that contains both sets of conditions is not larger than the shared rank of the proof system, the two steps become one step. An implementation can divide into a bind step and a stamp step for the same reason.
Past-epoch Spend
When a wallet comes back online, it may rebuild or refresh spendability proofs for all its unspent notes. Once a note's inclusion epoch is in the past, spending it requires proving exclusion across every intervening epoch. The inclusion branch and exclusion branch remain independent. Each first replays its selected bucket out of the epoch's . A membership opening against the resulting proves that occurred in epoch . Separately, the user-owned consumes only the selected by 's profile. It privately witnesses the note opening and , then enforces
It copies and both sentinels from the opening, derives the nullifier's complete QR profile from , matches , and proves . Thus the output and excluded nullifier come from the same note, while the QR query proves absence from the whole epoch. The step emits
This direct singleton path replaces both the ranged proof and for the inclusion epoch. Those general steps remain useful for delegated, extensible later ranges.
consumes the singleton and the independent bucket opening. It requires the same epoch and sentinel endpoints, carries from the verified header, and proves without deriving or checking 's profile. It does not reopen the note, derive or test a nullifier, or consume anchor-span evidence. It emits the fully established
%%{init: {"flowchart": {"nodeSpacing": 20, "rankSpacing": 25, "padding": 5}}}%%
flowchart TB
classDef u fill:#e8eeff,stroke:#4169E1,color:#1a1a1a;
classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a;
vfyincl[""]:::u
inclTree[""]:::s
inclNfBucket[""]:::s
cmBucket[""]:::s
spendable[""]:::u
NoteUnspentInit([""]):::u
SpendableReinit([""]):::u
OpenInclNf([""]):::u
OpenCm([""]):::u
inclTree --> OpenInclNf --> inclNfBucket
inclTree --> OpenCm --> cmBucket
inclNfBucket --> NoteUnspentInit --> vfyincl
vfyincl --> SpendableReinit --> spendable
cmBucket --> SpendableReinit
Later exclusion ranges extend that reinitialized :
%%{init: {"flowchart": {"nodeSpacing": 20, "rankSpacing": 25, "padding": 5}}}%%
flowchart TB
classDef u fill:#e8eeff,stroke:#4169E1,color:#1a1a1a;
classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a;
classDef s fill:#e7f3ea,stroke:#228B22,color:#1a1a1a;
spendable[""]:::u
notesecret[""]:::u
nfwindowA[""]:::u
nfwindowB[""]:::u
nf[""]:::u
unspent[""]:::o
unspentprime[""]:::o
laterTree[""]:::s
laterNfBucket[""]:::s
vfylater[""]:::u
spendableprime[""]:::u
spendheader[""]:::u
spendstamp[""]:::u
UnspentSeed([""]):::o
UnspentLift([""]):::o
NoteSeed([""]):::u
NullifierDeriveA([""]):::u
NullifierDeriveB([""]):::u
NullifierFuse([""]):::u
UnspentBind([""]):::u
OpenLaterNf([""]):::o
SpendableLift([""]):::u
SpendBind([""]):::u
SpendStamp([""]):::u
NoteSeed --> notesecret
notesecret --> NullifierDeriveA --> nfwindowA --> NullifierFuse
notesecret --> NullifierDeriveB --> nfwindowB --> NullifierFuse
NullifierFuse --> nf
UnspentSeed --> unspent --> UnspentLift --> unspentprime --> UnspentBind --> vfylater
laterTree --> OpenLaterNf --> laterNfBucket --> UnspentLift
nf --> UnspentBind
spendable --> SpendableLift --> spendableprime
vfylater --> SpendableLift
spendableprime --> SpendBind --> spendheader --> SpendStamp --> spendstamp
notesecret --> SpendBind
witnesses the value and the trapdoors of one note with . It derives . It computes and . It is the only step that binds a note to its . Each subsequent step reads note fields that this step bound. It emits the reusable wallet-local header
Each consumes that header and derives one bounded window. Let be the circuit's fixed number of sponge groups and . The step witnesses a group-aligned start , sets , evaluates the batched nullifier construction once per group, and commits to
The commitment is fixed before a fresh challenge , after which one opening is checked against the same product evaluated directly from the in-circuit batched outputs. The step emits
is an implementation parameter rather than part of the nullifier construction; for example, covers sixteen epochs when .
combines two windows carrying the same . For ranges and , it checks the shared endpoint and proves
after all three commitments are fixed. It emits their union over . Repeated fuses therefore build any consecutive locally derived range from bounded batched steps.
Later past exclusion is built independently. derives bounded local windows from the note and combines them into a ranged nullifier commitment. The wallet may give the OSS the relevant opaque pairs , but no note-opening data. An header has the form
where contains one indexed factor for every epoch in . creates the empty range with . This seed cannot be bound into a spendable proof until at least one epoch is appended. Each :
- requires its current right sentinel to equal the input 's left sentinel;
- requires that bucket to cover the next epoch ;
- takes the opaque as witness, derives its complete QR profile from , matches , and proves in the same query step; and
- appends the indexed factor , fixing the old and new commitments before the oracle challenge and enforcing then sets and advances the right sentinel to .
These equalities force consecutive sentinel-to-sentinel advancement: an OSS cannot skip, repeat, or reorder an epoch. The resulting proof covers exactly , bracketed by .
then makes this note-independent proof note-specific. It requires and , and checks that the OSS commitment is an indexed subset of the wallet's locally derived commitment using the quotient relation. It carries the local into while retaining and their sentinels. Because each commitment factor binds both its epoch and value, this proves that every nullifier tested by the OSS is the actual nullifier derived for that note and epoch.
The inclusion-epoch singleton bypasses these general steps through and is consumed by . Every later instead feeds , which requires both children to carry the same and enforces the ordinary forward seam
For the first lift, , so later exclusion begins exactly where the reinitialized spendable ends. then derives for that epoch from the on , and does the same value checks as the same-epoch case. does the same authority checks, and emits . The diagram does not show output construction, stamp merge, or the final in-epoch stamp lift, because these steps do not change.
Delegation Extension and Multiple OSSs
The singleton inclusion-epoch is built and consumed separately at reinitialization. Beyond it, both branches remain extendable. The wallet derives another local window and combines it with ; an OSS extends a range beginning no earlier than by applying and to the next full-epoch tree. That later range need not fix its final endpoint in advance.
A wallet may also delegate different ranges to different OSSs. To combine two adjacent results, takes
It requires and equality between 's ending sentinel and 's starting sentinel. These checks establish order and exclude gaps or overlaps. It then emits
setting and proving the product identity at a random point after all three commitments are fixed. Although polynomial multiplication is commutative, the endpoint checks make the merged historical range ordered. Repeated merges can combine any number of adjacent post-bootstrap OSS results before the wallet binds them to its note. They do not absorb the separate inclusion-epoch singleton.
%%{init: {"flowchart": {"nodeSpacing": 20, "rankSpacing": 20, "padding": 5}}}%%
flowchart TB
classDef u fill:#e8eeff,stroke:#4169E1,color:#1a1a1a;
classDef o fill:#fde8ea,stroke:#DC143C,color:#1a1a1a;
left[""]:::o
right[""]:::o
merged[""]:::o
nf[""]:::u
verified[""]:::u
UnspentMerge([""]):::u
UnspentBind([""]):::u
left --> UnspentMerge
right --> UnspentMerge
UnspentMerge --> merged
merged --> UnspentBind
nf --> UnspentBind
UnspentBind --> verified
performs the same ranged-commitment indexed-subset check on the merged polynomial as on a single OSS result. The OSSs learn only the opaque nullifiers and ranges assigned to them; they do not learn , the note opening, another OSS's proof, or the eventual spend anchor. Request timing and range-selection policy remain wallet-level privacy concerns.
Aggregation
first combines the spend and output stamps within one transaction. Network aggregation applies the same operation one level higher, merging finished stamps from independently proven transactions.
Constituent stamps may carry different anchors in the same epoch. Before merging, the aggregator uses and shared evidence to move them to a common later anchor. The lift must remain within one epoch: crossing a sentinel would change the active nullifier window without proving the intervening exclusion. Once aligned, checks equal anchors, unions the action and tachygram multisets, proves each output accumulator is the product of its input accumulators, and folds the child proofs.
The resulting aggregate stamp has the same shape as a standalone stamp and can
be merged again. Balance and authorization remain attached to each constituent
transaction; aggregation neither creates nor removes an action. At block
construction, covered transactions discard their redundant stamps and refer to
the aggregate by wtxid, as detailed in the aggregation chapter.
Payment Protocol
As established in the motivation, the payment protocol owns secure note transmission. That entails a full payment address carrying the key material for incoming-note detection, plus infrastructure for fast memo retrieval and spending-witness construction. The leading Tachyon-compatible payment protocol is being developed by ValarGroup; we sketch their architecture and design rationale here.
flowchart TB
subgraph _Payment Protocol_
addr["**Address Creation**
Payment link"]
memo["**Memo Encryption**"]
discovery["**Note Discovery**
Incoming note detection + decryption"]
check["**Spendability Check**
Note spendability + Faerie Gold Prevention"]
wit["**Witness Construction**
Cached spendability, delegated exclusion, local lift, stamp assembly"]
end
subgraph _Shielded Protocol_
transfer["**Shielded Transfer**"]
end
addr -- "`pk_d`" --> transfer
memo -- "`(tag, memo)`" --> transfer
transfer --> discovery --> check --> wit
The infamous13 pain point of the existing note-transmission mechanism is shielded sync by trial decryption of memos distributed in-band. Roman's article gives a detailed motivation and problem statement; briefly, the linear scan it requires leaks metadata and grows infeasible for bandwidth-limited mobile wallets as Zcash throughput scales.
One promising remedy is Private Information Retrieval (PIR), which lets a
client query a database without the server learning anything about the query
(slides below by Corrigan-Gibbs).
With PIR, the sender publishes the encrypted memo with a short tag attached, and
the resulting (tag, encrypted_memo) pairs are stored in a PIR database for
instant, leak-free retrieval.
PIR Databases
Modern single-server PIR trades preprocessing for a faster online
response and lower per-query communication. Since many of the costs we care about
scale as , we keep every database bounded, capping its expected
size to hold overhead in check. For our scope, the payment protocol maintains at
least the following PIR databases (entries written as key => value):
- Epoched memo DB: a per-epoch
tag => memostore, synced from the DA blobs on chain. - First-contact memo DB: a
tag => KEM.c || memostore for the handshake transactions, synced from chain. It is also chunked, but over a much longer horizon than per-epoch, given how rare first-contact transactions are. - Epoched tachygram DB: a per-epoch,
hash-table-bucketed
H(tg)[:4] => tg (32 bytes) || blk_height (u32_le) || anchor_height (u32_le) || action_count (u8)store, recording each tachygram together with its stamp's block and post-stamp anchor, synced from stamps on chain. - PKI DB: an off-chain address registry
H(addr) => addr, returning a full address (its ML-KEM encapsulation key and payment key) from a short digest.
Full Payment Address
The decoupling split the owner-binding payment key from the note-transmission key, leaving the latter for the payment protocol to define. A Tachyon payment address is
with two components, both minted fresh per sender:
- Payment key : the owner field every note commits to (defined earlier), committing to a freshly indexed pair so that payment keys from the same wallet are unlinkable. The decoupling lets us refresh it independently of the transmission key.
- Transmission key : the encapsulation key of a freshly sampled ML-KEM key pair.
Why not an Orchard-style transmission key. Orchard derives a whole family of diversified transmission keys from diversified bases , all sharing one incoming viewing key . This is convenient, since minting as many unlinkable addresses as needed never increases the number of viewing keys note discovery must scan. But it is not quantum-private: a sender who later gains access to a quantum computer could retroactively recover by breaking discrete log, and a single exposes every incoming note of the recipient, past and future. ML-KEM sidesteps this, as its encapsulation is lattice-based and post-quantum secure, and the symmetric encryption under the KEM-derived shared secret is already quantum-safe today.
No persistent viewing key? Tags to the rescue. An unfortunate byproduct of switching to ML-KEM is that the "diversified base, same " algebraic relation no longer holds14: instead, the decapsulation key is freshly sampled for each new address. Naively, this multiplies the cost of shielded sync by the number of in the wallet, since each must be trialed during the linear scan. PIR shortcuts that trial decryption by attaching to every encrypted memo a retrieval handle, the , which the recipient queries the memo database with directly. The incoming viewing key in Tachyon is therefore effectively:
As the figure below shows, we sample the KEM key pair deterministically. Although
ML-KEM's public KeyGen
is randomized, wallets invoke the derandomized KeyGen_Internal(d, z) with
derived from the HD-wallet master spending key, so the key pair is
reproducible from the seed. The sequence of tags is bound to the shared secret of
a channel, predictable to the two parties but opaque to everyone else. We say more
about tags in the next section.
Two freshness schedules: per-sender and per-note. Address diversification historically existed to stop colluding senders from recognizing that two addresses belong to the same recipient, which calls for a per-sender schedule for . Tags need a tighter one: since a appears directly on chain, any reuse would link the two transactions carrying it to the same recipient, so a fresh tag must be generated for every output note.
Payment address PKI. An ML-KEM encapsulation key is a few kilobytes, too large for a QR code or payment URI. We therefore keep a PIR database that maps a short digest to the full address, , queried on demand. Two concerns remain open: the registry grows without bound, and rerunning PIR preprocessing on every new entry is expensive. In practice we will likely split the registry into size-capped chunks, conceding a few bits of privacy so that a preprocessing rerun touches only the last, not-yet-full chunk.
Note Discovery
In one breath: first contact hands the sender a fresh address, the opening transaction completes the handshake, a stateful wallet then fast-syncs through the PIR databases, and an AEAD-encrypted wallet state posted on chain backs full recovery from the mnemonic alone.
Note discovery breaks into three interrelated procedures: handshake, stateful sync, and recovery. In the handshake, a tentative sender makes first contact and obtains a distinct KEM encapsulation key from the recipient, establishing a shared secret that will encrypt every future note sent to that recipient. The tags attached to those encrypted memos, the recipient's advice for fast PIR retrieval, are derived deterministically from and known only to the two channel parties. Once the recipient comes online and decapsulates , its wallet enters stateful sync, updating its local state (handshake material, the number of notes seen on the channel, and each note's spendability) as it syncs blocks with help from the PIR databases. Finally there is the rare case of recovery from mnemonic, where a wallet rebuilds its state from scratch by scanning the chain alone, ideally accelerated by PIR servers when available.
We examine each procedure more closely and explore possible design choices.
Everything starts with the recipient sharing a fresh address: the sender uses its payment key to construct the output note and its transmission key for secure in-band secret distribution. Disseminating is trivial when the two already share a secure channel (Signal, WhatsApp, and the like), and a recipient may simply publicize contact info for anyone to reach. The first-contact problem arises when the recipient would rather not broadcast a private contact (opening an OOB channel with every sender) or is not always online to answer handshake requests. The simplest answer is a dynamic URI that serves a fresh from a precomputed sequence on each access, in practice a self-hosted page handing out a new HD-derived on every click15.
Once the sender has , it runs KEM.Encaps(ek) to obtain the shared secret
and a KEM ciphertext 16, and from then on encrypts every note to the
recipient symmetrically under . The ciphertext is sizable, 768 bytes to 1.5
KB in ML-KEM depending on security level, far more than the 32-byte
that plays the analogous role in Orchard. This overhead is the
primary reason we maximize shared-secret reuse. Three subtleties follow:
- Only first-contact transactions carry the KEM ciphertext ; follow-ups omit it. The resulting distinction is harmless: in the security reduction the simulator emits transactions with and without the field at random, so ledger indistinguishability still holds.
- Costly as first contact is, parties with an existing secure channel should still not send a randomly sampled shared secret directly: that has no forward secrecy and leaks all past and future incoming notes the moment the channel is breached. Nor should they send the encrypted memo over the OOB channel, unless the recipient will spend it soon, since a memo with no on-chain backing complicates wallet recovery and can permanently strand unspent coins.
- For two payments to the same recipient to be mutually unlinkable, the sender must open a new channel; by design, all notes on one channel trace back to the same first-contact , and hence to the same sender.
Beyond the shared secret that produces the encrypted memo, the other half of the memo-encryption task is attaching a short tag for fast retrieval. As noted above, tags must be distinct per note. Ours are all derivable from the shared secret, except for the first-contact tag:
The whole sequence is predictable to the channel parties but private to everyone else. The first-contact tag cannot depend on : the recipient does not yet hold at first contact, and binding the tag to would force a trial decapsulation of every transaction with a non-empty KEM-ciphertext field. Setting instead lets the recipient locate the first-contact transaction and its memo with a single PIR query. The predictable sequence keeps wallet tracking state minimal, eases mnemonic recovery, and preserves unlinkability.
Alternative tag designs that don't work.
First, who picks the tag values?
- Sender-picked: too much bookkeeping for the recipient wallet, and it needs integration (or manual relaying) between the messaging app and the Zcash wallet.
- Receiver-picked, random: the recipient must be online to issue new tags before more notes can be sent, and wallet state grows linearly in the number of tags.
- Receiver-picked, sequentially derivable: minimal wallet state, just the
first-contact seed and a running
num_tagscounter.
Second, what does the sequential derivation look like?
- : if leaks, anyone can derive the whole sequence, breaking unlinkability.
- : works, but recovering the -th tag means walking the entire hash-chain prefix.
- : random access, but the first-contact tag is unknown to the recipient, forcing a trial decapsulation for .
- : checks every box.
To detect notes, the recipient first settles any new handshakes by querying the
first-contact memo DB at , for each it handed out in an
address. On a hit it runs KEM.Decaps(dk, c) to recover the shared
secret and decrypt the memo. From there, detecting that sender's later notes
is cheap: the subsequent tags are all computable, and querying them against the
epoched memo DB is near-instant, at most one PIR query per unsynced
epoch to collect every tagged memo since the last sync. The minimal state a
wallet keeps locally for a fast next sync is:
where is the HD derivation index of the channel's , its first-contact block, and the number of notes detected on it so far; each note additionally records its plaintext opening, its mint block, and the block where the last sync stopped. In normal operation a wallet caches far more, such as the of each channel, to avoid recomputation.
Last and perhaps most important, a wallet must be recoverable from the mnemonic alone, even if more slowly than a stateful resync. The idea is to periodically encrypt the minimal state under authenticated encryption and post the ciphertext on chain, reusing the optional opaque data field we add to the transaction format. A wallet starting from scratch reverse-scans from the chain tip, trial-decrypting these wallet-state ciphertexts; on the first hit it recovers its state and returns to fast, PIR-accelerated syncing.
Note Spendability
Two questions gate whether a received note is worth keeping: is it actually spendable, and is it free of Faerie-gold collisions.
Spendability and witness data. A note is spendable only if its commitment was added to the pool and its nullifier has stayed absent since. Building and maintaining the spendability proof means knowing, for any tachygram, whether and where it appears on chain, exactly what the epoched tachygram DB answers privately. A wallet PIR-queries it to locate its note's commitment (for inclusion) and to confirm its per-epoch nullifiers are absent (for exclusion), without revealing which tachygram it is asking about.
Faerie-gold prevention. Recall the shielded protocol pushes Faerie-gold detection to the wallet: a cheap nullifier test lets the recipient reject colliding notes. On receiving a note the wallet computes its nullifier at a fixed reference epoch and checks it against the notes it already holds. A malicious sender has two avenues, both blocked:
- Reused . Two notes sent to one recipient with the same share every ; recomputing at the reference epoch exposes the collision, and the wallet keeps only one (only one was ever spendable).
- Targeted collision. Choosing a whose nullifier collides with that of an honestly created note is a second-preimage on the nullifier derivation, infeasible for a hash/PRF-based .
Witness Construction
Witness construction is where the payment protocol's databases feed the shielded protocol's transaction life cycle. Having discovered and validated its notes, a wallet:
- uses creation-stamp data from the epoched tachygram DB to build and
cache an active-epoch
NoteSpendableproof as soon as the creation block finalizes; - independently extends one local header and delegates opaque nullifiers and sentinel-bounded epoch ranges to one or more OSSs;
- after the inclusion epoch closes, directly binds its derived to one through , then joins that singleton exclusion with the separate bucket opening at ; later lifts consume ranges beginning at ; and
- folds the updated spends and spend-time outputs into a fresh stamp, advances it with active evidence if needed, then performs authorization.
A same-epoch spend skips steps 2 and 3. If the wallet crosses an epoch without OSS help, it uses the same unspent steps locally rather than a different statement.
In short, the shielded protocol defines what the witness must prove, and the payment protocol supplies the data-availability and private-retrieval layer that makes assembling it practical at scale.
Quantum Safety
Tachyon is designed to be quantum-private today and quantum-sound after a future upgrade. These are different bars. Privacy must hold retroactively, since an adversary can harvest today's chain and decrypt once it has a quantum computer, so anything protecting privacy must already be post-quantum. Soundness (no forgery, no theft) need only hold at spend time, so it can wait for a coordinated network upgrade before quantum computers arrive.
Quantum-private today. Everything Tachyon publishes is either a hiding commitment or encrypted under post-quantum symmetric/KEM crypto, so a future quantum computer learns nothing about old transactions:
- the owner field and the note commitment are hash/symmetric (Poseidon) commitments, hiding even against a quantum computer;
- nullifiers are PRF/hash outputs, pseudorandom against a quantum computer, so spend unlinkability survives;
- memos travel under ML-KEM, post-quantum from day one.
The only discrete-log values on chain are the per-action value commitment , the randomized validating key ( for spends, for outputs), and the binding key. The Pedersen is perfectly hiding, so even a quantum computer learns nothing about . Re-randomization makes the other two quantum-private as well: a quantum computer can take the discrete log of to recover , but is a fresh secret mask, so the result is unlinkable to or to any other spend. Privacy and unlinkability therefore already hold against a quantum adversary.
Not yet quantum-sound. What a quantum computer can do is forge. Recovering from lets it authorize a spend, and breaking the discrete-log-based PCD proof system lets it fabricate a spend proof for a note it does not own. Together that is theft, not a privacy break, which is why soundness can wait for a coordinated upgrade. Two pieces must then go post-quantum: the re-randomizable signature (Schnorr re-randomization is intrinsically discrete-log, below) and the proof system itself (below). A third classic obstacle, discrete-log address diversification, never arises here, as the payment protocol already replaced with a fresh per-sender ML-KEM key (above).
PQ Signature Re-randomization
Re-randomization buys unlinkability by publishing a fresh-looking but valid key/signature each spend. With no post-quantum re-randomizable signature, we recover the same effect from zero knowledge. Instead of broadcasting a signature to be checked against , the spender proves knowledge of a valid post-quantum signature in zero knowledge. The proof reveals nothing about the signature, so two spends by the same key stay unlinkable, exactly what re-randomization provided. Proving signature knowledge in-circuit puts a premium on a circuit-friendly scheme, one cheap to verify inside a proof; SNARK-friendly post-quantum signatures such as CAPSS, built on arithmetization-oriented permutations, are designed for exactly this. And since authorization is now a proof rather than a separate signature, it folds into the transaction's PCD proof, unifying authorization and validity into one post-quantum artifact. The randomized key then drops out of the action description entirely. One detail moves with it: today 's randomizer is what binds the note to its action, so with gone that binding has to be re-established as a constraint inside the proof statement.
PQ PCD Proofs
The remaining gap is the proof system itself. Tachyon's PCD/folding (Ragu) commits with discrete-log-based polynomial commitments, which a quantum computer breaks, undermining the proof soundness that the theft vector above relies on. A full quantum upgrade swaps this for a lattice-based folding scheme resting on SIS/Module-LWE rather than discrete log. The folding structure that makes Tachyon's spendability proofs incremental is preserved; only the underlying commitment and its hardness assumption change. Concrete lattice folding constructions are an active research area, and the details remain TBD.
-
One way to convince yourself that such separation works is to reproduce all of Orchard functionalities in this decoupled framework. We leave it as a homework exercise for the readers. As a hint, your diversified address now may look like where is the diversified payment key, is the diversified transmission key. Your can now be directly derived from master spending key , rather than meandering through layers of indirect derivation (similarly for outgoing viewing key). ↩
-
Tachyon sticks with , a Schnorr-based signature over the Palla curve supporting re-randomization, as in Orchard. See our approach when fully migrating to post-quantum world. ↩
-
Pseudorandom values like and should be deterministically derived from the wallet master key via secure KDF to avoid poor operational entropy. The derivation should be standardized. ↩
-
Sapling and Orchard uses variants of the vector Pedersen commitment, which relies on DLog hardness. We choose Sponge-based Hash constructed from algebraic permutation Poseidon. ↩
-
Ragu PCD proof, through reduction of knowledge, reduces down to a list of evaluation claims of multiple opening points on multiple polynomials. These claims are then folded into a single running aggregated claim. Ragu expose the capability to fuse online/application-time polynomial queries into the proof system directly, without encoding the evaluation through the constraint system which can be expensive. This is spiritually similar to lookup argument enforced as part of the PIOP relation rather than through the circuit. ↩ ↩2 ↩3
-
In crypto literature, a universal accumulator is dynamic (supports insertion and removal) and supports both membership and non-membership proofs. ↩
-
Without the dummy, a spend would carry two tachygrams and an output one. A bundle already reveals its action count (one authorization signature per action), so the tachygram count would give away the split: spends and outputs. Padding fixes identically, hiding the split. The leak without padding is only arity: tachygrams ride in the stamp as one flat multiset, so which action is a spend is never visible either way. ↩
-
txidandSIGHASHare domain-separated with different personalization strings, but they commit to the same effecting data.SIGHASHfurther incorporates a SIGHASH type byte, thenConsensusBranchIdnetwork-version identifier (e.g., NU5, NU6), and other consensus-level metadata. ↩ -
Estimate from zka.lc: MSM on over Pallas using Zcash's
pasta_curvesimplementation on an AWS EC2 m5.2xlarge instance. ↩ -
Writing for the quadratic character, distinct translates satisfy , while standard character-sum bounds place each fixed -bit profile within of field elements, apart from the zero convention. Since random translates each fixed input uniformly, expected bucket loads are correspondingly balanced; for in the protocol field, the relative deviation is negligible. ↩
-
Every published tachygram is constrained nonzero. Poseidon outputs hit zero only with negligible probability, but the explicit guard reserves zero as a degenerate value: it keeps every accumulator factor non-trivial, and closes the zero-valued edge cases that tend to produce identity points in committed form, which in-circuit point representations cannot hold (a bug class already paid for once in the implementation). ↩ ↩2
-
A builder that wants only the bucket for one profile prefix can descend along that path alone, constraining only the siblings it meets. Such a chain does admit children that retain opposite-class roots, and the resulting bucket is still sound: an extra is a genuine tachygram of the span whose profile differs from the bucket's in a position the query checks, so it can never equal a matching candidate and only makes a non-membership opening stricter. The extras still consume the bucket's degree budget, and every sibling branch is forfeited, so a builder serving arbitrary queries covers all profiles and splits exactly. ↩
-
Due to the linear cost of the shielded sync and an unprotective gas price, Zcash NU5 experienced a DOS attack, referred to as the sandblasting attack, preventing wallets from syncing fast enough to access their funds. ↩
-
The diversified-base trick yields two key pairs and that are unlinkable yet share the same . Such a relation is easy in the discrete-log world but has no known secure analogue in the LWE world. ↩
-
A fancier option is an introduction service that shares a channel with the recipient Bob, who hands it a list of fresh addresses in advance, each authenticated by a signature under a well-known public key of his. Alice then reaches the always-online service, which accepts all incoming requests. Two subtleties: (1) the service must vouch for the authenticity of a relayed , via a signature or a ZKP; (2) it must defend against DOS, e.g. rate-limiting through an upfront micropayment. ↩
-
The KEM ciphertext is distinct from the encrypted memo, which is a ciphertext under the shared secret. is analogous to the ephemeral in Orchard's DH setting: the material a recipient needs to decapsulate the shared secret. ↩
Nullifier Analysis
TL;DR: our conclusion recommends Attempt 3 which directly use Poseidon permutation to derive nullifers per squeeze; thus nullifier derivations per PCD step.
Background
Excerpt from the Tachyon deep dive below.
A Tachyon note is:
where is the payment key, is the value of the note, is pseudo-random note identity that binds to the note nullifier value as an input to its derivation, and is a random commitment trapdoor.
The ideal functionality for an epoched nullifier is a deterministic function:
whose outputs are indistinguishable from random bytes. Such an binds to both the spending authority (via ) and the underlying note (via its per-note trapdoor ), while remaining unlinkable across epochs to anyone without .
We proposed a GGM-based nullifier whose derivation requires walking a tree where descending one level involves a Poseidon hash. The construction details are irrelevant thus skipped here. The main takeaway is: a single nullifier derivation (full tree walk) already saturates the circuit capacity for a PCD step!
GGM Cost: Calculation Details
The GGM tree size is determined by how large of the epoch space do we want to support. A depth- tree implies the largest epoch value being . Assuming 1 day/epoch, this translates to 45 years in the future which is reasonable. A full root-to-leaf walk of such tree requires Poseidon hashes.
Step circuit size (max_mul_gates) is . Since our constraint
system allows linear constraints, this budget is overly abundant and we only
focus on multiplication constraints. Step capacity for Poseidon is (see
here) as per-permutation gate
cost is .
With a mixed-arity optimization of the tree, where the arity is higher towards the root and binary towards the leaf, we can cut down the depth to 7, thus fit a full derivation in a single step.
Ideally, we want to fit more (at least two) nullifier derivations in a single
step. For example, the NfDerive step derives both
and for the spending epoch in a single step.
Therefore, the challenge is to find alternative nullifier constructions with
lower circuit complexity.
The high-level idea is to construct a degree- polynomial such that:
- is keyed by so that only -holder (namely note owners) knows the full and its derivation is bound to the specific note identity .
- Highly efficient to evaluate : only work.
- epoch domain size
- Given any set of evaluation points and their evaluations
, any evaluation outside the set is
indistinguishable from random.
- strictly stronger requirement than "cannot compute ": unpredictability is insufficient; semantic security is necessary for spend unlinkability.
- relaxing statistical indistinguishability to computational expands the design space.
This alternative is a promising direction because proving derivation is now an evaluation claim, which can be either proven directly in circuit (only field ops) or piggyback on the online polynomial oracle exposes by the Ragu proof system (low circuit cost).
Threat Model
We discuss security from the perspective of recipients whom we address to as "users". Senders and syncing services (OSS) are untrusted. Here are the assumptions/setup:
- : picked by the sender.
- : privately known to the user.
- OSS can derive nullifiers for a finite range of delegated epochs. They cannot locate/link the note commitment or future nullifiers outside the range.
- malicious users try to double-spend by publishing for the same note in any epoch that both pass the derivation integrity check.
Attempt 1: Statistically Indistinguishable
Attempt 1.1: User-sampled
- User randomly samples a of bounded degree, commits to it and sends
to the sender.
- to support epoch range , take which is years assuming a 1 day/epoch pace
- Sender prepares the Output note by setting .
Effectively, the commits to the nullifier polynomial.
- user wallet rejects incoming note with unknown/wrong/repeated
- OSS directly receives a single PCD proof attesting for the delegated range .
Pros:
- The circuit cost is minimum: load the note opening and as secret witness, enforce in circuit, then append a PCS eval claim of form to the polynomial oracle.
- Proving multiple is practically free since querying multiple points on
an already committed polynomial in our polynomial oracle incurs negligible cost.
- Note that we don't need to witness the actual or evaluate it in circuit thanks to the oracle, thus no special structure required for .
- Statistical indistinguishable due to random sampling and the assumption where is the epoch domain. In practice, coefficients are PRF-derived from some master seed.
Cons:
- UX nightmare: every new note requires user involvement (freshly samples then sends OOB).
- Fully proven by the user: proving the derivations of all nullifiers is the responsibility of the user.
Among the two disadvantages, the interactive UX is the hairy one. Naturally, a user can preload a sequence of future to the sender out-of-band. However, this would increase the state management overhead since the wallet needs to track all previously issued but yet unused to reject incoming notes of unknown/repeated .
Meanwhile, user-proved derivation is arguably inevitable (for all our attempts). The OSS cannot learn the full since otherwise all future nullifiers are computable and spend unlinkability is violated. Unlike GGM, the user cannot prove a partial derivation and defer to OSS to complete the rest. 1 Instead, the user has to prove the full derivation because we cannot come up with scheme that enables OSS to finish a partial evaluation without leaking the description.
In practice, proving nullifiers of the delegated range can happen before or after the OSS work. The concrete design is outside the scope of this analysis. Regardless, the OSS blindly trust the list of nullifiers supplied by the user and accumulate them as he syncs spendability proofs. These accumulated nullifiers would be proven correct when OSS hands back the spendability proof to the user who can fuse it with proof of nullifier derivations.
Attempt 1b: Constrained Sampling
An attempting reaction to avoid the user/recipient interaction is to switch to sender-sampled random polynomials. However, there's a conflict between privacy and -binding. If the full if sampled by the sender, we lose spend unlinkability since the sender can derive all nullifiers. If the sender only contributes a partial polynomial and leaves some degree of freedom to the recipient, then we cannot bind via at note creation time.
To circumvent this issue, we can let sender pick arbitrary , but binds it at the user/recipient side who must enforce coefficient sampling in-circuit:
Since coefficients binds to , it transitively binds to . The problem with this approach is its high circuit cost: when instantiating with Poseidon-based sponge construction for variable-length output, to witness the full in-circuit requires Poseidon permutation, a higher cost than the original GGM construction.
Attempt 2: Product of Sparse Polynomials
To eliminate recipient interaction during note creations, we avoid user-sampling of coefficients. Instead, we explore a structured where the description (i.e. coefficients) is fully determined by , thus its evaluation is enforced through proofs that and . For circuit efficiency, we need to find a with sublinear evaluation logic which implies structured polynomials with concise algebraic descriptions.
Here, "concise" means fewer than independent coefficients, not just a short generator program (that could expand a random seed into sufficient entropy). Particularly, we relax our indistinguishability from statistical to computational in pursuit of circuit efficiency. We argue that this relaxation is inevitable when going beyond attempt 1.
We explore the first approach here and the second approach in the remaining sections.
- product of (low-degree) sparse polynomials
- composition of (low-degree) round functions where each round includes linear confusion and non-linear diffusion (via algebraic s-box)
Unlike attempt 1 whose is randomly sampled with -bit entropy, thus remains statistically hiding so long as we reveal evaluations. Our structured candidates, with concise descriptions and less entropy, must withstand various algebraic attacks.2 We start with the GCD attack to demonstrate the necessity of polynomial degree much higher than the epoch domain size: even if we only reveal evaluation points.
GCD Attack. The GCD attack recovers the key by computing the GCD of two polynomials. We view as a bivariate polynomial . Given only two evaluations, we can establish:
The complexity of GCD over two polynomial of degree is . The quasilinear cost dictates that -bit security requires , thus .
Attempt 2a
An appealing candidate is:
This family of polynomial is attractive because it only requires coefficients in description while the expanded expression is dense (i.e., monomials of all degrees are present). Heuristically, sparse polynomials are usually more vulnerable to distinguishers due to linearization attack.
Another attractive profile is its evaluation cost. By keeping two
running values: x_pow and result, each steps only requires x_pow = x_pow^2
and result = result * (x_pow + b_i) involving two multiplications per-step or
multiplications in total.
Unfortunately, the prohibiting cost resides in binding coefficients to . Instead of forcing each nullifier derivation to re-derive which requires Poseidon permutations, we can amortize the cost by asking the sender to set , and later re-commit the witnessed . The Poseidon-based commitment only takes permutations per-nullifier. Even with the amortization, the cost already exceeds that of the GGM's.
As a side note, the following construction is equivalent for all algebraic attackers; yet worse in efficiency due to the doubled number of coefficients:
Attempt 2b
The primary cost of Attempt 2a comes from deriving or binding its coefficients. Naturally, we wonder if we can drop just a few factors while maintaining the same highest degree to remain resilient to GCD attack.
The dropped set could be arbitrarily picked and fixed at system setup. By tuning the dropped set size , we balance the trade-off between circuit efficiency and security. Larger linearly reduces the circuit cost thanks to fewer coefficients to derive and bind to; but the resulting also becomes more sparse, thus more vulnerable to a class of statistical and algebraic attacks. We discuss one such attack below.
Linearization Attack. The linearization attack is an algebraic attack that linearize a set of non-linear equations before applying Gaussian elimination. Take a concrete example of , , namely . There are only 7 unique monomials where are linear combination of . By replacing , we linearize an evaluation equation:
Given just 7 evaluations, we have a system of equation ready to be solved using Gaussian elimination.
With all solved, the attacker obtain the full description of which can be used to compute any nullifier value without recovering the key per-se.
Let be the number of unique monomials, the number of equations. With , the time complexity for linearized Gaussian elimination is where is the frontier matrix multiplication complexity whose state-of-the-art is .
The exponential decay in security with only linear benefit in circuit efficiency rules out this attempt 2b.
Attempt 3: ZK-friendly Hash
The previous attempt explores the "product-of-sparse-polynomial" approach and explains how it failed to meet our efficiency/security requirement. Now, we shift gears to the second approach: "composition-of-round-functions", a.k.a. arithmetization-oriented cipher (AOC) in the literature. Most ZK-friendly hash functions (e.g. MiMC, Rescue, Poseidon) are built on top of AOC. Inspired by the classical Substitution-Permutation Network (SPN) in the popular symmetry primitives like AES, these AOCs are block ciphers that applies alternating rounds of confusion and diffusion. Particularly, AOC switch out bitwise ops in AES (e.g. XOR, rotation, s-box) for algebraic counterparts that involves only field ops (e.g. field addition for keyed confusion, for s-box).
On a high-level, define some low-degree (e.g. degree 3 or 5) non-linear keyed round function , the AOC applies the round function -times to produce the ciphertext:
With , the overall degree of . This exponential increase in degrees and sufficient density gives exponential growth in its safety margin against algebraic attacks, resulting in logarithmic number of rounds.
In this attempt, we pick an off-the-shelf ZK-friendly hash function and use it as a black box. In the next attempt, we open the black box, and tweak parameters and design axis in pursuit of a more circuit-efficient AOC. We pick battle-tested Poseidon with proper domain separation:
To reiterate the overall flow:
- Sender prepares the Output note with arbitrary (random if honest).
- User proves nullifier derivation in-circuit as:
- OSS directly receives a single PCD proof attesting for the delegated range.
Our 7 Poseidon per PCD step capacity directly translates to nullifier derivations per step. The indistinguishability is computational but its the one-wayness and collision resistance has fairly high confidence given the years of cryptoanalysis against Poseidon. The reliance on user to generate proofs of correct nullifiers seems inevitable as we argued at the end of attempt 1.1.
This is the first attempts that satisfy all our security and efficiency requirements. On the positive side, it requires no new/in-house cryptoanalysis, no additional assumptions or trusted primitives. However, the efficiency improvements over the GGM-based nullifiers is a moderate .
A natural optimization is producing nullifiers, rather than just one nullifier, per Poseidon squeeze.
In practice, we would prove a batch of nullifiers in one PCD step and separately show that the list of nullifiers OSS had proven exclusion for is a sub-sequence of these nullifiers.
Attempt 4: AOC with Reduced Rounds
Now, we open the AOC black-box, and systematically analyze the possible optimization axis and their effects on the security level. We target the MiMC block cipher for its minimal algebraic description. Our analysis might be transferable or at least serves as a starting point when extending to the HADES family like Poseidon with wider states and partial rounds.
Jump to our negative conclusion if you don't care about the cryptoanalysis details.
To recap, the MiMC permutation works as follows:
Each round involves a linear confusion via addition of the key and a round constant ; and a non-linear confusion via s-box permutation for some small that satisfies . For Pasta curves' scalar field , since , we pick . Round constants are generated and fixed at system setup.
The overall keyed function composes of rounds:
A variant with higher-dimension key has a round function with a rotating addition key:
Goal. Our goal is to achieve -bit security but fewer than the rounds as recommended in the original paper.3 This might be possible (and even worth considering at all) because our security requirement is less stringent than a full PRF or a block cipher. We only require a weaker form of IND-CPA security:
- the input space is the epoch domain rather than the whole field
- the number of output/ciphertexts the attacker/distinguisher obtains is
Elimination Criteria. To prune the design space, we can identify some criteria for quick elimination.
- RO/PRG/PRF usage: If we invoke a random oracle, or a PRF, or a PRG internally as a subroutine, the cost already exceeds that of attempt 3; because we instantiate a RO/PRF/PRG using Poseidon in practice which requires at least 1 Poseidon permutation.
Optimization Axis. Here are some possible axis for optimization:
- Strong PRF v.s. Weak PRF: relax to a weak PRF
- Different choice of s-box: higher , larger stride each round
- Fewer rounds: under the same key size, pick a more aggressive
- Larger keys: higher key dimension to reduce rounds
Axis 1: Weak PRF
While a strong PRF is indistinguishable from a random function that maps to a random value for any attacker-controlled input, a weak PRF severely restrict the attacker to only query the function at random points in the domain. We wonder if a weak PRF is sufficient in our setting, which opens the door for (possibly) simpler AOC-based PRFs thanks to the strictly weaker requirement?
However, the input values are epoch numbers which are predictable, distinguisher-chosen, and anything but random. Even if we have a highly efficient weakly secure PRF, we must map the input to a random value first: . This RO invocation is enough to rule out this axis as per our elimination criteria.
Axis 2: Larger
Observing the derivation of the recommended round (see footnote3) : larger the per-round stride, faster it reaches a high enough degree to be resilient to algebraic attacks. On the surface, it seems sensible to increase the to reduce rounds.
There are at least two issues with this intuition. One, fewer rounds (i.e. smaller ) is more vulnerable to the Gröbner attack as we explain in greater detail in the next axis. Two, and most importantly, larger means a higher per-round exponentiation cost, resulting in no reduction in overall number of multiplication constraints. Section 5.3 of MiMC paper analyzes this specifically; it concludes that in a constraint system where squaring is as expensive as a multiplication, changing does NOT reduce the constraint count or offer any benefit.4 For these reasons, we rule out this axis.
Axis 3: Single Key, Fewer Rounds
Before analyzing the lower limit on the number of bounds required, we need to introduce another two primary algebraic attacks.
Interpolation Attack
Interpolation attacks allow reconstruction of from enough pairs using polynomial interpolation without key recovery. Obviously, with pairs, we can run Lagrange interpolation in time. Since our input domain is not a FFT domain, we cannot achieve complexity. However, in our setting, the maximum number of pairs exposed to the attacker is , thus classic interpolations don't apply.
Meanwhile, interpolation for sparse polynomials is still relevant. In parameter regimes of aggressively fewer rounds , may become sparse. The expected number of unique monomials scales with . In the extreme case, consider , the resulting has distinct monomials. Here, is only dense if we simultaneously scale up to keep to compensate (as we did previously).
If we only reduce while keeping other parameters unchanged, the would be sparse and subject to Ben-Or-Tiwari's interpolation. Given a sparse polynomial of monomials, evaluations, the interpolation cost is or field ops in the general case. Again, attackers cannot use FFT due to domain restriction on the revealed evaluations (namely the epoch domain is not a FFT domain).
An inconsequential note: technically, for sparse polynomial of terms, and only evaluations, we can apply the linearization attack on the fully determined system of equations. However, even though attackers know the exact expression, the fully expanded form with coefficients per-equation implies at least total memory. In contrast, the preceding BOT interpolation algorithm is oblivious to the exact non-zero positions/monomials and requires working memory. Moreover, the time complexity of linearization attack is which is worse than interpolation.
Gröbner Basis Attack
Gröbner basis attack translates into a multivariate system and uses Gröbner basis reduction and univariate roots finding to solve the system of equations. We present a greybox understanding of the algebraic procedure with a focus on complexity of each sub-step. Our presentation here is heavily based on Zellic's blog and the SoK on Gröbner algorithm.
Define intermediate outputs of s-box as for a -round MiMC. Given an evaluation pair , we can convert the (high-degree) univariate into a system of lower-degree multivariate equations about variables . Solving the system, especially for variable , constitutes a successful key recovering. Observe that there's no singular way to map to a multivariate system. We can define fewer intermediate indeterminates at the cost of higher per-equation degree as we shown on the right.
Solving the multivariate system takes 3 steps:
- Compute the Gröbner Bases in devrevlex order
- Term order change to get lex order bases, as a result, one of the bases is a univariate equation
- Apply roots-finding algorithm on the univariate polynomial, substitute the solution into the reduced system and repeat roots-finding for the next indeterminate.
We avoid formally define Gröbner basis and their properties, and only offer a high-level intuition for these step via a concrete example below. Starting with a system of multivariate equations about three variables . Within the reduction process, we iteratively find another multivariate system that has the same solutions by calculating where are monomials. It's obvious that the solution of original system is also the solution of . By the end of the process, the reduced Gröbner bases share the same solution while being properly sorted such that the last one is a univariate equation. Then we run univariate roots-finding algorithms to solve the univariate basis and plug its solution (for ) back into preceding equations () and repeat the roots-finding.
Cost. Denote the number of variables, the number of equations, the degree of each equation, reminded that is the total degree of thus also the product of .
- Step 1: Estimated where is the degree of regularity or the highest total degree of polynomial appearing during the basis reduction. A tight upper bound is . And .
- Step 2: The popular FGLM algorithm takes where is the volume of the basis staircase and bounded by .
- Step 3: State-of-the-art univariate roots-finding from [Kedlaya-Umans] takes where is also the degree of univariate basis.
We consider the case of , corresponding to the one-intermediate-variable-per-round choice. The cost in step 2 dominates that of step 3. Conveniently, the MiMC-specific multivariate system already is a Gröbner basis in the devrevlex order (see Section 4 of the SoK paper), thus step 1 is skipped. Thus, the simplified overall cost is .
This attack looks ridiculously expensive, more so than all other algebraic attacks, so why do we even care to mention it? Because we only have the upper bound, but no lower bound on the term-order change step. In practice, there might be significantly cheaper-than-FGLM approach that brings down the attacker cost, as demonstrated in FreeLunch (Crypto24) against an AOC used in Griffin, Anemoi, and ArionHash designs. In the absence of proven lower bound, the conservative assumption is that AOC attackers manage to get Gröbner reduced basis almost for free (i.e. skipping step 1 and 2), leaving as a practical lower bound.
We enumerate all attacks the and explore an aggressively fewer rounds right at the security boundary. We take 's lower bound , the round exponent , and -bit prime field size.
- GCD attack requires , which implies .
- interpolation attack requires where is the unique number of monomials in the expanded which scales with . This implies .
- Linearization attack requires which implies .
- Gröbner basis attack requires which implies .
In sum, our non-exhaustive list of algebraic attacks suggest a minimum number of rounds to maintain a -bit security level.
Axis 4: Higher Key Dimension
As seen in the MiMC recap, we can use a rotating key in the round function given a higher-dimension key with . The question is whether the cost of attacks scale super-linearly with key size such that a reduced-rounds parameter can maintain the same security level. We need to enumerate through all major algebraic attacks.
Before the analysis, astute reader might question: if , then larger keys require entropy expansion which involves RO/PRF invocation; doesn't this already rule out this axis as per our elimination criteria? The answer is two folds. Firstly, to squeeze a single , we already need to invoke Poseidon permutation once, which gives us pseudorandom outputs at once. Practically, we can expand to without any extra cost. Secondly, the cost of entropy expansion might be amortized if it drastically reduce the rounds, thus lower per-input evaluation cost. There remains the possibility that a high fixed-cost key expansion accompanied by low variable-cost nullifier computation enables deriving multiple in a single PCD step.
Unfortunately, we need to revisit all four algebraic attacks and their cost analysis for a key because the expression changes.
- GCD attack: no longer applies because becomes a multivariate polynomial beyond the bivariate. In a multivariate ring, a common root is not a common factor, thus generically .
- interpolation attack: since all keys are treated as realized constants, the polynomial degree and density w.r.t. is unaffected. Unchanged from the previous analysis .
- Linearization attack: Similar to interpolation attack, linearized variables are all -monomials where are computed in their coefficients. Unchanged from before .
- Gröbner basis attack: thanks to the conservative security buffer that drops the first two steps of Gröbner attack whose asymptotic scales in very complicated expression in . The practical lower bound (on attacker cost) we use only involves . Therefore, the bound remains unchanged from before .
In sum, due to the further absence of GCD attack, the minimum number of rounds is further reduced to with -dimensional key with (for a free key expansion) to maintain a -bit security MiMC function.
Conclusion for Attempt 4. To clarify, the analysis does NOT recommend a reduced MiMC. The main point of the exercise is to situate major algebraic attacks and explore the design space/parameterization of AOC. Aggressively-chosen parameters only reduce the circuit constraints to of a full MiMC. Such moderate saving is not worthy of pursuing given our analysis is yet peer-reviewed, non-exhaustive, and under simplified assumption.
Attempt 5: Proof of AOC Trace
Observe that the MiMC function is a highly structured computation with a uniform round function. This structure gives rises to an Interactive Oracle Proof (IOP) for the correct execution trace. In contrast to the previous attempts (#3 and #4), we can efficiently prove correct MiMC traces (loaded as non-deterministic advice/witness) by piggybacking on the IOP proof system, rather than re-compute them in-circuit and pay the extra overhead of arithmetizating circuit gates into polynomial identities in the IOP. Luckily, the Ragu proof system indeed exposes API (a.k.a. hooks) to support online Fiat-Shamir challenges and polynomial oracles. "Online" here means custom, application-level IOPs whose prover-verifier messages got fused with that of Ragu's native Polynomial IOP.
Denote a multiplicative subgroup of order with generator . Without loss of generality, we assume is a power-of-two such that the domain can be a FFT domain if is highly 2-adic.
Recap the MiMC construction again below for the ease of reference.
For an MiMC instance , interpolate an MiMC trace polynomial , and a round constant polynomial over the group as follows:
Intuitively, we interpolate an AIR trace with a uniform transition function between two consecutive rows. The execution trace is correct if and only if the following polynomial vanishes over . Equivalently, they perfectly divides the vanishing polynomial defined below.
IOP of MiMC Trace
Now, we describe a simple IOP that enforce the correct trace . Note that verifier can independently obtain since round constants are public system parameters; and also . The commitment to is also witnessed as a polynomial oracle. Meanwhile, both input and output in the MiMC evaluation instance are public inputs/instances. The derivation of is assumed to be enforced in-circuit already and shared by all future MiMC trace polynomials.
- Prover interpolates , computes the quotient polynomial , commits them, and sends commitments to the verifier.
- Verifier samples a challenge , computes , and query against their commitments using "polynomial oracles". Then checks the following relations:
There are two ways to batch-verify MiMC traces. One is more prover efficient; the other is more circuit efficient which is what we prefer.
Prover-efficient Batching
Let be the polynomials that vanish on for the -th MiMC instance . Then we can batch them into the quotient polynomial:
- Prover interpolates for , commits them, and sends commitments to the verifier.
- Verifier samples a challenge .
- Prover computes the quotient polynomial (reusing the same and ), commits it, and send .
- Verifier samples a challenge , computes , and query against their commitments. Then checks the relations:
Cost. For the single trace, the prover run a MSM of size to commit any of , and use FFT to compute the quotient polynomial. The circuit cost is dominated by invoking Ragu's polynomial oracles whose cost is further dominated by the number of queries on distinct polynomials; extra queries on committed polynomials are almost free. Note that we always need to invoke PRF once to enforce the derivation of . Its cost is amortized among all MiMC traces proven in the same step. Furthermore, enforcing takes multiplications using repeated squaring for the numerator and a non-deterministic advice for the division.
| Prover | Circuit Cost | |
|---|---|---|
| 1 trace | PRF + query points on polys + mul | |
| traces | PRF + points on polys + mul |
Circuit-efficient Batching (Preferred)
The problem with the foregoing batching is that the number of queried polynomials grow linearly with . Given that a PCD step can only support a fixed (and small, currently ) number of online polynomial oracle, we cannot even support MiMC traces per step, which is unacceptable.
An alternative batching flatten traces and interpolate them into a single trace polynomial over a larger FFT domain of size . Without loss of generality, assume is also a power-of-two.
Define the containing the "transition function exceptions", or the domain elements that corresponds to the last value in each execution trace. For MiMC instances , interpolate a grand trace polynomial and round constant polynomial over the group: as follows:
The flatten execution trace is correct if and only if the following polynomial vanishes over . Equivalently, they perfectly divides the vanishing polynomial defined below:
Now the batched IOP works as follows:
- Prover interpolates , computes the quotient polynomial , commits them, and sends commitments to the verifier.
- Verifier samples a challenge , computes , and query for against their commitments using "polynomial oracles". Then checks the following relations:
Batched Cost. Assuming Pedersen vector commitment for the PCS with a quasilinear commit cost. We take recommended full round from the MiMC paper 3 and round to the nearest power-of-two which gives us .
| Prover | Circuit Cost |
|---|---|
PRF & points on polys & mul |
The prover first need to interpolate using ; then compute commitments using ; finally computes quotient polynomial using .
The circuit cost includes enforcing the which takes
a PRF ( mul); constant number (only ) of polynomial oracles;
and multiplication constraints for and the quotient relation
check by the verifier. The numerator of takes mul via
repeated squaring; the denominator is free because is already an
intermediate result during the squaring; finally the division takes another
multiplication where the reciprocal of the denominator is provided as an advice.
In total, computing takes mul gates. Lastly,
takes mul only.
Now a first-order estimation of largest permissible for a single PCD step.
Assuming -mul-cost per polynomial oracle and a circuit size.
Parameter Tuning. The two parameters to tune are per-round exponent and key dimension .
Larger leads to fewer rounds to reach sufficient highest degree against algebraic attack. A safe heuristic demands for -bit security. Surprisingly, a larger will leads to more multiplication gates to compute in-circuit, thus higher circuit cost.
Higher also offers no benefit: prover cost and circuit cost unaffected. The only difference is that when prover interpolate , it needs to ensure . If , then we need to squeeze Poseidon multiple times to expand the full key, which incurs higher circuit cost.
Optimization: Multi-step Amortization. While mere parameter tuning renders futile, we can achieve lower amortized cost if we span over the derivation across many steps. This is motivated by the relatively large fix-cost from PRF and polynomial oracles, and the super low variable-cost for individual MiMC trace boundary conditions (i.e. public inputs enforcement on ).
Let be the number of PCD steps covered by one IOP. The first step commits to and each later step carries the same commitments unchanged in its header. Ragu's staged commitments enforce that the two curve-side views of this header agree at the following recursion step, which prevents a prover from mixing different IOPs across the span.
We assume an extra query of an already committed polynomial costs mul
gates and no extra endoscaling. Since every trace adds its input and output
query, this adds mul gates per trace to the first-order estimate above:
| Spanned steps | bound | Amortized per step |
|---|---|---|
There is one placement constraint: if all queries are emitted in the first step, that step alone caps at . Its multiplication-gate budget binds well before the linear-constraint budget. Therefore, the larger bounds above require distributing the polynomial queries over the steps while threading the same IOP commitments through them.
This split preserves IOP soundness. The first step publishes an IOP descriptor in its header and checks the one quotient relation at . Each later step must copy unchanged, and adds only the endpoint queries for its assigned, non-overlapping trace range. Ragu's nested staged commitments make the two curve-side copies of agree in the following recursion step; thus no later step can silently switch to a different , , or .
Conclusion
Overall, we recommend Attempt 3 which offers a improvement on circuit efficiency for nullifier derivations. This attempt demands minimum engineering effort, no extra assumption or in-house cryptanalysis, while meeting our security computationally.
If we accept the additional dependency on MiMC and its recommended security parameter, then our Attempt 5 delivers an amortized cost of nullifiers per PCD step. This performance is possible due to a combination of optimization including batch-proving MiMC traces and amortizing IOP verifier logic across steps. See the circuit cost breakdown here.
The concrete parameter suggestion for Attempt 5 is: Use MiMC with rounds over -bit scalar field.5 Concretely, the nullifier polynomial is:
then batch-prove multiple MiMC execution traces.
-
In the original GGM-based nullifier, the
DelegateCertstep proves integrity of the internal node whose value is the delegation key. ↩ -
For a survey of algebraic attacks on arithmtization-orientated cipher (AOC), start with Zellic's blog post, then Section 4.2 of MiMC, Appendix E of HADES, Appendix C.2 of Poseidon, and a detailed SoK on Gröbner basis algorithm. ↩
-
The MiMC paper concludes that provides sufficient protection against known statistical and algebraic attacks. The original paper uses pervasively; it gives the recommendation in Table 1. By the same logic, for , the suggested round is . ↩ ↩2 ↩3
-
Quoting Section 5.3 of MiMC:
"To conclude, if the cost of a square operation is negligible with respect to the cost of a multiplication (that is, if the square operation is linear), then it is possible to minimize the total number of multiplications choosing an exponent of the form different from . Instead, when the number of square operations cannot be ignored (as in the case of SNARK settings or in the case), the choice of an exponent of the form different from does not offer any advantage due to the fact that the number is almost constant." ↩
-
Three more clarifications on the final recommended rounds .
-
Different from MiMC paper Section 5 which carries the implicit assumption that
MiMC-p/pfor large prime field requires a -bit security. In our case, we use a -bit field, but only requiring -bit security, thus attacker's work/cost should be bounded by rather than the full field. Our recommended rounds is derived from which is sufficient to thwart all aforementioned attacks. -
Later cryptoanalysis work presents high-order differential key recovery against MiMC. They recommends an extra 5 rounds to thwart their attacks (see end of Section 5 in their paper). This buffer is already counted for when we round up our recommended to the next power-of-two.
-
A block-size of is already sufficient for the generic birthday bound.
-
GGM-based Nullifier
Archive of the GGM-based nullifier design. We have moved away from it and embraced Polynomial-based nullifier.
A natural abstraction for the first constraint is the constrained PRF [BW13]: from the master key one can derive a constrained key that enables the evaluation of the PRF at a certain subset of the input domain and nowhere else. Section 3.3 of [BW13] explains the prefix-fixing family realized by the seminal [GGM84] PRF which is sufficient for us.
GGM-based Nullifier
Let be the binary expansion of (so is the most significant bit). Let be a length-doubling PRG, split into halves . In practice, we can instantiate with some hash function modeled as random oracle. The GGM PRF walks down a binary tree from a seed, branching left or right at each level according to the input bits:
The Tachyon nullifier instantiates this GGM PRF with a per-note seed bound to both the user's nullifier key and the note's trapdoor :
A few properties worth highlighting:
- Per-note and owner-bound: Only the holder of can compute the seed , so only the owner can derive . The seed also depends on the per-note , so different notes live in completely disjoint GGM trees: a prefix key delegated for one note grants the OSS nothing about any other note's nullifiers.1
- Forward-only: Each is one-way — from any internal node one can walk further down, but cannot recover its parent or reach a sibling subtree. A partially-walked node thus lets its holder reach every leaf below it, and nothing else.
- Provably pseudorandom: For uniform , the seed is pseudorandom by PRF security; GGM then yields pseudorandom over any distinct epoch queries, sequential or even adversarially chosen.
- Circuit efficient: One PRF call to derive the seed plus PRG calls down the tree — a single costs hashes when both the PRF and are instantiated with Poseidon.
The forward-only property is exactly what makes OSS delegation work. For any prefix of length , the internal node is a prefix-constrained key: its holder can derive for every in this note's tree whose top bits equal , and learns nothing about any other — including any nullifier of a different note, whose tree is rooted at a different seed.
Concretely, in a 3-bit epoch space, delegating the range for some note amounts to handing the OSS the depth-2 prefix key
from which it forward-walks and to obtain , and
thus for that note. Because is one-way, the OSS cannot
reach any node outside the 01 subtree, so future revelations of
remain unlinkable to anything it has seen.
When the requested range does not align to a single subtree, it is delegated as a set of prefix keys: one per maximal subtree contained in the range. Delegating , for example, requires three subtree roots (all under the same per-note ):
covering , , and respectively. In the worst case an arbitrary range in an -bit epoch space needs prefix keys, so the delegated key material is variable-size.
Optimization: mixed-arity trees. We use a binary tree for clarity, but the arity need not be uniform across levels. A nullifier's in-circuit cost is the number of hashes along its root-to-leaf path, i.e. the tree height, so a wider branching near the root shortens every path and lowers that cost. Keeping the branching binary near the leaves preserves fine-grained range coverage for OSS delegation, where a delegated subtree should span as few surplus epochs as possible. High arity at the top and arity-2 at the bottom buys both at once: a shallow circuit and tight delegation ranges.
Nullifier Security
We now examine how the evolving nullifier upholds the security properties carved out for the shielded protocol. Readers can safely skip this section and come back later since the analysis refers to concepts introduced in later sections.
Balance. Only the holder of can compute any , since the GGM seed requires it. The spend circuit pins both and to a deterministic function of the note and epoch, so a note has exactly one valid nullifier per epoch and no freedom to mint a fresh value that dodges a past spend. Double-spending is then ruled out by two complementary checks that leave no gap. The spendability proof certifies the nullifier absent throughout pruned history up to its anchor, and consensus rescans the recent window (the current epoch and the one before) that the proof does not reach. Publishing both and extends this across the epoch boundary, so a note cannot be spent twice even as advances.
Note Privacy. The adversary is a keyless third party reading the whole
on-chain transaction, including any in-band memo. The shielded footprint, namely
the commitment (hidden by ), the spend's revealed nullifiers
(pseudorandom by GGM PRF security), the rerandomized , and the hiding ,
reveals none of , , . The in-band memo is payment-protocol data
that the shielded protocol carries opaquely and never parses (committed only to
da_digest), so its secrecy rests on the payment protocol's encryption, not on
the shielded core.
Note Privacy (OOB). Here the note plaintext travels out of band rather than as an in-band ciphertext, so the adversary of concern is the sender, who learns but never the recipient's . Because every hangs off the secret seed , knowledge of the note plaintext alone does not let the sender, or anyone it colludes with, recognize the recipient's eventual spend on chain or link it back to the note it sent.
Spend Unlinkability. Across epochs the of a fixed note are mutually pseudorandom to anyone lacking , by GGM PRF security, and this holds even for the pair revealed together at spend. An OSS delegated a prefix key for a range can refresh exclusion proofs there, but the tree's forward-only structure prevents it from reaching any leaf beyond the range, in particular the spend leaf, since syncing stops at . To an attacker holding only the on-chain , the spend is unlinkable to it, since the two draw on disjoint randomness ( versus the GGM seed). The stronger flavor of spend unlinkability, under incoming viewing key access, falls to the payment protocol, since Tachyon's shielded core has no .
Faerie-gold via the wallet. In Orchard, Faerie-gold resistance comes from binding each new note's to the unique nullifier of an input note. Tachyon's tachygram accumulator does not assign notes a canonical position, so the shielded protocol cannot enforce that binding. A malicious sender could in principle pick colliding values across two notes sent to the same recipient, where only one of them is spendable. We push detection to the recipient's wallet: upon receiving a note, the wallet computes the note's nullifier at a fixed reference epoch and rejects the note if it collides with any other note it currently holds. Since a wallet's note set is small, the check is cheap; the knowledge that compliant wallets will reject such collisions is enough to deter the attack.
-
Had we instead used a note-independent and folded into a final , the same would be shared across every note the user owns. An OSS holding a delegated for note could then compute for any other note whose it knows — and since is sender-shared via the payment protocol, a colluding sender-OSS would learn the epoch- nullifier of every note it ever sent the user. Worse, future delegations would retroactively unmask past spends: receiving later lets the attacker compute for a note already spent at epoch and find the match in the on-chain nullifier history. Binding the GGM seed itself to per-note severs both attacks: each note has its own tree, and a delegated subtree key cannot cross GGM trees. ↩
Transaction Identifiers
A Tachyon bundle's authorization form changes as it moves through aggregation: stamping, merging into a covering aggregate, and stripping all produce bit-different authorizations of the same effecting data. wtxid — txid || auth_digest — is defined to uniquely fingerprint the physical on-wire transaction, so these forms must produce distinct wtxids.
Tachyon routes the mutable parts through auth_digest, leaving txid stable:
txidcommits to effecting data only: the actions, the value balance, and the memo. Stripping, merging, and re-stamping leavetxidunchanged.auth_digestcommits to sigs plus the stamp trailer. Each physical auth form yields a distinctauth_digestand therefore a distinctwtxid.
auth_digest contribution
Zcash's transaction-level auth_digest commits to authorization data — the half of wtxid = txid || auth_digest that changes when an authorization form changes (ZIP-239, ZIP-244).
Tachyon's bundle contributes on both sides:
- Effecting data →
txid. Tachyon's contribution is the bundle commitment over . - Authorization data →
auth_digest. Tachyon's contribution hashes the bundle state byte, the action signatures, the binding signature, and a fixed-width summary of whichever stamp the bundle carries:
is 64 bytes in both states, so the two are the same width and are told apart by the state byte:
A stamped bundle summarizes its stamp as two digests. is the action set indicator, which strips away with the rest of the stamp when a bundle becomes an adjunct. covers everything else the stamp carries:
with . Hashing the proof separately keeps the tachygram vector as the only variable-length input.
A stripped bundle's summary is the 64-byte wtxid of the covering aggregate, used directly. The personalization "ZTxAuthTachyHash" is a placeholder until a Tachyon-ZIP amendment to ZIP-244 fixes it.
Covering-aggregate references
An adjunct's reference to the aggregate that covers it is a wtxid, not a txid — the 64-byte wtxid pins a specific physical aggregate, whereas a txid only pins the effecting data.
Miners assign the reference during block assembly. The covering aggregate must itself be top-level in the block — never stripped, never further aggregated — so the wtxid pointed to is stable. See Aggregation → Block Layout for how references are resolved in a block.
Domain Separators
BLAKE2b-256
Transaction identifiers
Digests used to commit to Tachyon bundle contents for sighash and auth digest.
| Purpose | Value |
|---|---|
| Bundle commitment | ZTxIdTachyonHash |
| Bundle auth digest | ZTxAuthTachyHash |
Bundle contents
Digests over bundle contents, feeding the two above. These are Tachyon-specific and so take Tachyon personalizations.
| Purpose | Value |
|---|---|
| Action descriptors | Tachyon-Actions |
| Memo payload | Tachyon-Memo |
| Stamp proof | Tachyon-Proof |
| Stamp data | Tachyon-Stamp |
BLAKE2b-512
PRF expansion
Domain string and personalization bytes for sk expansion.
| Purpose | Value |
|---|---|
| PRF expand | Zcash_ExpandSeed |
ask derivation | 0x21 byte |
nk derivation | 0x22 byte |
Poseidon
These are all Tachyon-specific digests, performed in-circuit.
| Purpose | Value |
|---|---|
| Nullifier master key | Tachyon-NfMaster |
| Nullifier derivation | Tachyon-NfDerive |
| Note commitment | Tachyon-CmDerive |
| Output padding tachygram | Tachyon-CmOutPad |
| Action digest | Tachyon-ActionDg |
| Payment key derivation | Tachyon-PkDerive |
| Spend alpha | Tachyon-Spend |
| Output alpha | Tachyon-Output |
| Anchor stamp step | Tachyon-AnchorSt |
| Anchor epoch step | Tachyon-AnchorEp |
| evidence tree leaf | Tachyon-QrBucket |
An evidence tree node takes no domain constant. Its four children fill the sponge rate exactly, and a leaf absorbs nine elements against a node's four, so no node value can stand where a leaf digest is expected. A tree short of a full level therefore pads by repeating a child and never by omitting one.
The two alpha domains are zero-padded to sixteen bytes.
Hash-to-curve
Value commitments presently use the same generator as Orchard.
| Purpose | Value |
|---|---|
| Value commitment | z.cash:Orchard-cv |
Tachyon ZIPs
The ZIP process seems highly formalized, with codified standards and ceremony around each proposal. Tachyon will need to determine the domain of different ZIPs we intend to propose, the ordering of those proposals, and what existing ZIPs need modification and how version control works in that context. This is intended to compile research and seed discussion on the ZIP writing process.
ZIP Versioning
For more details on the ZIP process, reference ZIP 0.
ZIPs are associated with a triple: status, category, and (informally, my own classification) a role.
- Status: 'draft, proposed, final, withdrawn, obsolete, reserved, rejected, active, implemented' – these are state transitions as a function of consensus approval,
- Category: 'consensus, standards, process, consensus process, informational, network, rpc, wallet, ecosystem' – different categories that define the ZIP kind,
- Role: 'update, successor, additive, deployment' – this is more of an informal metric for ZIP versioning, defining how the proposed ZIP interplays with existing ZIPs.
For more specifics on ZIP versioning conventions, reference ZIP 0, but here's my distillation of those patterns:
1. Update ZIPs (2xxx): These are smaller scoped, surgical edits to the existing Zcash Protocol Specification. Reference zip-2003 and zip-2004 (and their accompany PRs #825 and #917) for reference on process.
Note that Final ZIPs are not immutable. Per ZIP 0: "Final ZIPs MAY be updated; the specification is still in force but modified by another specified ZIP or ZIPs (check the optional Updated-By header)." In practice, feature ZIPs like ZIP 227 (ZSA) and ZIP 231 (memo bundles) defined their changes to ZIP-317 in their own specs, and the editors folded those changes directly into ZIP-317's text. Similarly, Orchard's pool was added directly to ZIP-209 without a separate Update ZIP. The 2xxx 'Update' ZIPs (like zip-2003, zip-2004) are specifically for surgical diffs against the Zcash Protocol Specification, not for amending other ZIPs.
2. Successor ZIPs (2xx): These are primarily full replacements that supersede existing ZIPs. The process here is that (1) the old ZIP's applicability narrows (protocol spec is updated to say "[Pre-NU{N}] use ZIP 243; [NU{N} onward] use ZIP 244."), and (2) old ZIP's status may change from 'Active' to 'Obsolete'. Reference ZIP-244 which supersedes ZIP-243 for changes to the sighash, and ZIP-225 which supersedes ZIP-202 for changes to the transaction format.
3. Deployment ZIPs: These define a network upgrade's activation parameters. Reference ZIP-252 (NU5) and ZIP-253 (NU6).
4. Additive ZIPs (mostly 2xx): This is a new specification that sits besides an existing one and doesn't supersede anything, for instance a new shielded pool in ZIP-224 or an OSS service.
ZIPs vs Protocol Specification
The ZIPs come first. The protocol specification PDF is downstream, a consolidated document that incorporates rules defined across many ZIPs.
- Feature ZIP is written and reaches Proposed status
- If the ZIP includes changes to existing ZIPs, editors fold those in
- Once the ZIP reaches Implemented/Final, the protocol specification PDF is updated to reflect the new consensus rules
- If the spec changes are complex enough, a 2xxx Update ZIP may describe the diff against the spec
Tachyon ZIPs
This attempts to enumerate the landscape, at a high-level lacking a lot of detail, for the different kinds of ZIPs that Tachyon will need to propose: 5 'Additive' ZIPs, 5 'Update' ZIPs, 0 'Successor' ZIPs, and 1 'Deployment' ZIP = 11 ZIPs.
There are probably other ZIPs that need updating, but haven't examined the entire search space here yet (there are a lot of ZIPs)!
--- title: Tachyon and Ragu - ZIP dependency graph --- flowchart TB classDef additive fill:#fff1c740,stroke:black classDef update fill:#d5ebd140,stroke:black classDef successor fill:#fccaca40,stroke:black classDef deployment fill:#dcd2eb40,stroke:black accumulator["` **3. Accumulator** *(additive, consensus)* `"]:::additive shielded["` **1. Shielded Protocol** *(additive, consensus)* `"]:::additive bundle["` **2. Bundle / Tx Format** *(additive, consensus)* `"]:::additive aggregator["` **4. Aggregator Protocol** *(additive, network)* `"]:::additive oss["` **5. OSS** *(additive, wallet)* `"]:::additive zip221["` **6. Update: ZIP 221** *(update, consensus)* `"]:::update zip209["` **7. Update: ZIP 209** *(update, consensus)* `"]:::update zip248["` **8. Update: ZIP 248** *(update, consensus)* `"]:::update zip317["` **9. Update: ZIP 317** *(update, consensus)* `"]:::update qr["` **10. QR ZIP** *(update, wallet)* `"]:::update nu_deployment["` **11. NU Deployment** *(deployment, consensus)* `"]:::deployment accumulator --> zip221 & aggregator & shielded & oss shielded --> bundle & aggregator & zip209 & zip317 & qr & oss zip248 --> bundle bundle --> aggregator & nu_deployment aggregator --> nu_deployment oss --> nu_deployment zip221 --> nu_deployment zip209 --> nu_deployment zip248 --> nu_deployment zip317 --> nu_deployment qr --> nu_deployment
Each ZIP entry below contains three subsections: Dependencies, Design Considerations (exploratory context and open questions), and a ZIP Draft (the formal specification intended to be upstreamed to zcash/zips). For each ZIP entry, see the corresponding issue in the tracking issue #114 for more context.
Tachyon Shielded Protocol
Tracking: #103
('Additive' ZIP, Category 'Consensus')
I. Dependencies
II. Design Considerations
III. ZIP Draft
Tachyon Bundle / Aggregate Transaction Format
Tracking: #104
('Additive / Update' ZIP, Category 'Consensus')
I. Dependencies
II. Design Considerations
III. ZIP Draft
Tachyon Accumulator / Hash Chain
Tracking: #105
('Additive' ZIP, Category 'Consensus')
I. Dependencies
II. Design Considerations
III. ZIP Draft
Tachyon Aggregator Protocol
Tracking: #106
('Additive' ZIP, Category 'Network')
I. Dependencies
II. Design Considerations
III. ZIP Draft
Oblivious Syncing Service, OSS
Tracking: #107
('Additive' ZIP, Category 'Wallet / Ecosystem')
I. Dependencies
II. Design Considerations
III. ZIP Draft
ZIP-221
Tracking: #108
('Update' ZIP, Category 'Consensus')
I. Dependencies
- Tachyon Shielded Protocol (#103) defines the Tachyon pool and its actions
- Tachyon Accumulator (#105) defines the anchor (Poseidon hash chain state)
II. Design Considerations
ZIP-221 commits block history to a Merkle Mountain Range (MMR) via hashBlockCommitments, whose leaves carry per-pool state — a note commitment tree root and a transaction count for Sapling and Orchard — so light clients can verify chain and pool state in logarithmic time (FlyClient). Tachyon has no note commitment tree; its pool state is an end-of-block anchor (a Poseidon hash chain, see Anchor), so the open question is how to extend the MMR leaf to commit Tachyon pool state — this is still under discussion and nothing has been decided yet.
III. ZIP Draft
The ZIP draft has been extracted into a standalone, ZIP 0-conformant draft in the Tachyon ZIPs fork, proposed in tachyon-zcash/zips#3, so it can be reviewed in ZIP form and folded into ZIP-221 by the editors:
ZIP-209
Tracking: #109
('Update' ZIP, Category 'Consensus')
I. Dependencies
- Tachyon Shielded Protocol (#103) defines
valueBalanceTachyon
II. Design Considerations
ZIP-209 is a consensus rule — the turnstile — that tracks the running balance of each shielded pool across the block chain and rejects any block that would drive a pool's balance negative; it currently covers the Sprout, Sapling, and Orchard pools. Tachyon introduces a new shielded pool with a signed valueBalanceTachyon field, so the open question is how to extend ZIP-209 to cover it — this is still under discussion and nothing has been decided yet.
III. ZIP Draft
The ZIP draft has been extracted into a standalone, ZIP 0-conformant draft in the Tachyon ZIPs fork, proposed in tachyon-zcash/zips#2, so it can be reviewed in ZIP form and folded into ZIP-209 by the editors:
ZIP-248
Tracking: #110
('Update' ZIP, Category 'Consensus')
I. Dependencies
- Tachyon Shielded Protocol (#103) defines the Tachyon pool, its actions, and bundle format
- Tachyon Bundle (#104) defines the wire format for stamped/stripped bundles
- ZIP-248 (Extensible Transaction Format) must land
II. Design Considerations
ZIP-248 (Extensible Transaction Format) reworks the V6 transaction into a type-length-value sequence of protocol bundles, each identified by a (bundleType, bundleVariant) pair, so a new pool can be added without breaking the parser of any wallet that does not support it (it skips the bundle, still computes the txid from the opaque effecting data, and tracks value flows via mValuePoolDeltas). Assuming ZIP-248 lands, Tachyon would register a bundle type and slot into the TLV sequence rather than hardcoding a field in the V6 structure, so the open question is how the Tachyon bundle registers and serializes under ZIP-248 — this is blocked on ZIP-248 reaching editor consensus, and nothing has been decided yet.
III. ZIP Draft
The ZIP draft has been extracted into a standalone, ZIP 0-conformant draft in the Tachyon ZIPs fork, proposed in tachyon-zcash/zips#4, so it can be reviewed in ZIP form and registered under ZIP-248 by the editors:
ZIP-317
Tracking: #111
('Update' ZIP, Category 'Consensus')
I. Dependencies
- Tachyon Shielded Protocol (#103) defines tachyactions and
nActionsTachyon
II. Design Considerations
ZIP-317 prices a transaction by its logical_actions — a protocol-neutral count of the verification and state cost it imposes on validators, summed across the transparent, Sprout, Sapling, Orchard, ZSA, and memo contributions (see Fee Calculation). Tachyon adds a bundle type ZIP-317 does not account for: tachyactions, carried under an aggregation model where the same logical work is split across an adjunct (which carries the actions) and the aggregate (which carries the covering proof). The open question is how to define contribution_Tachyon — this is still under discussion and nothing has been decided yet.
III. ZIP Draft
The ZIP draft has been extracted into a standalone, ZIP 0-conformant draft in the Tachyon ZIPs fork, proposed in tachyon-zcash/zips#1, so it can be reviewed in ZIP form and folded into ZIP-317 by the editors:
Network Upgrade Deployment
Tracking: #112
('Deployment' ZIP, Category 'Consensus')