Expanded specification (planned, not in this repository). An expanded companion (03-expanded-sections-v18_3.md, §14) was planned to cover: Noise Protocol XX_KEM with ML-KEM-768, GossipSub 1.1 with anti-flood scoring, Kademlia DHT with ML-DSA-44 signed records, structured validator mesh, bandwidth budgets, anti-eclipse, and monitoring metrics. That companion is not part of this repository and carries no normative authority; this chapter is the authoritative in-repo specification.
The network layer is the physical substrate on which all cryptographic security, consensus, and monetary policy specified in the preceding sections rest. A block propagation failure can paralyze consensus. A vulnerability in peer authentication can enable eclipse attacks. An identity leak at the transport layer can break the pseudonymity protected by the pUTXO architecture. This section specifies the P2P network with the same engineering precision applied to the consensus (§3) and cryptography (§6) protocols.
The two networks — Bond RSC and Aevum ESC — share the same underlying networking library (libp2p, implemented in Rust) but operate under radically distinct requirement envelopes:
| Dimension | Bond RSC | Aevum ESC |
|---|---|---|
| Primary objective | Maximum decentralization — consumer hardware, residential internet | Minimum latency — sub-200ms propagation, 5-second BFT |
| Bandwidth | ~13 KB/s provisioning envelope; ~6–8 KB/s steady-state (§14.8.1) | ~1.3 MB/s inbound steady-state (≈11 Mbps; 25 Mbps provisioned) (§14.8.2) |
| Peer set | Permissionless and unlimited — any full node | Permissionless for participation but meritocratic via D_score |
| Topology | Random unstructured mesh + Kademlia DHT for discovery | Structured validator mesh + general DHT |
| Finality | Probabilistic (PoW Nakamoto) | Deterministic per block (BFT ⌊2/3⌋+1) |
| Block size | 2 MB (hard cap) | 12 MB gas-bounded ceiling; ~4 MB typical @ 50% target (§14.8.2) |
Axiom 2 — Structural Violation in Standard libp2p. The libp2p Noise protocol, as implemented in the canonical version, uses X25519 (Curve25519 ECDH) for the session establishment handshake (standard XX). Curve25519 is vulnerable to Shor's algorithm. Deploying standard libp2p would violate Axiom 2 (Quantum Threat as Present Danger) by introducing the sole point of elliptic-curve exposure in the entire stack. This section specifies a Custom PQC Noise Protocol (XX_KEM) that replaces X25519 with ML-KEM-768 (NIST FIPS 203) in all session handshakes. This is a level-0 protocol change — mandatory, non-configurable.
§14.1. Protocol Stack: Layered View
┌─────────────────────────────────────────────────────────┐
│ APPLICATION LAYER │
│ Bond: Block Propagation · Tx Relay · P2P Relay (HTLC) │
│ Aevum: Block Proposal · Attestation · Bundle Relay │
├─────────────────────────────────────────────────────────┤
│ PUBSUB / GOSSIP LAYER │
│ Bond: GossipSub 1.1 (topics: blocks, txs, systemic) │
│ Aevum: GossipSub 1.1 (topics: blocks, attestations, │
│ bundles) + direct Validator Mesh (§14.6.2) │
├─────────────────────────────────────────────────────────┤
│ PEER MANAGEMENT LAYER │
│ Kademlia DHT (peer discovery + routing) │
│ Identify Protocol (peer metadata exchange) │
│ Ping / Keep-Alive │
├─────────────────────────────────────────────────────────┤
│ SECURITY LAYER │
│ Noise Protocol XX_KEM (ML-KEM-768 + ML-DSA-44/65) │
│ PeerID: SHA3-256(ML-DSA public key) │
├─────────────────────────────────────────────────────────┤
│ MULTIPLEXING LAYER │
│ Yamux (stream multiplexing over a single connection) │
├─────────────────────────────────────────────────────────┤
│ TRANSPORT LAYER │
│ QUIC (primary: NAT traversal, 0-RTT, native streams) │
│ TCP/TLS-like fallback (Noise over TCP) │
└─────────────────────────────────────────────────────────┘
Each layer is specified in the subsections below. Implementers must treat this stack as complete and mandatory — layer substitutions are not permitted without hard-fork approval (Tier 0).
§14.2. Transport Layer
§14.2.1. QUIC as Primary Transport
The QUIC protocol (RFC 9000) is the primary transport for both networks:
| Property | Specification | Rationale |
|---|---|---|
| Version | QUIC v1 (RFC 9000) | Stable version, widely implemented, native support in tokio-based Rust |
| Underlying TLS | Replaced by Noise XX_KEM (§14.3) | Standard QUIC uses TLS 1.3 with X25519 — Axiom 2 violation. The TLS handshake is replaced by the custom Noise PQC |
| Ports | Bond: 8333/UDP, Aevum: 30303/UDP | Reuses recognizable ports; firewall-friendly |
| 0-RTT | Disabled | 0-RTT replay attacks are incompatible with the deterministic PQC security model; the 1-RTT cost is acceptable |
| Connection migration | Enabled | Allows mobile validators (dynamic IP) to maintain sessions across IP address changes without reconnecting |
| Stream multiplexing | Native QUIC (replacing Yamux when QUIC is available) | QUIC streams are natively multiplexed; Yamux is used only on TCP fallback |
| Max concurrent streams | Bond: 64 · Aevum validator: 256 · Aevum full node: 128 | Validators need more streams for parallel attestation |
Path MTU detection. QUIC nodes perform Path MTU Discovery (PMTUD, RFC 8899). Configured minimum MTU is 1,200 bytes (QUIC mandatory minimum). 2 MB Bond blocks are fragmented by QUIC into multiple datagrams — reassembly is transparent to the application layer.
§14.2.2. TCP as Fallback
For peers behind firewalls that block UDP, the node supports TCP transport:
| Property | Specification |
|---|---|
| Ports | Bond: 8333/TCP, Aevum: 30303/TCP |
| Security | Noise XX_KEM over raw TCP (not TLS) |
| Multiplexing | Yamux over the established Noise connection |
| Socket buffer | SO_SNDBUF / SO_RCVBUF: 256 KB (Bond), 1 MB (Aevum validator) |
| Keepalive | TCP_KEEPIDLE = 60s, TCP_KEEPINTVL = 10s, TCP_KEEPCNT = 5 |
The TCP fallback presence is detected automatically — the node attempts QUIC first with a 3-second timeout, then falls back to TCP if no UDP ACK is received.
§14.2.3. NAT Traversal
Full-node reachability on home networks (NAT routers) is critical for Bond RSC decentralization. The stack implements three cascading mechanisms:
Mechanism 1 — QUIC NAT Hole-Punching (RFC 9369). Two peers behind NAT can establish a direct connection via address coordination through a public relay. The libp2p AutoNAT/Hole-Punching is the primary mechanism.
Mechanism 2 — Circuit Relay v2 (libp2p relay protocol). If hole-punching fails, traffic is routed through a public relay node. The relay does not see the content (protected end-to-end by Noise XX_KEM). A set of dedicated relay nodes is maintained by the team during the bootstrap phase; post-Phase 1 any node can operate as a voluntary relay.
Mechanism 3 — UPnP / NAT-PMP. On home routers that support UPnP, the node automatically attempts to open a port mapping. Enabled by default, disablable via configuration (operators in corporate environments may prefer to disable).
Reachability indicator. The node continuously monitors whether it receives inbound connections. If exclusively outbound for more than 10 minutes, the node displays a configuration warning. Exclusively-outbound nodes are not penalized by the protocol — they contribute to the network but do not accept new inbound peers.
§14.3. Security Layer: Noise Protocol XX_KEM (PQC)
§14.3.1. Motivation: Eliminating X25519
The standard Noise protocol (NK, XX, etc. specifications) establishes shared secrets via a DH function DH(key_pair, public_key) and derives authentication from mixing the parties' static DH keys (the es/se/ss patterns). Neither construction survives the post-quantum requirement: X25519 is Shor-breakable, and the static keys in this stack are ML-DSA signature keys, which cannot perform any DH or KEM operation. The handshake therefore cannot be "standard Noise XX with the DH function swapped for a KEM."
What XX_KEM actually is. Session confidentiality is established by an ephemeral ML-KEM-768 (NIST FIPS 203, Level 3) key exchange — API (ciphertext, shared_secret) = KEM.Encaps(public_key) / shared_secret = KEM.Decaps(private_key, ciphertext) — and mutual authentication is provided by ML-DSA signatures over the handshake transcript (§14.3.3). This is a signature-authenticated ephemeral-KEM key exchange in the SIGMA / TLS 1.3 family (structurally KEMTLS-adjacent), not a static-key Noise pattern. The name XX_KEM is retained only for its wire-topology resemblance to Noise XX (three messages, e/s exchange order); the security argument MUST be made in the signed-transcript model (SIGMA), not the DH-Noise model.
A true static-KEM-authenticated Noise (authentication carried by static KEM keys rather than signatures) is the PQNoise construction (Angel, Dowling, Hülsing, Schwabe, Weber — Post-Quantum Noise, ACM CCS 2022). This stack deliberately does not use PQNoise: identity keys are ML-DSA (already required ecosystem-wide for on-chain verification, §6.2.1), so authentication is by signature. Auditors must apply the SIGMA/TLS-1.3 security model, not a Noise-XX DH model, and not the earlier informal "Noise-KEM" framing (whose attribution could not be verified and is withdrawn).
Formal-review pending (ADR-0005 counter-sign).
§14.3.2. Noise XX_KEM: Formal Specification
PeerID. Each node is identified by a PeerID derived from its long-term identity key:
identity_key_pair = ML-DSA-44.KeyGen(TRNG_seed) // Bond nodes: ML-DSA-65
PeerID = SHA3-256(ML-DSA.public_key)[0:32] // 32 bytes, hex-encoded
The PeerID is a hash of the public key — not the key itself. This avoids publishing the full key (1,312 bytes ML-DSA-44 / 1,952 bytes ML-DSA-65) in 32-byte identification messages.
Ephemeral session keys. For each new session, the initiator and responder generate ephemeral ML-KEM-768 key pairs:
// Ephemeral key-pair type
struct EphemeralKEMKeyPair {
ek: [u8; 1184], // ML-KEM-768 encapsulation key (public)
dk: [u8; 2400], // ML-KEM-768 decapsulation key (private, never transmitted)
}
XX_KEM handshake (3 messages):
// Legend:
// -> : initiator → responder
// <- : responder → initiator
// e_kem : ephemeral ML-KEM key (public, 1184 bytes)
// ct : ML-KEM.Encaps ciphertext (1088 bytes)
// ss : shared secret (32 bytes, derived from ML-KEM)
// s : ML-DSA static identity key
// sig : ML-DSA-44 signature (2420 bytes) over the handshake hash
// [payload] : payload encrypted with ChaCha20-Poly1305 using keys derived from ss
// Message 1 — Initiator announces ephemeral public key
-> e_kem_initiator // 1184 bytes
// Message 2 — Responder encapsulates for the initiator, announces its own
// ephemeral key, authenticates its identity
<- ct_for_initiator, // 1088 bytes (KEM encaps)
e_kem_responder, // 1184 bytes
[s_responder_pubkey, sig_responder] // 1312 + 2420 bytes, encrypted
// After Message 2, the initiator has:
// ss_ie = ML-KEM-768.Decaps(dk_eph_init, ct_for_initiator)
// k1 = HKDF-SHA3-256(ss_ie, "noise_kem_k1") // encrypts the Msg-2 payload
// The responder cannot decrypt the initiator's identity yet.
// Message 3 — Initiator encapsulates for the responder, authenticates identity
// The Msg-3 payload is encrypted under
// k2 = HKDF-SHA3-256(ss_ie || ss_ri, "noise_kem_k2"); the responder derives
// ss_ri from ct_for_responder (below) before decrypting the payload.
// Sizes shown are ML-DSA-44 (Aevum); Bond nodes use ML-DSA-65 → 1952 + 3309 bytes.
-> ct_for_responder, // 1088 bytes (KEM encaps)
[s_initiator_pubkey, sig_initiator] // 1312 + 2420 bytes (ML-DSA-44); Bond: 1952 + 3309
// After Message 3, both derive:
// ss_ri = ML-KEM-768.Decaps(dk_eph_resp, ct_for_responder)
// session_key = HKDF-SHA3-256(ss_ie || ss_ri, "noise_kem_session")
//
// // DIRECTION-RELATIVE AEAD keys (mandatory): a single symmetric key used in
// // both directions with a fixed-prefix nonce would cause catastrophic
// // key+nonce reuse in ChaCha20-Poly1305. Two keys are derived, bound to the
// // transcript hash h (§14.3.3):
// k_i2r = SHA3-256(session_key || h || "i2r") // initiator → responder
// k_r2i = SHA3-256(session_key || h || "r2i") // responder → initiator
//
// // Role assignment:
// // Initiator: send_key = k_i2r, recv_key = k_r2i
// // Responder: send_key = k_r2i, recv_key = k_i2r
// // so initiator.send_key == responder.recv_key and vice-versa.
// // Each key carries an INDEPENDENT nonce counter, so the (key, nonce) pairs
// // in the two directions can never collide.
Session state after handshake:
struct NoiseKEMSession {
send_key: [u8; 32], // ChaCha20-Poly1305 key for sending (k_i2r or k_r2i per role)
recv_key: [u8; 32], // ChaCha20-Poly1305 key for receiving (the opposite direction)
send_nonce: u64, // independent per-key counter; monotonic; fails on wraparound
recv_nonce: u64, // independent per-key counter (paired with recv_key)
remote_peer_id: [u8; 32],
remote_identity_pk: Vec<u8>, // peer's ML-DSA-44/65 public key
session_established: Instant,
}
Transport AEAD. All post-handshake frames are encrypted with ChaCha20-Poly1305 (RFC 8439):
- Nonce: 96 bits = 32-bit zero constant ‖ 64-bit send_nonce (little-endian). Because
send_keyandrecv_keyare direction-separated (k_i2r≠k_r2i), the two directions never share a key, so an identical nonce value in each direction encrypts under a different key — no (key, nonce) pair is ever reused. - AAD: frame sequence number (8 bytes)
- Session limit: session is terminated and renegotiated after 2^64 - 1 frames (impossible in practice) or after 7 days (periodic rekey) Why ChaCha20-Poly1305 instead of AES-GCM? AES-256-GCM under Grover has ~128-bit post-quantum security — acceptable. ChaCha20-Poly1305 is chosen because (a) it does not require hardware AES-NI, making it secure and performant on CPUs without AES hardware (including Raspberry Pi 4 and generic ARM devices that run Bond full nodes), and (b) it is resistant to timing side-channels without AES-NI. Post-quantum security of both is equivalent (~128 bits).
§14.3.3. Identity and Authenticity Verification
PeerID authenticity is verified during the handshake via ML-DSA signatures over an incrementally-hashed transcript h. The transcript is not merely "all preceding messages": it absorbs every wire field in emission order, including the signer's own ephemeral key and KEM ciphertext (which belong to the same message as the signature) and both identity public keys, so that a signature commits to the entire session context — the precondition for SIGMA/TLS-1.3-style MITM, unknown-key-share, and downgrade resistance.
// Transcript initialization and absorption (wire order)
h_0 = SHA3-256("Noise_XXsig_ML-KEM-768_ML-DSA_SHA3-256") // protocol-name binding
h_i = SHA3-256(h_{i-1} || field_i) // absorb each field once
// Absorbed fields, in order:
// 1. e_kem_initiator (Msg 1)
// 2. ct_for_initiator (Msg 2, KEM ciphertext)
// 3. e_kem_responder (Msg 2, the SIGNER's OWN ephemeral key)
// 4. s_responder_pubkey (Msg 2, responder identity)
// --> sig_responder = ML-DSA.Sign(sk_resp, h_after_field_4) // covers 1..4
// 5. ct_for_responder (Msg 3, KEM ciphertext)
// 6. s_initiator_pubkey (Msg 3, initiator identity)
// --> sig_initiator = ML-DSA.Sign(sk_init, h_after_field_6) // covers 1..6
- In Message 2, the responder signs
hafter absorbing fields 1–4 with its ML-DSA-44 identity key (or ML-DSA-65 for Bond nodes). Because field 3 (e_kem_responder) and field 2 (ct_for_initiator) are inside the transcript, the responder's signature binds its own ephemeral key and the KEM ciphertext, not only the initiator's Message 1. - In Message 3, the initiator signs
hafter absorbing fields 1–6 — binding both ephemeral keys, both KEM ciphertexts, and both identity public keys. - The AEAD session keys are bound to the same transcript:
k_i2r/k_r2iare derived fromsession_key || h(§14.3.2), so any transcript divergence yields a session-key mismatch in addition to a signature-verification failure. - After the handshake, each peer verifies that the other's identity key hashes to the PeerID announced in the DHT:
SHA3-256(identity_pk) == announced_peer_id.
If verification fails, the connection is closed immediately without propagating the failure — preventing oracle attacks via timing.
Formal-review pending (ADR-0005 counter-sign).
Identity key rotation. Operators can rotate their ML-DSA identity key (e.g., after suspected compromise). The rotation announces the new PeerID via DHT. Existing peers terminate old connections and reconnect to the new PeerID after verification. Validator D_score is bound to validator_registration_pubkey (ML-DSA-44 on Aevum), not to the network PeerID — P2P key rotation does not affect D_score.
§14.4. Peer Discovery: Kademlia DHT
§14.4.1. DHT Parameters
Both networks use Kademlia DHT (libp2p-kad) for peer discovery, with parameters calibrated to their distinct profiles:
| Parameter | Bond RSC | Aevum ESC | Description |
|---|---|---|---|
k (bucket size) |
20 | 20 | Number of peers per Kademlia bucket |
α (concurrency) |
3 | 5 | Parallelism in lookups |
replication_factor |
20 | 20 | DHT record replication |
record_TTL |
48 hours | 24 hours | TTL of peer records in the DHT |
provider_record_TTL |
24 hours | 12 hours | TTL of provider records |
query_timeout |
60 seconds | 30 seconds | Per-DHT-query timeout |
| Mode | Server + Client | Server + Client | All full nodes run as server |
| Key space | SHA3-256 (32 bytes) | SHA3-256 (32 bytes) | Kademlia key = SHA3-256(PeerID) |
SHA3-256 key space. Standard Kademlia uses SHA-1 or SHA-256 for the key space. Here it is SHA3-256 — the same hash function as the rest of the stack, eliminating dependencies on multiple hash algorithms and simplifying audit.
Signed DHT records. Every peer record published to the DHT is an ML-DSA-signed record: record = { peer_id, listen_addrs, seq, proof_of_peerid, expiry } with sig = ML-DSA.Sign(sk_identity, SHA3-256(canonical_encode(record))) (ML-DSA-44 on Aevum, ML-DSA-65 on Bond). On receipt a node MUST (1) verify sig against the record's embedded identity public key, (2) check SHA3-256(identity_pk) == peer_id, (3) verify the Proof-of-PeerID puzzle (§14.4.3), and (4) reject stale records (a lower seq than one already cached, or a record past expiry/record_TTL). Records failing any check are dropped and the advertising peer is score-penalized.
§14.4.2. Bootstrap Nodes
The classic bootstrap problem (how to find the first peer when the DHT is empty) is solved with bootstrap nodes hardcoded in the node binary:
| Network | Bootstrap nodes | Expected SLA |
|---|---|---|
| Bond RSC | 8 geographically distributed nodes (2 per inhabited continent) | 99.9% uptime; operated by the team during Phase 0–1 |
| Aevum ESC | 10 nodes (coincident with genesis validators, Appendix 08 §2) | 99.9% uptime |
Bootstrap nodes are regular full nodes — with no protocol privileges or special access. They are the entry point, not a point of trust. An attack bringing down all bootstrap nodes prevents new nodes from joining the network but does not affect already-connected peers.
Post-Phase 2 hardening. Starting in Phase 2, the node binary will include a Bootstrap Node Diversity mechanism — the list of bootstrap nodes is governable via DAO proposal, and Arca firmware releases include an updated list at each release. Dependence on team-operated bootstrap nodes declines as the network grows.
§14.4.3. Sybil Protection in the DHT
The Kademlia DHT is susceptible to Sybil attacks where an adversary populates buckets with malicious peers, redirecting lookups. The following defenses apply:
Defense 1 — Per-prefix peer limitation (addrman-style grouping). Adopting Bitcoin's addrman model, buckets are grouped by the coarser /16 IPv4 (or /32 IPv6) prefix, and each bucket accepts at most 2 peers per /16 group; the finer /24 IPv4 / /48 IPv6 cap of 1 peer is retained as a sub-limit. Buckets are rotated on a random salt reseeded each record_TTL, so an adversary cannot durably pin positions. This forces genuine IP-address diversity across many autonomous systems, not merely across adjacent /24s.
Defense 2 — Resource-bound PeerID (Proof-of-PeerID). A PeerID hash alone imposes no meaningful cost: landing a PeerID in a target bucket only requires matching the ~log₂(N) prefix bits that define that bucket — not a 256-bit search — and ML-DSA keygen (~10 ms) is cheap and fully parallel, so an unbound attacker grinds tens of thousands of qualifying keys in seconds. To make identity manufacture costly, each PeerID advertised to the DHT MUST carry a Proof-of-PeerID puzzle: a nonce w such that
SHA3-256(identity_pk || w) < 2^256 / 2^difficulty_bits
where difficulty_bits is a tunable network parameter (recommended genesis value 20 bits ≈ ~1 M hashes per accepted identity; recommended, pending ADR-0005 ratification). The puzzle binds each admitted identity to real computational work (not to a free ~10 ms keygen), so populating a k=20 bucket across many /16 groups now costs ≈ 20 × 2^difficulty_bits hashes rather than ~20 keygens. difficulty_bits is retargetable by governance as commodity hashrate grows. Nodes reject any peer record whose puzzle does not verify. (The earlier claim that bucket placement required "solving a search problem in a 256-bit SHA3-256 space" was incorrect and is withdrawn — the search is over the bucket-defining prefix bits only, which is why an explicit work-bound is required.)
Formal-review pending (ADR-0005 counter-sign).
Defense 3 — Validator PeerID verified via stake. For the Aevum ESC, validators with D_score registered in the staking contract have their PeerIDs verifiable against the on-chain registration key. A peer claiming to be a high-D_score validator but without corresponding on-chain registration is flagged as "unverified validator" and its blocks/attestations are treated with additional suspicion.
§14.5. Gossip Protocol: GossipSub 1.1
§14.5.1. Overview
Both networks use GossipSub v1.1 for message propagation — the libp2p pubsub protocol that combines a low-latency peer mesh for frequent messages with metadata gossip (IHAVE/IWANT) for recovery of lost messages.
Topics defined per network:
| Network | Topic | Content | Pre-relay validation |
|---|---|---|---|
| Bond RSC | bond/blocks/1 |
Full blocks (~2 MB) | PoW header valid (SHA3-256 < target) |
| Bond RSC | bond/txs/1 |
Individual transactions (~5.3–14 KB) | ML-DSA-65 signature valid |
| Bond RSC | bond/systemic/1 |
OP_VETO, HTLC resolution (Expressway) | Signature valid + Expressway eligibility check |
| Aevum ESC | aevum/blocks/1 |
Block proposals (~2–12 MB) | Proposer D_score valid + ML-DSA-44 sig |
| Aevum ESC | aevum/attestations/1 |
Validator attestations (~2.4 KB each) | ML-DSA-44 sig + validator registered |
| Aevum ESC | aevum/bundles/1 |
Bundler submissions (~10–100 KB) | Bundler reputation ≥ threshold |
| Both | relay/intentions/1 |
P2P Relay HTLC swap intentions | ML-DSA signature |
Pre-relay validation. GossipSub 1.1 supports application-level validation — before propagating a message to other peers, the node runs a lightweight validation. Invalid messages are dropped locally and the sending peer receives a score penalty. This is critical: without pre-relay validation, an adversary could use any peer as an involuntary amplifier of invalid data.
§14.5.2. GossipSub Mesh Parameters
| Parameter | Bond RSC | Aevum ESC | Description |
|---|---|---|---|
D (degree) |
8 | 12 | Number of peers in the mesh of each topic |
D_low |
6 | 8 | Below this: graft new peers |
D_high |
12 | 16 | Above this: prune peers |
D_lazy |
6 | 8 | Lazy peers (receive IHAVE but not full messages) |
heartbeat_interval |
1.0s | 0.5s | Heartbeat frequency for mesh maintenance |
history_length |
5 | 10 | Number of history windows retained |
history_gossip |
3 | 5 | Windows included in IHAVE gossip |
fanout_ttl |
60s | 30s | Fanout TTL for topics with no mesh peers |
gossip_factor |
0.25 | 0.25 | Fraction of lazy peers receiving gossip per heartbeat |
Justification for D=8/12. For Bond RSC with a 20-min block time, D=8 is sufficient — block propagation is not time-critical (the next block is 20 minutes away). For Aevum ESC with a 5-second block time, the BFT finality budget (Appendix 08 §8) decomposes into proposal propagation ≤ 500 ms, attestation aggregation ≤ 3,000 ms, and margin, all inside the ≤ 5 s total-finality bound (§14.1). D=12 sizes the GossipSub mesh so that attestations reach the ⌊2N/3⌋+1 quorum within the 3,000 ms attestation-aggregation sub-budget; the tighter 500 ms proposal-propagation sub-budget is served by the direct Validator Mesh, not GossipSub alone (§14.6.2).
§14.5.3. Peer Scoring
GossipSub 1.1 implements a peer scoring mechanism that penalizes malformed behavior:
// Scoring parameters — Bond RSC
pub const GOSSIPSUB_PARAMS_BOND: GossipsubScoringParams = GossipsubScoringParams {
// Per-topic behavior
topic_score_params: {
"bond/blocks/1": TopicScoreParams {
topic_weight: 1.0,
time_in_mesh_weight: 0.03, // Reward stable peers in the mesh
time_in_mesh_quantum: 1.0, // 1 second per unit
time_in_mesh_cap: 3600.0, // Cap: 1 hour of mesh time
first_message_deliveries_weight: 1.0,
first_message_deliveries_decay: 0.5,
first_message_deliveries_cap: 2000.0,
mesh_message_deliveries_weight: -1.0, // Penalize delivery failure
mesh_message_deliveries_decay: 0.5,
mesh_message_deliveries_cap: 100.0,
mesh_message_deliveries_threshold: 5.0,
mesh_message_deliveries_window: 10.0,
mesh_failure_penalty_weight: -1.0,
mesh_failure_penalty_decay: 0.5,
invalid_message_deliveries_weight: -100.0, // Severe penalty for invalid
invalid_message_deliveries_decay: 0.3,
}
},
// General peer behavior
decay_interval: 12.0, // Decay every 12 seconds
decay_to_zero: 0.1, // Score decays to zero if inactive
retain_score: 3600.0, // Retain score for 1 hour after disconnect
app_specific_weight: 1.0,
ip_colocation_factor_weight: -5.0, // Penalize multiple peers on same IP
ip_colocation_factor_threshold: 2.0,
behaviour_penalty_weight: -10.0,
behaviour_penalty_decay: 0.2,
graft_flood_threshold: 10.0,
};
Peer score < -1000: Peer is graft-pruned — removed from the mesh and ignored for peer_score_inspect_period (default: 60 seconds). Persistently malicious peers are banned for 24 hours via a banned-peers list persisted to disk.
§14.5.4. Message Flood Protection (Rate Limiting)
Each peer connection is subject to per-topic rate limiting:
| Topic | Limit per peer | Window | Action on exceed |
|---|---|---|---|
bond/blocks/1 |
3 messages | 60 seconds | Score penalty + rejection |
bond/txs/1 |
200 messages | 60 seconds | Score penalty |
bond/systemic/1 |
10 messages | 60 seconds | Severe score penalty (-50) |
aevum/blocks/1 |
12 messages | 60 seconds | Score penalty |
aevum/attestations/1 |
100 messages | 60 seconds | Score penalty |
aevum/bundles/1 |
50 messages | 60 seconds | Score penalty |
Limits for bond/blocks/1 and aevum/blocks/1 reflect legitimate block-production rates: Bond produces ~3 blocks/hour (1 every 20 min), Aevum produces 12 blocks/minute. The per-topic caps are not a uniform multiple of the expected rate — headroom is sized per topic to absorb reorgs, duplicate relays, and short-window bursts. bond/blocks/1 permits 3 messages/60 s against ~0.05 expected blocks/60 s (~60× headroom, deliberately generous because Bond blocks arrive irregularly and can be re-relayed across reorgs), whereas aevum/blocks/1 permits 12 messages/60 s against the 12 blocks/min steady rate (~1×, a deliberately tight cap — Aevum's deterministic BFT finality admits no reorgs, so no per-slot duplication is expected).
§14.6. Block Propagation
§14.6.1. Bond RSC: Compact Block Protocol
With 2 MB blocks and ~5.5 KB transactions (the canonical single-sig wire size: 3,309-byte ML-DSA-65 signature + 1,952-byte pubkey revealed in the witness + outpoint/output/header fields, per §2.2.3 / CONSTANTS bond.tx_wire_size), a Bond block contains ~363 transactions. Most full-node peers already have these transactions in their mempool before the block is mined.
Protocol:
Phase 1 — Compact Announcement:
// Compact block structure (typical size: ~12 KB vs 2 MB full block)
CompactBlock {
header: BlockHeader, // 80 bytes (previous hash, merkle root, timestamp, bits, nonce)
nonce: u64, // Nonce for short IDs (anti-preimage in the mapping)
short_ids: Vec<ShortTxID>, // 6 bytes per txid: SipHash-2-4(txid, nonce) truncated to 48 bits
prefilled_txs: Vec<(u16, Transaction)>, // Transactions the node knows the peer lacks
}
The 6-byte (48-bit) ShortTxID provides a collision probability of ~2⁻⁴⁸ per transaction pair. For a ~363-transaction block the birthday bound gives P(any collision) ≈ n(n−1)/2 · 2⁻⁴⁸ = 363·362/2 · 2⁻⁴⁸ ≈ 2.3×10⁻¹⁰ — negligible.
Phase 2 — Reconstruction:
The receiving peer attempts to reconstruct the full block using:
- Transactions in its mempool (identified by the short IDs)
prefilled_txsincluded by the sender If any transaction is missing, the receiver sendsgetblocktxns(block_hash, missing_indices)and the sender responds with the missing transactions.
Typical bandwidth savings:
- Full block via broadcast: 2 MB × D peers = 2 MB × 8 = 16 MB per block
- Compact block + partial responses: ~12 KB × 8 + ~50 KB responses = ~150 KB per block (99% reduction) Headers-First Sync. For initial sync (IBD — Initial Block Download), new nodes use the headers-first protocol:
- Request headers in batches of 2,000 (each header = 80 bytes; 2,000 × 80 = 160 KB per batch)
- Validate the header chain (PoW verification)
- Download full blocks in parallel from multiple peers This lets a new node quickly detect the canonical chain without downloading full blocks from invalid chains.
§14.6.2. Aevum ESC: Direct Validator Mesh + GossipSub
The Aevum ESC operates under a severe latency constraint: blocks, proposals, and attestations must circulate within the ≤5-second total-finality budget (Appendix 08 §8) for BFT to finalize. That budget decomposes (§14.5.2) into a 500 ms proposal-propagation sub-budget and a 3,000 ms attestation-aggregation sub-budget. General GossipSub (with D=12 random peers) may not be sufficient to ensure ⌊2N/3⌋+1 validators receive a proposal within the 500 ms proposal-propagation sub-budget (Appendix 08 §8) — which is why the direct Validator Mesh below carries proposals and attestations.
The protocol implements a two-tier topology:
Tier 1 — Direct Validator Mesh:
Active validators (with D_score > 0) maintain direct point-to-point connections with one another — a connectivity graph that is independent of GossipSub:
// Validator Mesh connectivity
// Each validator maintains direct connections with all other active validators
// For N=50 validators: 50×49/2 = 1,225 total mesh connections
// Per validator: 49 direct connections (small O(N) — acceptable for N≤200)
For N > 200 validators (future growth), the topology switches to a partial connection graph where each validator maintains direct connections with min(N-1, 50) peers, selected by the Kademlia routing algorithm (DHT-neighbor peers are preferred — they already have established connections).
Tier 2 — GossipSub for Full Nodes:
Non-validator full nodes (that do not propose/attest blocks) receive blocks and attestations via standard GossipSub. They do not participate in the direct Validator Mesh.
Block Proposal Propagation:
T=0ms Selected proposer builds block
T=0ms Proposer broadcasts via: (a) direct Validator Mesh to all N-1 validators
(b) GossipSub aevum/blocks/1 to full nodes
T=50ms Validators receive proposal (200ms max RTT / 2 = 100ms one-way;
50ms typically for geographically nearby validators)
T=50–150ms Validators verify ML-DSA-44 sig (≤10ms) + execute block
T=150ms Validators send attestation via direct Validator Mesh back to the proposer
and to other validators
T=500ms ⌊2/3⌋+1 attestations collected by the proposer (or any aggregator)
T=500ms Block finalized — attestation aggregate published
Attestation Aggregation. The proposer (and a backup aggregator if the proposer fails) collects individual attestations and publishes an attestation aggregate:
struct AttestationAggregate {
block_hash: [u8; 32],
block_height: u64,
validator_bitfield: Vec<u8>, // Bit set: 1 = this validator attested
aggregated_signatures: Vec<MLDSASignature>, // One signature per ATTESTING validator
// Convention: the aggregate carries exactly the finality QUORUM — the first
// ⌊2N/3⌋+1 valid attestations — not all N. The quorum is sufficient to
// prove BFT finality; additional attestations are not propagated in the
// aggregate. (Both the size comment below and the impact table use this
// quorum-only convention.)
// Note: ML-DSA is not natively aggregable (it is not a Schnorr group);
// "aggregation" is concatenation of the individual quorum signatures.
// Typical size (N=50 target): quorum ⌊2·50/3⌋+1 = 34 sigs × 2420 bytes ≈ 82 KB
}
ML-DSA and Aggregation. ML-DSA (based on Module-LWE) does not support signature aggregation like Schnorr/BLS. The attestation aggregate is therefore a concatenation of the quorum's individual signatures — not a mathematical aggregate signature. Under the quorum-only convention above, cost is O(quorum) = O(⌊2N/3⌋+1) in signature size. Block-impact percentages are stated against the ~4 MB typical Aevum block (§14.8.2 / CONSTANTS aevum.block_size_max, still Rec pending R4):
| N validators | Quorum ⌊2N/3⌋+1 | Aggregate size | Block impact (of ~4 MB) |
|---|---|---|---|
| 10 (genesis, canonical N₀) | 7 | ~17 KB | ~0.4% |
| 50 (Phase-1 milestone) | 34 | ~82 KB | ~2.0% |
| 100 | 67 | ~162 KB | ~4.0% |
| 150 (steady-state target) | 101 | ~244 KB | ~6.0% |
| 200 | 134 | ~324 KB | ~7.9% |
(Genesis N₀=10 is canonical — CONSTANTS governance.genesis_validators, Tier-1. The N=50 rung is the Phase-1 decentralization milestone: ≥50 external validators plus ≥25M AEV external stake, an automatic on-chain trigger, not a target to aim at (§11.4.1; Appendix 08 §7). The 50 and 150 rungs are recommended pending ADR-0005 ratification — CONSTANTS governance.steady_state_target, Tier-2, R6.) For large N, a two-round attestation scheme can be introduced via governance: the quorum is gathered in two sub-rounds, reducing per-round aggregate size. This is an engineering optimization, not a security change — the BFT threshold ⌊2N/3⌋+1 is still applied to the full quorum.
§14.7. Mempool Management
§14.7.1. Bond RSC Mempool
The Bond RSC mempool retains pending transactions awaiting mining:
| Parameter | Value | Rationale |
|---|---|---|
| Maximum size | 50 MB | ~25 blocks of buffer; sufficient to absorb spikes without flooding RAM |
| Transaction TTL | 48 hours | Transactions expire if not mined; user can rebroadcast |
| Eviction policy | Descending fee-rate (lowest fee evicted first) | Maximizes miner revenue |
| Minimum relay fee | 1 Nob | Anti-spam: transactions below 1 Nob are rejected by the mempool (not only by the miner) |
Systemic Expressway in the Mempool. Expressway transactions (OP_VETO, HTLC resolution) are held in a separate sub-mempool:
- No TTL — Expressway transactions never expire by time
- No fee-based eviction — they do not compete with Free Lane transactions
- Mandatorily included in the next block if the sub-quota has space Mempool flooding protection. An adversary submitting 50 MB of low-fee transactions could fill the mempool, causing eviction of legitimate transactions. Mitigations:
- Rate limiting: maximum of 100 transactions/second per source IP accepted by the mempool
- Minimum relay fee (1 Nob) makes flooding economically costly
- Fee-rate prioritization protects high-value transactions from eviction
§14.7.2. Aevum ESC Mempool (UserOperation Pool)
The Aevum ESC mempool is a UserOperation (UserOp) Pool (analogous to the ERC-4337 mempool), where a UserOperation is the Account-Abstraction transaction object (§8.5); "UserOp"/"UserOps" is used as prose shorthand hereafter:
| Parameter | Value |
|---|---|
| Maximum size | 200 MB (UserOperations + Bundles) |
| UserOperation TTL | 10 minutes (120 Aevum blocks) |
| Committed Bundle TTL | 15 seconds (3 blocks, §3.2.7) |
| Maximum UserOps per sender | 10 per address |
| Eviction policy | Descending priority fee + nonce ordering |
Per-Bundler separation. The UserOperation Pool is partitioned per Bundler — each Bundler maintains its own sub-pool of UserOperations it chose to include in its bundles. A Bundler with low reputation (§8.4.2) has its sub-pool reduced (max_uops = max(10, reputation_score × 50)).
§14.8. Bandwidth Envelope: Formal Derivation
This section derives the bandwidth envelope for full nodes, validating the claim in §2.2.2 ("~13 KB/s" provisioning envelope) and deriving equivalent requirements for the Aevum ESC.
§14.8.1. Bond RSC: Bandwidth Derivation
Traffic components:
Component A — Block propagation (compact blocks):
compact_block_size = 12 KB (typical, per §14.6.1)
blocks_per_day = 72 (1 block/20 min × 24h × 60min)
total_per_day = 72 × 12 KB = 864 KB/day
bandwidth_A = 864 KB / 86,400s ≈ 0.01 KB/s
Component B — Transaction propagation (via GossipSub):
tx_size_avg = 5.5 KB (3.309 KB ML-DSA-65 sig + 1.952 KB witnessed pubkey
+ ~0.24 KB outpoint/output/header; §2.2.3, CONSTANTS bond.tx_wire_size)
txs_per_day = 8,640 (0.1 TPS × 86,400s — CONSTANTS bond.throughput; the
prior "720/day" figure was inconsistent with 0.1 TPS)
relay_factor = 8 (D mesh peers = each tx forwarded to ~8 peers)
total_per_day = 8,640 × 5.5 KB × 8 = 380,160 KB/day
bandwidth_B = 380,160 KB / 86,400s ≈ 4.4 KB/s // dominant steady-state component
Component C — DHT (peer discovery, heartbeats):
// Kademlia messages: ~200 bytes each
// Heartbeat interval: 1.0s
// Connected peers: ~100 peers typical
// Messages: PING, FIND_NODE, GET_PROVIDERS, ADD_PROVIDER
// Estimate: 5 KB/s inbound + 5 KB/s outbound (bursty, not continuous)
bandwidth_C_avg = 0.5 KB/s
Component D — GossipSub overhead (IHAVE/IWANT/GRAFT/PRUNE):
// GossipSub control (IHAVE/IWANT/GRAFT/PRUNE) is exchanged over the per-topic
// mesh (D=8) plus a few lazy-gossip targets — NOT all ~100 open connections.
// The prior formula multiplied by 100 peers, which yields 62.5 KB/s and is the
// arithmetic error corrected here; the scope is the D=8 mesh.
// ~3 control messages/heartbeat × 64 bytes avg × 8 mesh peers / 1.0s
bandwidth_D = (3 × 64 × 8) / 1,024 / 1.0s ≈ 1.5 KB/s
Component E — Initial Block Download (amortized):
// IBD happens once per node; amortized over node lifetime (~2 years)
// Assuming sync of 1 year of history: 52.6 GB / (2 × 365 × 86,400s) ≈ 0.83 KB/s
// This component peaks during IBD, zero in normal operation — excluded from steady-state
bandwidth_E_amortized = 0 KB/s (steady-state)
Component F — P2P Relay (HTLC intentions):
// Conservative estimate: 1,000 swap intentions/day, 200 bytes each
total_per_day = 1,000 × 200 = 200 KB/day
bandwidth_F = 200 KB / 86,400s ≈ 0.002 KB/s
Steady-State Total (Average):
bandwidth_total = A + B + C + D + F
= 0.01 + 4.4 + 0.5 + 1.5 + 0.002
≈ 6.4 KB/s (per-node, outbound-dominant — tx relay forwards each
tx to D−1 mesh peers while it is received ~once)
With protocol overhead (~20% for headers, ACKs, QUIC overhead):
bandwidth_total_with_overhead ≈ 7.7 KB/s (steady-state)
Peak (congestion spike — e.g., Quantum Canary event):
// Assuming 200 transactions/block above normal for 30 minutes.
// Bond block time = 20 min → 0.05 blocks/min → ~1.5 blocks per 30-min window
// (the chain CANNOT produce 45 blocks in 30 min; the prior "1.5 blocks/min" was wrong).
spike_blocks = 0.05 blocks/min × 30 min = 1.5 blocks
spike_txs = 200 extra tx/block × 1.5 blocks = 300 extra transactions
spike_bw = 300 × 5.5 KB × 8 / 1,800s ≈ 7.3 KB/s incremental (over the 30-min window)
Validation of the §2.2.2 envelope. The "~13 KB/s" figure is a provisioning envelope, built from the corrected steady-state plus a congestion spike (no longer from an impossible transaction peak):
steady_state: ~6.4 KB/s (≈7.7 with overhead; tx-relay-dominated at 0.1 TPS)
congestion spike: steady + ~7.3 KB/s ≈ 13.7 KB/s for ≤30 min
(rare, e.g. a Quantum Canary event)
IBD / catch-up: transient bursts to tens of KB/s (§14.11), amortized ≈ 0 steady-state
provisioning target: steady-state + congestion headroom ≈ 13 KB/s (§2.2.2)
The §2.2.2 envelope is consistent. The ~13 KB/s figure is the provisioning envelope — quiescent steady-state transaction-relay bandwidth (~6–8 KB/s) plus a rare congestion spike (~7 KB/s) — that a Bond full node must be sized for; it is not the quiescent average. It is no longer derived from a 160 KB/s "peak" that assumed 45 blocks in 30 minutes (impossible at Bond's 20-min block time); the corrected steady-state and congestion spike now sum directly to the ~13 KB/s envelope. Transaction relay (Component B, ~4.4 KB/s) is the dominant term, a direct consequence of the canonical 5.5 KB tx wire size and the 0.1 TPS throughput.
§14.8.2. Aevum ESC: Bandwidth Derivation
Component A — Block propagation:
block_size_avg = 4 MB (TYPICAL, mixed workload @ 50% target; 12 MB gas-bounded
ceiling — CONSTANTS aevum.block_size_max)
blocks_per_second = 0.2 (1 block/5s)
D_validator_mesh = N-1 peers (all validators; N=50 target)
// Via direct validator mesh: proposer sends to N-1=49 validators
bandwidth_A_validator = 4 MB × 0.2 × 49 ≈ 39.2 MB/s OUTBOUND (for proposer, burst)
// To full nodes via GossipSub (D=12):
bandwidth_A_fullnode = 4 MB × 0.2 × 12 = 9.6 MB/s OUTBOUND
For the proposer: ~39 MB/s outbound bandwidth for the block. This is the extreme burst case (proposer for only 5 seconds, then receiver again). Sustained proposer bandwidth over an epoch: negligible (~1 block per rotation × 4 MB typical).
validator_rotation = N validators, selected with P ≈ 1/N
uptime_proposer = 5s/N × blocks_per_second = 0.2/N s/s
bandwidth_sustained = 39.2 MB/s × 0.2/50 ≈ 0.157 MB/s ≈ 157 KB/s (proposer, sustained)
bandwidth_non_proposer = 4 MB × 0.2 blocks/s ≈ 0.8 MB/s inbound (receive each block once)
Component B — Attestations:
attestation_size = 2,420 bytes (ML-DSA-44) + 100 bytes overhead
attestations_per_block = N-1 = 49
bandwidth_B = 49 × 2,520 bytes × 0.2 blocks/s = ~24.7 KB/s
Component C — UserOperation relay:
userop_size_avg = 5 KB (includes 2.4 KB ML-DSA-44 sig)
userops_per_second = 103 TPS (§2.4.1, 50% utilization)
relay_factor = 12 (D in GossipSub)
bandwidth_C = 103 × 5 KB × 12 / 12 ≈ ~515 KB/s (per peer, forward-only)
// Each peer receives from D=12 and sends to D=12, but net relay-factor is ~1×
bandwidth_C_net = 103 × 5 KB ≈ 515 KB/s (receiving UserOps to validate)
Total requirement for an Aevum validator (steady-state):
inbound: blocks (~0.8 MB/s) + attestations (~25 KB/s) + UserOps (~515 KB/s)
≈ 1.34 MB/s ≈ 10.7 Mbps
outbound: blocks (if proposer: ~157 KB/s avg) + attestations (~25 KB/s)
≈ 182 KB/s avg
Minimum requirement: 25 Mbps symmetric (~2.3× margin over 10.7 Mbps inbound)
This is why Aevum validators require dedicated server infrastructure (Appendix 08 §2) — it is not viable on residential internet. Aevum decentralization is meritocratic (D_score), not based on accessible hardware like the Bond RSC.
§14.9. Node Types and Responsibilities
| Node Type | Network | Stores | Validates | Propagates | Minimum Hardware |
|---|---|---|---|---|---|
| Bond Full Node | Bond RSC | Complete blockchain | All blocks + txs | Blocks + txs via GossipSub | Raspberry Pi 4 (2 GB RAM, HDD 1 TB) |
| Bond SPV Node | Bond RSC | Headers only (80 bytes/block) | Header PoW only | Does not propagate | Browser / Mobile |
| Aevum Full Node (non-validator) | Aevum ESC | Complete blockchain | All UserOps | Via GossipSub | 4-core CPU, 8 GB RAM, SSD 500 GB, 100 Mbps |
| Aevum Validator | Aevum ESC | Complete blockchain + state trie | Proposes + attests | Validator Mesh + GossipSub | 8-core CPU, 16 GB RAM, NVMe SSD, 1 Gbps |
| Oracle Node | Both | State relevant for attestation | Cross-chain events | Attestations via GossipSub | Same as Aevum validator + Bitcoin/ETH node |
| Desktop Node (Arca) | Bond (primary) + Aevum (light) | Bond complete + Aevum SPV | Bond full + Aevum light | Bond full | i5/i7 desktop, 4 GB RAM, HDD 2 TB, 25 Mbps |
| NMW (Nexus Mobile) | Aevum ESC (light) | Aevum headers only | SPV + oracle-assisted | Does not propagate | Android/iOS smartphone |
Desktop Node. The Desktop Node (§13.1) runs a complete Bond full node and an Aevum light client (SPV + oracle-assisted verification). This combination serves the typical user profile: maximum sovereignty over their BND (full validation) with light access to the Aevum ESC for day-to-day transactions. The Bond full node on the Desktop is the primary actor of the SPV Challenge mechanism (§7.5.5) — any Desktop Node can challenge fraudulent attestations.
§14.10. Eclipse Attack Protection
An eclipse attack isolates a target node, controlling all its peers and replacing them with malicious ones. The target sees a fabricated view of the network.
Defense Mechanisms:
Defense 1 — Mandatory connection diversity. The node maintains peers from at least 4 distinct /8 IPv4 prefixes or 4 /32 IPv6 prefixes in its outbound peer set. If the peer set violates this diversity, the node forces new connections via DHT lookup.
Defense 2 — Peer anchoring (Anchor Connections). Each node maintains 2 "anchor peers" — persistent connections with high-reputation peers (uptime > 30 days, never sent invalid blocks). Anchor peers are resistant to eclipse because an adversary cannot evict them.
Defense 3 — Block Timestamp Feeder. For Bond RSC, the timestamp of the last 10 received blocks is compared with the local clock. If the peer timestamp median differs by more than 60 seconds from the local median, the node emits an EclipseWarning and attempts connection to bootstrap nodes.
Defense 4 — Bond PoW verification. An eclipsed node receiving a forged chain will detect the fraud by verifying PoW — forging a valid chain of N blocks requires real mining. For an adversary controlling 10% of hashrate, forging 6 confirmations requires ~10× the expected time. This does not eliminate eclipse but raises its cost exponentially with chain depth.
Defense 5 — Attestation Latency Feeder (Aevum). For the Aevum ESC, BFT finality implies that honest validators accept only one block per slot. An eclipsed validator that receives a late slot proposal (>500ms after slot start) detects an anomaly. Validators with systematically high reception latency receive a penalty in R (Infrastructure Performance, §3.2.2).
§14.11. State Synchronization and Initial Block Download (IBD)
§14.11.1. Bond RSC IBD
The Bond RSC uses a two-stage headers-first protocol:
Stage 1 — Header Synchronization:
// Maximum 2,000 headers per message (2,000 × 80 bytes = 160 KB)
// From multiple peers in parallel
for peer in peers:
send(GETHEADERS, locator_hashes=[current_tip, ...], stop_hash=[0;32])
response = recv(HEADERS, max_wait=30s)
validate_pow(headers)
update_best_chain()
Stage 2 — Block Download:
// Parallel download from multiple peers; window size = 128 blocks in flight
// Priority: blocks from canonical chain (greatest cumulative work)
for block_hash in pending_blocks:
peer = select_peer_with_block(block_hash)
send(GETDATA, type=BLOCK, hash=block_hash)
block = recv(BLOCK, max_wait=120s)
validate_block(block) // PoW + all txs + scripts
update_utxo_set()
Snapshot Sync (future phase). To accelerate IBD for new nodes, a UTXO Snapshot mechanism will be introduced in Phase 2: a hash-verified snapshot of the UTXO set at a specific block height is distributed by the network, allowing new nodes to sync from the snapshot rather than the genesis block. The snapshot is verifiable via the Merkle root committed in the corresponding block header.
§14.11.2. Aevum ESC State Sync
The Aevum ESC uses state sync based on the state-trie root (analogous to Ethereum's eth_getStateByHash):
// State trie sync protocol
1. Download headers (BFT verification: ⌊2/3⌋+1 attestations in the header)
2. Identify the recent trusted state (N blocks back from tip, where N=100)
3. Download the state trie via snap sync protocol:
a. Request account range [start_hash, end_hash] from multiple peers
b. Verify each leaf against the state root in the trusted header
c. Fill storage tries for accounts with non-null storage_root
4. Execute the last N blocks to reach the current tip
BFT verification for Aevum headers. Unlike the Bond RSC where header validation is purely PoW (local verification), Aevum ESC headers include an attestation aggregate that MUST be verified against the current validator set.
§14.12. Connection Management Protocol
§14.12.1. Connection Limits
| Parameter | Bond Full Node | Aevum Validator | Aevum Full Node |
|---|---|---|---|
| Max inbound connections | 125 | N-1 (all validators) + 50 full nodes | 50 |
| Max outbound connections | 8 | N-1 (validators) + 10 full nodes | 8 |
| Reserved connections (anchor) | 2 | 4 | 2 |
| Idle connection timeout | 1 hour | 30 seconds | 1 hour |
| Reconnection backoff | Exponential: 1s, 2s, 4s, … 300s (max) | 5s fixed (validator mesh) | Exponential |
§14.12.2. Identify Protocol
The libp2p Identify Protocol is used to exchange peer metadata:
IdentifyInfo {
protocol_version: "/bond-aevum/1.0.0",
agent_version: "bond-node/1.0.0", // or "aevum-node/1.0.0"
public_key: Vec<u8>, // ML-DSA-44/65 public key (1312/1952 bytes)
listen_addrs: Vec<Multiaddr>,
observed_addr: Multiaddr, // IP that the peer sees for us
protocols: Vec<ProtocolId>, // All supported protocols
}
The observed_addr field lets the node detect its external public address (especially useful behind NAT). The public_key is the ML-DSA identity public key — verified against the PeerID announced in the DHT.
Version filtering. Nodes advertising incompatible protocol_version are accepted for connection but are not added to the GossipSub mesh — they can sync blocks (base protocol is backward-compatible) but do not participate in high-level gossip.
§14.13. Dandelion++ for Network Privacy
Network-layer transaction privacy (protection against P-3, §15.1) is supported via Dandelion++ (Fanti et al., 2018), enabled by default for transactions on bond/txs/1 and aevum/bundles/1.
Phases:
Stem Phase (linear propagation):
- Each node randomly selects 1 outbound peer for the stem phase (not the source peer)
- The transaction is forwarded only to this 1 peer (not broadcast)
- Each node on the stem path forwards with probability p = 0.9 (continue stem) or 1-p = 0.1 (fluff — transition to broadcast)
-
Expected stem path length: 1/(1-p) = 10 hops Fluff Phase (normal broadcast):
-
When the node decides to fluff, it broadcasts to all peers (normal GossipSub)
-
The real transaction origin is the node that started the stem — but fluff may have occurred 10 hops later, making the origin untraceable by timing analysis Additional protection against timing correlation:
-
Random jitter of 0–500ms before relay (stem phase)
- Decoy broadcasts: 1% of transactions are re-broadcast from the mempool as decoys, creating noise for timing correlation
Stem-forwarding is mandatory; only self-origination may bypass the stem. Dandelion++'s deanonymization resistance (Fanti et al., 2018) is a network-wide property that depends on near-universal participation in stem routing: if a meaningful fraction of nodes stop relaying other nodes' stems, the stem graph fragments and the effective anonymity set collapses for compliant nodes too, not only for the opt-outs. Therefore a node MUST always forward stem-phase transactions it receives from other peers — this is not a local, opt-out-able choice. A latency-sensitive node (e.g., a market maker propagating HTLC intentions quickly) MAY instead choose to originate its own transactions directly in the fluff phase (broadcasting immediately, forgoing only its own stem privacy), which does not degrade the global stem graph. Any deviation beyond self-origination — i.e., dropping others' stems — is a scored misbehavior (§14.5.3). Per-topic configuration governs only self-origination behavior (e.g. immediate fluff on
relay/intentions/1), never the obligation to relay others' stems.
§14.14. Implementation Reference Table
| Component | Rust Library | Minimum Version | Notes |
|---|---|---|---|
| P2P Framework | libp2p |
0.53+ | Core networking stack |
| QUIC Transport | libp2p-quic |
0.10+ | Based on quinn; TLS replaced by Noise XX_KEM |
| TCP Transport | libp2p-tcp |
0.41+ | Fallback; Noise XX_KEM over raw TCP |
| Noise Protocol | Custom: libp2p-noise-kem |
— | New crate: replaces X25519 with ML-KEM-768; not the standard libp2p-noise |
| ML-KEM-768 | pqcrypto-mlkem |
FIPS 203 compliant | Or auditable in-house implementation |
| Yamux | libp2p-yamux |
0.47+ | TCP fallback multiplexing |
| GossipSub | libp2p-gossipsub |
0.46+ | Version 1.1 with scoring |
| Kademlia DHT | libp2p-kad |
0.44+ | Custom parameters (§14.4.1) |
| Identify | libp2p-identify |
0.43+ | ML-DSA public key instead of Ed25519 |
| Dandelion++ | Custom: libp2p-dandelion |
— | New crate; integrated with GossipSub |
| Compact Blocks | Custom: bond-compact-block |
— | New crate; §14.6.1 protocol |
| Noise ChaCha20 | chacha20poly1305 |
0.10+ | Post-handshake transport AEAD |
Cross-cutting P2P network invariants:
- Zero EC on any layer.
libp2p-noise-kemis the sole session-security component. No call tox25519_dalek,ed25519_dalek, or equivalents is permitted. Auditors MUST verify this invariant. - PeerID derived from ML-DSA. No node advertises an Ed25519-based PeerID (the libp2p default). Connections from peers advertising Ed25519 PeerIDs are accepted for bootstrap purposes but flagged as
legacy_peer. - Pre-relay validation is mandatory. GossipSub messages are never relayed without ML-DSA signature validation. A node that relays without validating is guilty of amplifying invalid data and receives a proportional score penalty.
- Bond RSC bandwidth ≤ 13 KB/s (provisioning envelope). The GossipSub D=8 parameter, the Compact Block Protocol, and the 2 MB block size are coordinated to satisfy this envelope.
- Aevum latency ≤ 200ms median (bounded Δ for BFT). The direct Validator Mesh (§14.6.2), the 25 Mbps requirement for validators, and the D_score penalty for high latency are the three mechanisms that operationalize the bounded delay Δ assumed in the BFT liveness proof (Appendix 10 §10.2, T4 — BFT Liveness under Partial Synchrony; validator-latency operational mechanisms in Appendix 08 §8). P2P network specified — Privacy Roadmap to follow. §14 completed the network-layer specification: PQC-native transport (Noise XX_KEM with ML-KEM-768), peer discovery (SHA3-256 Kademlia), efficient propagation (GossipSub + Compact Blocks + Validator Mesh), bandwidth envelope formally derived (~6–8 KB/s steady-state, ~13 KB/s provisioning envelope), and defenses against eclipse and Sybil. §15 specifies the Privacy Roadmap built atop this network infrastructure — including Dandelion++ (already active in §14.13) and the higher-level protocols (PQ-CoinJoin, Stealth Addresses).