POST-QUANTUM FIRST (FIPS 204 ML-DSA) · TEPHRA GOSSIP-ABOUT-GOSSIP FINALITY · GEODE KOALABEAR STARK PRIVACY
← SPR Registry · SPR-006 Protocol Engineering Design Active (Production Testnet)

Tephra Gossip-about-Gossip Ordering & Creator Signing Fence

Abstract — Asynchronous BFT event-DAG ordering via gossip-about-gossip and virtual voting, paired with an independent WAL-synced creator signing fence against equivocation after restore.

Document / Authors
SPR-006 · Silica Protocol Engineering
Updated 2026-11-19 · Ordering & Finality
Standards & Deployment
Protocol Engineering Design
Active (Production Testnet)
Audit & Source Scope
Internal Qualification Suite Only (No 3rd-Party Audit)
silica::consensus::hashgraph · observer::signing_fence

§1 · Anchoring Ordering Truth to Communication History

Leader-based slot and view-change BFT protocols suffer view-closure race conditions under asymmetric jitter and give rotating block proposers localized ordering discretion over mempool transaction placement. Tephra removes secondary commit-ordering rules by deriving global causal order deterministically from a shared gossip-about-gossip hashgraph DAG.

Consensus Architecture Ordering Determinism Architectural Disposition in Silica
Tephra Asynchronous Hashgraph DAG Pure graph strongly-seeing & virtual voting over signed gossip Selected Core Engine. Zero leader bottleneck; Crystallite executes committed Tephra order directly across deterministic MVCC lanes without re-ordering.
Rotating Leader / Slot View-Change External timeout timers + proposer-built blocks Rejected. Introduces leader censorship windows and liveness coupling to synchronous network round bounds.

Fork visibility analysis explicitly preserves incomplete-history semantics: when an event’s parent links cross a garbage-collection boundary or exhibit a mismatched creator chain, reference visibility queries (ForkAwarePast) return indeterminate (None) rather than falsely declaring an absence of forks from partial data.

§2 · Preventing Stale-Backup Equivocation with SigningFence

Even a mathematically safe BFT protocol will equivocate if an operator restores a snapshot backup and restarts a validator node at an already-signed sequence height. Silica isolates creator signing monotonicity on a dedicated, synchronously WAL-flushed RocksDB instance (SigningFence) stored independently of main ledger state.

Figure 1 — Independent WAL SigningFence & Backup Rollback Rejection
RESERVE -> SIGN ORDER 1. Persist next FenceHead (WAL sync) 2. Failed staging never signs 3. Release native sig only post-sync Height 2 -> 3 strictly monotonic INDEPENDENT ANCHOR REOPEN Verify exact FencePin tuple: (genesis, roster, epoch, creator) Compare WAL head ≥ external anchor Matches state recovery switches STALE BACKUP BLOCKED Height-1 backup vs Height-2 anchor: REOPEN REFUSED Conflicting sibling event at h=1: RESERVATION REFUSED
Every event body reserves its monotonic slot in synchronous WAL storage prior to invoking the native signer; failed reservations cannot produce valid consensus signatures.

§3 · Canonical Event Preimage (145 B) & Durable WAL Keys

Reserved event preimages intentionally exclude mutable derived classifications or transport metadata so the same authenticated DAG structure hashes identically on every validator:

Figure 2 — Reserved TephraEvent Body Encoding
145 Bytes Exact
0..34 34 B
ordering_checkpoint + creator
32 B checkpoint hash + 2 B big-endian u16 creator index
34..100 66 B
self_parent + other_parent
Two 33 B tagged options (0x00 + zeros | 0x01 + [32])
100..108 8 B
timestamp_ns
u64_be creator event timestamp in nanoseconds
108..145 37 B
payload_hash + tx_count
33 B tagged payload option + 4 B u32_be transaction count
Encoded via encode_body / decode_body; any nonzero padding under 0x00 tag fails decoding.
Figure 3 — SigningFence Persistent WAL Records
pin/v1 (98 B) · head/v1 (40 B)
0..64 64 B
genesis + roster
Immutable chain genesis digest + ValidatorSetSnapshot digest
64..98 34 B
epoch + creator
32 B ordering epoch identifier + u16_be creator index (FencePin)
head/v1 40 B
height + address
u64_be reserved height + 32 B event address (FenceHead)
indices 9 B / 33 B
h||height / prefix||addr
Monotonic height lookup + prefix-tagged address lookup keys
Pin tuple mismatches (foreign chain, roster, or epoch) refuse cold reopen immediately.

§4 · Fault & BFT Safety Boundaries

  • Byzantine Thresholds: Standard asynchronous BFT guarantees apply: consensus safety and finality liveness require strictly less than 1/3 Byzantine stake weight, assuming authenticated genesis validator identities.
  • Operator Storage Hygiene: Backup rollback resistance depends on keeping the SigningFence WAL directory outside ledger filesystem snapshot restores and supplying the external monotonic anchor checkpoint on restart.

§5 · Statement of Work Scope & Reproducible Verification

Statement of Work Deliverable Status Verification Evidence
Tephra Causal DAG Ordering, Strongly-Seeing Rounds & Journal Recovery Delivered cargo test --lib consensus::hashgraph:: passes 206/206 tests (18.08 s), covering fame, fork visibility, multi-branch repair, 64 MiB journal drains, restore & view safety
Independent WAL-Synced SigningFence & 145 B Reserved Preimage Delivered cargo test --lib observer::signing_fence:: passes 3/3 tests (0.02 s): foreign pins, stale backup rejection, and zero-leakage abort
Cross-Store Continuity with State Generation Switches (SPR-007) Delivered Verified alongside generation_switch_reconciles_crash_and_preserves_independent_signing_fence
Multi-Region WAN Byzantine Adversary Fault-Injection Harness Ongoing / Gated External formal BFT protocol audit & large-cluster chaos test campaign scheduled prior to mainnet unlock

References: Baird, The Swirlds Hashgraph Consensus Algorithm: Fair, Fast, Byzantine Fault Tolerant (Technical Report SWIRLDS-TR-2016-01); Crary, Verified Asynchronous Hashgraph Safety Formalizations.

All SPR Specifications ↗