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

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 value
  • rk - a 32-byte public key3 bound to one tachygram
  • sig - a 64-byte RedPallas4 signature by rk over 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 anchor
  • proof - 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 tachyactions
  • value_balance - integer net pool effect
  • binding_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:

valuestatebundle contents
0b0000_0000non-tachyonno bundle
0b0000_0001stampedbundle with hStampActionsTachyon, anchor, tachygrams, proof
0b0000_0010strippedbundle 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:

NameFormatDescription
valueBalanceTachyoni64net value of tachyon actions
nActionsTachyoncompactsizenumber of tachyon actions
vActionsTachyon64 * nActionsTachyoncv (32 bytes), rk (32 bytes)
vActionSigsTachyon64 * nActionsTachyonauthorization per action over the tx sighash
bindingSigTachyon64 bytesbinding signature over the tx sighash
nMemoTachyoncompactsizememo length, 0 when absent
vMemoTachyonnMemoTachyon bytesopaque 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:

NameFormatDescription
hStampActionsTachyon32 bytesBLAKE2b-256 digest of the covered action descriptors
anchorTachyon32 bytespool state reference
cTachygrams32 bytescommitment to the tachygrams below
nTachygramscompactsizenumber of tachygrams
vTachygrams32 * nTachygramstachygrams for this proof
proofTachyonPROOF_SIZE blobserialized 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:

NameFormatDescription
tachyonAggregateId64 bytesnonzero 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.


  1. See the Ragu book. ↩

  2. See Tachyaction at a Distance for the design rationale behind unified tachyactions and tachygrams. ↩

  3. Ragu's proof rerandomization conceals private proof inputs by selecting new unrelated proof inputs that verify identically. ↩

  4. See RedDSA in the Zcash Protocol Specification. ↩

  5. User-controlled randomness commitment trapdoor ↩