Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

stepwalletsync serviceaggregator
AnchorSpanSeedpossibleyesyes
AnchorSpanFusepossibleyesyes
SummarySeedpossibleyesno
SummaryAdvancepossibleyesno
QrSummaryIntakepossibleyesno
QrStampIntakeSeedpossibleyesno
QrEmptyIntakeSeedpossibleyesno
QrIntakeMergepossibleyesno
QrIntakeSplitpossibleyesno
QrBucketSealpossibleyesno
EvidenceTreeLeafPairpossibleyesno
EvidenceTreePairFusepossibleyesno
EvidenceTreeFusepossibleyesno
EvidenceTreeCappossibleyesno
EvidenceTreeDescendpossibleyesno
EvidenceTreeOpenpossibleyesno
QrSideDescendpossibleyesno
QrUnspentInitpossibleyesno
UnspentFusepossibleyesno
UnspentLiftpossibleyesno
NoteSeedyesnono
NullifierDeriveyesnono
NullifierFuseyesnono
UnspentBindyesnono
SpendableInityesnono
QrSpendableInityesnono
SpendableLiftyesnono
SpendBindyesnono
OutputBindyesnono
OutputStampyesnono
SpendStampyesnono
StampMergeyesnoyes
StampLiftyespossibleyes

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:

StepPermutations
EvidenceTreeLeafPair6 (two leaf digests)
EvidenceTreePairFuse0
EvidenceTreeFuse1 (node)
EvidenceTreeCap1 (node)
EvidenceTreeDescend4 (one node per level)
EvidenceTreeOpen3 (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:

StepPermutationsScalar multiplications
OutputBind4 (cm, pad)2 (cv)
OutputStamp3 (alpha, action digest)1 (rk)
SpendBind2 (nullifier pair)2 (cv)
SpendStamp4 (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

HeaderFields
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

StepLeftRightWitnessOutput
AnchorSpanSeed——anchor_start, epoch, stamp_commitAnchorSpan
AnchorSpanFuseAnchorSpanAnchorSpanleft_members, combined, right_membersAnchorSpan
SummarySeed——anchor_prev, epoch, stamp_commitSummary
SummaryAdvanceSummary—acc, extended, stampSummary
QrSpendableInitNoteUnspentQrBucketcontentsNoteSpendable
QrSummaryIntakeSummary—discriminantQrIntake
QrStampIntakeSeed——anchor_prev, epoch, discriminant, stamp_commitQrIntake
QrEmptyIntakeSeed——anchor, epoch, discriminantQrIntake
QrIntakeMergeQrIntakeQrIntakeleft_contents, right_contents, mergedQrIntake
QrIntakeSplitQrIntake—contents, non_residue, residueQrIntakeSides
QrSideDescendQrIntakeSides—bit, sibling_contents, interpolant, quotientQrIntake
QrBucketSealQrIntake—anchor_final_prevQrBucket
QrUnspentInitQrBucket—value, classes, mask, sequence, contentsArbitraryUnspent
EvidenceTreeLeafPairQrBucketQrBucket—EvidenceTreePair
EvidenceTreePairFuseEvidenceTreeEvidenceTree—EvidenceTreePair
EvidenceTreeFuseEvidenceTreePairEvidenceTreePair—EvidenceTree
EvidenceTreeCapEvidenceTree——EvidenceTree
EvidenceTreeDescendEvidenceTree—pathEvidenceTree
EvidenceTreeOpenEvidenceTree—profile, contentsQrBucket
UnspentFuseArbitraryUnspentArbitraryUnspentleft_elapsed_seq, combined_elapsed_seq, right_elapsed_seqArbitraryUnspent
UnspentLiftArbitraryUnspentQrBucketvalue, classes, mask, elapsed_seq, extended_seq, contentsArbitraryUnspent
UnspentBindArbitraryUnspentNoteNullifierselapsed_seq, nf_seq, complement_seqNoteUnspent
NoteSeed——value, psi, rcm, pakNoteSecret
NullifierDeriveNoteSecret—epoch_start, seqNoteNullifiers
NullifierFuseNoteNullifiersNoteNullifiersleft_seq, merged_seq, right_seqNoteNullifiers
SpendableInitNoteNullifiers—anchor_prev, creation_set, creation_epochNoteSpendable
SpendableLiftNoteSpendableNoteUnspent—NoteSpendable
SpendBindNoteSpendableNoteSecretrcvSpendHeader
OutputBind——note, rcvOutputHeader
OutputStampOutputHeader—theta, anchor, action_set, tachygram_setStamp
SpendStampSpendHeader—theta, pak, action_set, tachygram_setStamp
StampMergeStampStamp(action_set, tachygram_set) × left, merged, rightStamp
StampLiftStampAnchorSpanmembersStamp

  1. See Nullifiers for the nullifier sponge, the scalar psi seed, and the delegated absence sequence. ↩ ↩2

  2. See Tachygrams for the per-stamp multiset polynomial and its Pedersen commitment. ↩ ↩2 ↩3 ↩4

  3. See Notes for the four-field note structure and its commitment. ↩

  4. See Aggregation for the autonome/aggregate/adjunct lifecycle and the miner-side stripping that realizes the chain-cost reduction. ↩

  5. 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. ↩

  6. See Keys for the wallet key hierarchy and the per-action derivations. ↩