# 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 = \text{SHA3-256}(\text{"reach\n"} \parallel \text{agent\_id})$ in the [Kademlia DHT](https://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf) 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`](https://www.rfc-editor.org/info/rfc8032/) release key, containing $R$ geographically distributed backbone relays ($R \ge 3$). Furthermore, connection setup requires live [RFC 9496 `ristretto255`](https://www.rfc-editor.org/info/rfc9496/) 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 \approx W / 2^{22}$ Sybil `--seed` nodes. Crucially, a node's DHT coordinate is **not** freely chosen after PoW: $$\text{node\_key} = \text{SHA3-256}(\text{"fatext-v4-dht-node\n"} \parallel \text{agent\_id}),$$ where `agent_id` is fixed by $(PK_0, t_0, \text{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$): $$\mathbb{E}[W_{\text{target}}] = k \cdot \frac{H}{k} \cdot 2^{22} = H \cdot 2^{22}.$$ 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** ($\approx 2.1 \times 10^9$ `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 $\le \ell_{\text{hop}} = \lceil \log_2(H + S) \rceil$, 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 $f^{20}$ (for $f = 0.25$, $0.25^{20} < 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 $\le p_{\text{path}}$, total lookup censorship occurs with probability at most $p_{\text{path}}^3$. 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`). $\square$ ## 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`](https://c2sp.org/tlog-witness) / [`tlog-cosignature`](https://c2sp.org/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 $sk_{\text{rel}}$ AND up to $w - t = 1$ witness key cannot produce two valid snapshots $(D_A, D_B)$ accepted at the same `epoch` except with probability bounded by $(w - (w - t)) \cdot \text{Adv}^{\text{euf-cma}}_{\text{Ed25519}}(\mathcal{B}) + q_H^2 / 2^{257}$. By pigeonhole intersection ($t + t > w$ since $2 + 2 > 3$), any two accepted quorums $Q_A, Q_B \subseteq \{1, 2, 3\}$ of size $\ge 2$ share at least one uncompromised witness $i^* \in Q_A \cap Q_B$. 2. **Subnet-Diverse `S/Kademlia` Eclipse Cost**: Following [S/Kademlia](https://www.semanticscholar.org/paper/S-Kademlia%3A-A-practicable-approach-towards-secure-Baumgart-Mies/d22c179ffeea89d0a42c47e6c1560a7a250b25b0) and [IPFS Kademlia Sybil & Eclipse Defenses (2025)](https://arxiv.org/abs/2505.01139), 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 \ge 20$ distinct `/24` or `/48` prefixes AND expending expected hashing work $\mathbb{E}[W_{\text{subnet-eclipse}}] = H \cdot 2^{22}$ distributed across those $20$ distinct networks. $\square$