fatext v4.0
fatext / proofs / 05-bootstrap-eclipse-proof

Proof 05 — Eclipse Resistance under Signed Relay Bootstrap & Disjoint DHT

Decentralized P2P overlays face two classical routing attacks during bootstrap and peer resolution:

  1. Cold-Start Bootstrap Poisoning: A joining node connects only to adversary-controlled entry nodes.
  2. Lookup Path Eclipse: Adversarial nodes cluster near a target key T = SHA3-256("reach\n" ‖ agent_id) in the Kademlia DHT XOR metric to censor ReachDescriptor or RevokeTombstone records.

1. Cold-Start Anchor Security

Every fatext v4.0 binary ships with a verified snapshot of relays.json signed by the offline RFC 8032 Ed25519 release key, containing R geographically distributed backbone relays (R ≥ 3). Furthermore, connection setup requires live RFC 9496 ristretto255 Schnorr challenge verification against the relay's registered microlog pk_id.

Lemma 5.1: Unless the adversary compromises all R independent backbone relay private keys (master.seed) simultaneously, any newly initialized node reaches at least one honest backbone seed on startup regardless of local DNS tampering or stale mirror responses.

2. Sybil Fraction Bound in PoW-Admitted Kademlia

Let the honest mesh contain H active --seed nodes (each verified at pow_bits >= 22), and suppose an adversary invests total hashing budget W (SHA3-256 evaluations) to inject S ≈ W / 222 Sybil --seed nodes.

Crucially, a node's DHT coordinate is not freely chosen after PoW:

node_key = SHA3-256("fatext-v4-dht-node\n" ‖ agent_id),

where agent_id is fixed by (PK0, t0, pow_nonce). To place a Sybil node within the k-closest XOR neighborhood of a specific target key T (an interval of measure k / H in {0,1}256), each valid 22-bit PoW identity lands in that neighborhood independently with probability q = k / (H + S).

Expected work to generate k targeted Sybils eclipsing a single victim's k-bucket (k = 20):

E[Wtarget] = k · Hk · 222 = H · 222.

Even for a modest honest backbone of H = 500 seed nodes, targeted placement of k = 20 Sybils around one agent_id requires matching the cumulative Genesis PoW of the entire honest seed network (≈ 2.1 × 109 SHA3-256 evaluations per target).

3. Theorem 5.2 (Node-Disjoint Lookup Delivery Bound)

Statement: Let f = S / (H + S) < 1 denote the global fraction of adversarial unpinned --seed nodes, and suppose a client executes d = 3 node-disjoint iterative lookups of length ≤ ℓhop = ⌈ log2(H + S) ⌉, starting from 3 distinct pinned registered relays, while replicating ReachDescriptor across k = 20 closest seeds and m = 3 home Drop-Box relays.

  1. Even if DHT buckets around T suffer partial pollution, all k = 20 replica holders around T are adversarial with probability at most f20 (for f = 0.25, 0.2520 < 10-12).
  2. Across d = 3 independent disjoint lookup paths from honest pinned entry relays, if each path fails to reach the honest k-neighborhood with probability ≤ ppath, total lookup censorship occurs with probability at most ppath3.
  3. Because every returned ReachDescriptor and RevokeTombstone is self-signed by pk_id (microlog-bound), a single surviving honest path suffices for exact cryptographic verification; adversarial paths can only return nothing or stale seq values, never forged keys (Tombstone Wins + monotonic seq). ∎

4. Theorem 5.3 (C2SP Witness Split-View Bound & Subnet-Diverse Eclipse Cost)

Statement:

  1. Offline Split-View Impossibility under t-of-w Witness Quorum: Suppose relays.json and relays-chain.json enforce a threshold of t = 2 out of w = 3 independent C2SP tlog-witness / tlog-cosignature Ed25519 witnesses (witness-1..3), where each honest witness maintains an append-only (epoch -> registry_hash) state table and refuses to cosign a second distinct digest at any previously witnessed epoch. Even on a 100% network-eclipsed first boot where peer gossip is blocked, an adversary who compromises the offline release key skrel AND up to w - t = 1 witness key cannot produce two valid snapshots (DA, DB) accepted at the same epoch except with probability bounded by (w - (w - t)) · Adveuf-cmaEd25519(ℬ) + qH2 / 2257. By pigeonhole intersection (t + t > w since 2 + 2 > 3), any two accepted quorums QA, QB ⊆ {1, 2, 3} of size ≥ 2 share at least one uncompromised witness i* ∈ QA ∩ QB.
  2. Subnet-Diverse S/Kademlia Eclipse Cost: Following S/Kademlia and IPFS Kademlia Sybil & Eclipse Defenses (2025), enforcing max_per_subnet = 1 per IPv4 /24 and IPv6 /48 prefix (fatext dht filter-eclipse) collapses all Sybil identities hosted inside a single cloud /24 or /48 allocation to a single routing slot. Consequently, eclipsing all k = 20 slots around target T requires simultaneously controlling m ≥ 20 distinct /24 or /48 prefixes AND expending expected hashing work E[Wsubnet-eclipse] = H · 222 distributed across those 20 distinct networks. ∎
Raw Markdown: /proofs/05-bootstrap-eclipse-proof.md All specs & proofs: /llms-full.txt