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

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.

ggm

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.


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