Technical whitepaper · 2026-11-28

Tego: a hash-based shielded payment network

Abstract. We describe a value-transfer network in which every transfer is shielded by default and no spendable transparent path exists. Every transaction is public and independently verifiable; the sender, the recipient and the amount are never written anywhere on the chain. Each spend carries a zero-knowledge proof, built from hash functions alone, that the spender owns an unrevealed note in a commitment tree. The proof system and all commitments use only symmetric primitives (Poseidon2 over the Goldilocks field, FRI-based STARKs), with no elliptic curve anywhere in the consensus path. Addresses carry no signature key at all: a spend-key digest and an ML-KEM-1024 encapsulation key (FIPS 203), nothing else; spend authorization is the proof itself. The single signature scheme in the tree is SLH-DSA-SHAKE-128f (FIPS 205), hash-based and stateless. Distribution is proof-of-work with zero premine, zero VC allocation and zero protocol tax, written into consensus constants. The design serves two audiences arriving together: people, and the software agents that act on them, whose custody contract is mechanical, holding an agent to exactly the notes issued to it and never a seed. The current security level, 97–100-bit conjectured soundness (FRI), is stated plainly; no 128-bit claim is made anywhere in this project, the code is unaudited, and no anonymity promise is made beyond what the protocol itself guarantees.

1Introduction

Transparent ledgers make surveillance the default: values, counterparties and histories are public by construction. The privacy systems that responded have mostly inherited elliptic-curve cryptography, which places their trust base against a quantum horizon. This project starts from a different point: a spend proof that rests on hashes rather than elliptic curves, and account cryptography that is post-quantum by standard, not by roadmap.

The design was made with the 2025–2026 proof-system literature in view, including the disproofs of up-to-capacity soundness conjectures for FRI-family systems; the security estimates below take that literature into account rather than predating it. Everything in this paper is implemented in public Rust workspaces, and every load-bearing number traces to a measured run recorded in the project’s frozen verification archive.

A second audience is arriving alongside the first: software agents that pay for APIs, data and compute on behalf of people. On transparent rails, every agent payment is a behavioral record (what an agent buys is what its principal does), and elliptic-curve rails keep those records openable indefinitely. This network’s ledger never writes the dossier, its note ciphertexts have no curve for a future machine to pull, and its custody contract (an agent holds exactly the notes issued to it, never a seed) is enforced by the wire schema itself.

2Design principles

principlecontent
fair distributionzero premine, zero VC, zero presale, zero airdrop, zero dev fee; the protocol charges no block tax; allocation ratios are consensus constants
privacy by defaultshield is the only entrance; v0 has no exit: there is no spendable transparent transfer path
honest securityonly “97–100-bit conjectured security (FRI)”; a 128-bit claim is prohibited until tool-computed for the exact configuration and externally reviewed
symmetric primitives onlyproof system and commitments use hash functions only; no groth16, no pairing-based construction, no elliptic-curve signatures; the one signature scheme in the tree is SLH-DSA-SHAKE-128f (FIPS 205), hash-based, stateless, one parameter set; where a PQ designer would reach for a lattice assumption (ML-DSA), this stack declines it
measured numbersonly measured figures are published; untested work is labeled untested; milestones are tracked by block height, not dates
no anonymity absolutismprivacy is guaranteed by the protocol; network-layer analysis, endpoint security and compliance risk are out of scope
fail-closed engineeringany length, version or parameter mismatch is rejected; silent degradation is prohibited; circuits, transaction format and address format are independently versioned

3Protocol model

The unit of value is a note: an amount together with an owner secret and per-note randomness. A note enters the shielded pool as a commitment appended to a Merkle tree of commitments; the chain never sees the note itself. To spend, the owner reveals a nullifier, a value uniquely derived from the note and its keys, and presents a zero-knowledge proof of ownership. Spent markers live in a dedicated nullifier set; a nullifier’s presence there makes a second spend of the same note impossible regardless of what the proof asserts.

There is no spendable transparent path. The only way in is shield; value moves between notes within the pool, and the chain observes commitments, nullifiers and proofs, never amounts, senders or recipients in the clear.

Wire formats are versioned independently and fail-closed at decode throughout: addr_v1 for addresses, tx_v0 and tx_v1 for transactions, block_v0 for blocks, each with its own version field. The address format’s human-readable prefix is the HRP teg1, frozen at genesis; a measured address encodes to 2,573 characters. An address carries no signature key: it holds a spend-key digest and an ML-KEM-1024 encapsulation key (FIPS 203) and nothing else, so spend authorization is the proof itself. The v1 transaction id is SHA-256 over the domain tag tego/txid/v1, a data-integrity convenience that never enters a proof. The transaction amount domain is 0 .. 2^62 − 1. Coinbase issuance is a block-level construct, not a transaction.

What the ledger shows, precisely: every block, every spend, every nullifier and every commitment is public and independently verifiable, and that is all there is. The sender, the recipient and the amount are not hidden by policy; they are absent by construction. A dossier needs those three; the chain never wrote them.

4Cryptographic stack

4.1 Hashes and trees

The production hash stack is a single Poseidon2 instance over the Goldilocks field (p ≈ 2^64): width 12, 8 full rounds plus 22 partial rounds, S-box x&sup7. The same instance serves the proof transcript (Fiat–Shamir), note-encryption domain separation, and the on-chain trees, which keeps the hash-layer trust base to one auditable object. Commitment trees are 4-ary Poseidon Merkle trees; the chain tree grows at natural depth, about 13 levels at 38 million leaves. The 16–20 depth figure that appears in the literature around this design is the M1 leaf-proof circuit parameter band, a different quantity from the chain tree’s depth.

The nullifier spent-marker structure is a sparse 4-ary Merkle tree keyed by the first 128 bits of each nullifier (64 levels, 2 bits per level). This 128-bit figure is a key width inside the structure, not a security level and not a security claim. A key collision costs liveness, never safety: two notes sharing a prefix cannot both be spent, but no double-spend becomes possible. Data-integrity hashes that never enter a proof (the transaction id, active from height one) may use SHA-256; this is recorded as “does not lower the ceiling,” not as a security upgrade.

4.2 Proofs

Spends carry FRI-based STARK proofs, produced with Plonky2 and carrying a recorded migration path to Plonky3. FRI’s soundness is conjectured; §8 states exactly what is and is not claimed. Recursion or aggregation, if introduced later, must itself stay within the symmetric-primitive discipline.

4.3 Note confidentiality

Where harvest-now-decrypt-later matters by construction, note confidentiality leans on ML-KEM-1024 (FIPS 203, NIST Category 5) for key encapsulation. Note blinding and encapsulation randomness come from OS-supplied randomness; deterministic derivation paths exist for test vectors only, and a production guard test enforces that boundary. A pre-genesis defect in this area (derivation from public transaction data) was found and fixed before any funds existed, and remains disclosed.

5The signature in the tree: the recorded tradeoff

For everything that must be signed, three post-quantum routes were weighed, and the decision is recorded as a tradeoff, not a victory. One-time hash-based signatures (OTS): the trust base is hash-only, but each key must not sign twice, which turns key lifetime into protocol machinery. Stateless hash-based signatures (SLH-DSA-SHAKE-128f, FIPS 205): hash-only, stateless, one parameter set, at the cost of significantly larger signatures; this is the route pinned in the tree. Stateless lattice signatures (ML-DSA-87, FIPS 204): stateless, many signatures per key, but resting on one further mathematical assumption (structured lattices), which this stack does not take. Where a post-quantum designer would reach for the lattice assumption, this stack declines it and pays in signature size instead. All three routes are post-quantum; no quantum strength figure is claimed for the in-tree scheme, for the same reason none is claimed for the proof system.

6The spend statement

For each spent note, the circuit proves, without revealing the witness:

The witness (the note’s value, randomness, nullifier keys and Merkle path) stays with the prover. Outputs are new note commitments whose plaintexts are encrypted to their recipients. Dummy inputs are fresh random notes carrying no data of any other note, so a spend discloses nothing about the wallet’s other notes beyond what the spent note itself necessarily reveals.

7Consensus and distribution

Distribution is proof-of-work. Genesis parameters are auditable artifacts: judges and constant tables are produced by a generator and never hand-edited. There is no premine, no VC allocation, no presale, no airdrop, no dev fee, and no block tax; allocation ratios live in consensus constants.

Block geometry is part of the security claim: the wire layer rejects proofs over 128 KiB and blocks over 2 MiB, fail-closed at decode. These caps are genesis constants; any migration that changes proof sizes must move both caps in the same genesis batch.

Sync modes are honestly separated: full replay verifies every historical proof; snapshot sync verifies current state against PoW-protected headers only and does not re-check history. A snapshot-synced node has not verified all history, and full replay remains available as the paranoid path.

8Security analysis

8.1 The headline and its decomposition

The stated level is 97–100-bit conjectured soundness (FRI). The number is a composite of three layers with different epistemic status:

8.2 What reaching higher levels would take

A 128-bit tier is a recorded path, not a claim: a wider challenge extension over the same base field (demonstrated in production by other Goldilocks³ FRI systems at 240–292 KiB proofs), a tool-computed regime-labeled figure for this exact configuration, external review, and the block-cap migration of §7 in the same genesis batch. Merely inflating the security-level knob can enlarge proofs without moving total soundness, which floors at the worst non-query term; that failure mode has been measured and recorded. Pairing-based wrappers that would shrink proofs are excluded by the primitive discipline regardless.

8.3 Standing caveats

Poseidon2 is an active cryptanalysis target; 2026 algebraic work improved a collision attack on one recommended 128-bit parameter set substantially while remaining short of breaking it. The frozen parameters keep the margins their authors state, new results are tracked, and parameter changes are project-level changes. The code is unaudited; the milestone that opens external scrutiny requires an independent party to reproduce every published number from a fresh clone.

9Delegated proving: stated in tiers

Proving may be delegated to a service, as an optimization only; a wallet can always prove locally. What crosses to a delegated prover is stated in tiers, each mechanically gate-tested against captured wire bytes:

Delegated proving makes no zero-disclosure claim. “The witness must never leave the device” is the production goal, via an MPC-of-prover route, pure client-side proving, or a circuit-statement change; it is not what the current PoC implements.

10Scope and limitations

No anonymity promise. Privacy is guaranteed by the protocol. Network-layer analysis, endpoint security, wallet opsec and compliance risk are not covered by any claim in this project. The code is unaudited, and the v0 wire formats carry known issues that are recorded, not hidden. All measured figures come from the project’s frozen verification archive; nothing here is a security assurance until the external-reproduction milestone closes.

11Status

The project is in pre-genesis engineering across thirteen public workspaces (Apache-2.0): tego-kernels, tego-circuits, tego-node, tego-mine, tego-wallet, tego-prover, tego-index, tego-scan, tego-verify, tego-bridge, tego-sdk, tego-pool and tego-faucet. Genesis follows only after the minimal provable statement reproduces bit-exact on this codebase; milestones are tracked by block height, not dates.

12References

  1. [1]E. Ben-Sasson, I. Bentov, Y. Horesh, M. Riabzev. Fast Reed-Solomon Interactive Oracle Proofs of Proximity (FRI), 2018.
  2. [2]L. Grassi, D. Khovratovich, R. Luecks, S. Maksimovic, C. Rechberger. Poseidon2: A More Efficient ZK-Friendly Hashing Method, 2023.
  3. [3]Plonky2 recursive proving system, Polygon Zero (open-source implementation).
  4. [4]ethSTARK Documentation, Cryptology ePrint Archive 2021/582 (the conjectured soundness lineage used here).
  5. [5]ePrint 2025/2046 and ePrint 2026/858 — disproofs of up-to-capacity soundness conjectures for FRI-family accumulators; ePrint 2025/2197 — list-size attacks on small-base-field systems; ePrint 2026/1367 — SoK of Johnson-bound soundness repricing.
  6. [6]ePrint 2026/306 — algebraic cryptanalysis progress against a Poseidon2 recommended parameter set.
  7. [7]NIST FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA).