Networking
Every mainstream L1 networking stack was designed under the assumption that a validator is a server: a public IP address, open inbound ports, and a stable link. A phone satisfies none of these. It sits behind carrier-grade NAT with no public address, its IP changes when it moves between Wi-Fi and LTE, its operating system aggressively suspends background connections, and its data plan makes every redundant byte a real cost. For a network whose validators are phones, the transport layer is not an optimization target; it is an existence condition.
#Transport: iroh over QUIC
Phase replaces the standard Ethereum networking stack (devp2p) entirely with iroh, a production peer-to-peer transport built on QUIC. Three of its properties are load-bearing for mobile validation:
- Identity-based addressing. Nodes are addressed by an ed25519 public key, not an IP address (“dial keys, not IPs”). A validator's network identity is stable across address changes and is the same identity registered on-chain; the master key of the device deterministically derives the wallet, BLS, and network keys.
- NAT traversal with relay fallback. Connections are established by QUIC hole punching where possible; where a direct path cannot be punched, traffic transparently falls back to relay infrastructure. A phone behind cellular NAT is reachable in either case. Relays and identity discovery (pkarr publishing and DNS lookup) are Phase-operated services at launch; bootnodes and anchors are reachable from a compiled-in static table, every other node only through discovery.
- Network-switch survival. QUIC path migration lets an established connection survive the device moving between networks. A validator switching from Wi-Fi to LTE does not drop out of its committee; the transport re-validates the new path underneath the running protocols.
To our knowledge, Phase is the first L1 whose complete networking stack—consensus, block and transaction gossip, state synchronization, and bootstrap—runs over iroh. We state this as an observation about deployments known to us, not as a verified census; iroh itself is a mature transport with substantial non-blockchain production use, so the novelty claimed is architectural, not technological.
#One connection per peer, demultiplexed by stream tag
All node-to-node protocols share a single multiplexed QUIC connection per peer. Each QUIC stream begins with a one-byte protocol tag that routes it to the appropriate handler: a lightweight heartbeat carrying liveness and the peer's current chain height; a request/response protocol for headers, bodies, transactions, and snapshot chunks; gossip for blocks and transactions; the HotStuff message family (proposals, votes, NewView, Advance and Decide, and the block request/response pair); and blob-sidecar distribution between well-provisioned nodes, a path that carries nothing while blobs are switched off on that chain (Remark 13.1). The connection handshake verifies the genesis hash, so peers of an incompatible network are rejected before any protocol traffic flows. The proxy service runs on a second iroh endpoint of the same node, under its own identity and its own ALPN, with its own UDP sockets, relay link and discovery record; it shares the host, the process runtime and the uplink with protocol traffic, but none of the node endpoint's peer slots, windows or read budgets.
The practical consequence for a phone is that it maintains one NAT binding, one TLS handshake, and one keepalive per peer, rather than one per subprotocol. This reduces battery drain, shrinks the state the carrier's NAT tables must hold, and makes recovery after a network switch a single reconnection rather than a cascade.
#Beacons: signed-message relays for committee traffic
Two phones frequently cannot reach each other directly even with hole punching. Phase therefore designates a set of well-provisioned nodes—*beacons*—that relay consensus messages between committee members lacking a direct path: a validator sends a framed relay request to the two nearest connected beacons by measured round-trip time—or, when the beacon that last delivered a message the target signed did so within the last minute and is still connected, to that beacon and the nearest other—and the beacon forwards the enclosed message to the target; a block response instead goes only through the beacon that last delivered a block request from the requester, when that beacon meets the same two conditions. Beacons also serve state snapshots and re-broadcast the proposals, NewView, Advance and Decide messages a peer sends them directly (one forwarded to them goes no further) to the peers connected to them, the committee's voting seats first—and, once a beacon knows the current committee, only proposals go beyond the other beacons and the voting and observer seats of the previous, current and upcoming committees, since the next proposal carries its leader's highest certificate as its justification; block gossip is not relayed by any node today—the receiving swarm exposes an engine stream for it that nothing consumes—and transactions travel a bounded path: a phone sends only its own transactions, to at most four beacons, and relays nothing it received; a transaction crosses a second hop only through a beacon's pool, which re-propagates it to the committee's voting seats and the other beacons.
Beacons are accelerators, not trusted parties. Every consensus message must authenticate to its recipient before it can move that recipient's consensus state, and the seven message kinds — Prepare, Vote, NewView, Advance, Decide, BlockRequest and BlockResponse — do not all authenticate the same way: proposals, votes, NewView messages and block requests carry a BLS signature by their originator, while Advance, which broadcasts a newly formed certificate, Decide, which announces the full QC that finalizes a block, and block responses carry no originator signature at all; the first two are authenticated instead by the aggregate BLS signature inside the certificate they carry, which the recipient verifies against the committee that formed it (Remark 11.1), and a block response by the hash the requester asked for and the certificate it carries. A certificate whose committee the recipient cannot yet reconstruct—the normal condition of a node that is catching up—is not checked by that recipient, and may drive catch-up only: it moves no lock, no view, and no finalized frontier. Reconstructing a committee the node does not already hold is itself budgeted—a fixed number of reconstructions per window, so that a peer cannot make the node rebuild a committee for every message it sends—and a certificate that would need a fresh reconstruction after that budget is spent is not checked at all—one naming the round the node is already on is served from its cache and still verifies, which is why the bound is invisible to a correct peer: it is refused rather than admitted unverified, and on the proposal and Advance paths the message carrying it is dropped outright. Transactions carry their own signatures. A beacon can delay or drop traffic—a liveness concern bounded by view changes and committee rotation—but it cannot forge a vote, alter a proposal, or impersonate a validator. The beacon infrastructure is operated by the Foundation at launch, as are the relays and the identity-discovery services above; all of them are a Foundation-run availability dependency on the decentralization roadmap, and broadening the beacon set is part of it.
#Remark 11.1 (What the certificate does not cover)
Advance and Decide each carry a view number in the frame alongside the certificate, and that field sits outside the aggregate signature, so a relay can rewrite it. No handler reads it: the Advance handler takes the view from the certificate, the Decide handler uses none, and neither handler is passed a sender identity—the index the dispatcher resolves for the delivering peer feeds a per-peer rejection counter and the logs, nothing else. No consensus decision on these two messages therefore rests on anything but what the certificate itself proves. Binding the frame with an originator signature, as the four signed message kinds are bound, would close the gap by construction; that is not implemented.
Committee handovers receive special treatment: whenever a node installs a committee it also attempts to prewarm connections to the members of the next epoch's committee, and while the chain is stalled it prewarms the committee of the next stall-recovery round once that round is within thirty seconds of activating — half of the sixty-second period that promotes those rounds — so that the first views of a new committee do not begin with a burst of simultaneous hole-punching attempts. The next epoch's committee is prewarmed once its selection snapshot is written, about 18 blocks before the boundary; only the voting seats are dialled, and observers dial in themselves. The prewarm is best-effort and idempotent, dials only a committee that seats the node, as a voting member or an observer, and dials none while the node is catching up; what it has to warm is small in any case: the anchors are seated in every committee, so consecutive committees differ only in the graduate and observer seats and most of the connections the incoming committee needs are already open. Committee rotation during a stall is driven by wall-clock time elapsed since an on-chain anchor, read from each node's local clock, which SNTP must vouch for before the node derives a rotation round from it; a node whose clock cannot be vouched for keeps voting but holds its round, so a fleet-wide time-source outage suspends stall recovery, never consensus.
#Bandwidth engineering
The stack assumes bandwidth is expensive and treats economy as a design requirement rather than a tuning pass:
- Frame deduplication on the beacon paths. On the blob-sidecar and consensus-re-broadcast paths, a beacon content-hashes the raw frame and tests the digest against a bounded LRU of recently seen digests, so a replay costs it a hash rather than the work behind the frame—the KZG check of a sidecar, or the fan-out of a re-broadcast. The two caches on the sidecars a beacon accepts—a replay cache per peer, and a cache, shared by all peers, of the frames it has already verified—and the cache on the consensus frames it re-broadcasts are beacon-side; the cache on the sidecars sent to the beacons runs on every node, holding a beacon's relays and its own sidecars and a phone's own, so a node sends the same bytes to the beacons once. On a received frame, each cache is consulted after the frame has been read in full and its message decoded, because the frame reader hands back the decoded message and the raw bytes from a single call, so nothing upstream holds the bytes any earlier. The signed-message relay above is deliberately exempt: a validator sends the same signed vote to the proposer and to the next leader, and BLS signatures are deterministic, so identical bytes are legitimate there and a replay is charged against the relay budget rather than dropped. Block and transaction gossip carries no frame-level cache: duplicate transactions are dropped by the pool as hashes it already holds, and gossip is single-hop—no node forwards a gossip frame it received (below)—so there is no relayed copy for a cache to catch.
- Per-peer seen-tracking. For each peer, the node maintains a bounded LRU of the transaction hashes it takes that peer to hold: hashes the peer announced, transactions it broadcast to the node, transactions served to it on request, and transactions the node sent towards it—the last entered when the send is issued, not on delivery. The per-peer record of what a peer holds suppresses re-sends from a beacon, which skips a recipient it records as holding the transaction; a phone, which sends only its own transactions, consults it only to top up a fetch request already directed at a peer with other buffered hashes that peer announced. Block and proposed-header gossip consults no per-peer cache at all.
- Forwarding without re-encoding. A phone publishes its own transactions to a small, fixed number of beacons—at most four, and to no client peers—and no node forwards a block or transaction gossip frame it received; a transaction travels a second hop only as a fresh message from a beacon's pool, to the voting seats and the other beacons, as described above. Where a beacon does forward a frame—a client's blob sidecar on to the other beacons, a consensus frame on re-broadcast—it sends the bytes it received rather than decoding and re-encoding the message, and the re-broadcast fan-out is capped, with the committee's voting seats served first. Skipping the re-encode saves CPU and therefore battery.
- Bandwidth-aware peer selection. Download throughput per peer is tracked with an exponentially weighted moving average; the block downloader's header and body requests are routed
\varepsilon-greedily—the large majority to the currently fastest peers, a small exploration fraction to others so the estimates stay current—while each snapshot chunk goes to the least busy serving peer with room for it. - Hard frame caps. Each protocol class bounds frame size, checked against the frame's declared length before any payload byte is read: 64 KiB on the control plane (handshake and heartbeat), 1 MiB on inbound requests, 8 MiB on blob sidecars, 10 MiB on consensus frames and on the length any gossip frame may declare, and 20 MiB on responses to requests the node itself issued. Within those, a gossip frame is held, from its kind byte and before its body, to just over 2 MiB for transactions and 172 KiB for a hash announcement, the retired block kinds being refused outright, and a response to its request kind's ceiling—4 MiB for headers, pooled transactions or blob sidecars, about 16 MiB for block bodies, and the full 20 MiB only for a snapshot manifest or chunk. Consensus sits at the loose end of that range rather than the tight one—only responses the node asked for are looser—and deliberately so: a proposal carries a whole block, so a cap below what an honest proposer can emit would drop proposals, a liveness failure worse than the flooding a tighter cap would prevent. Only a proposal or a block response may approach the 10 MiB cap; every other consensus kind is refused above 256 KiB before its body is read. A phone is protected less by the size of its cap than by how the body is read: an over-cap declaration is refused before the body, an under-cap one buys nothing because bodies accumulate in doubling slices that start at 4 KiB (128 bytes for a frame declared longer than 16 KiB that is not an inbound request), and in-flight reads draw on three separate budget lanes—control plane, consensus, and everything else—so bulk traffic cannot starve a consensus or heartbeat read.
- Peer reputation and banning. Each peer carries a local score; timeouts, malformed frames, and invalid snapshot chunks are penalized, and peers falling below a threshold are banned—except a configured beacon, which is logged and has its score reset instead, on the grounds that isolating oneself from a relay is worse than tolerating a noisy one; a genesis anchor that is not a beacon is, once a committee is installed, spared a score-driven ban the same way, since the anchors are seated in every committee, though a chain mismatch still bans it. The penalty is applied only where the observing code holds a handle to the peer table; two receive loops do not, so on those paths a malformed frame costs the sender nothing (Remark 11.2).
This transport-level reputation is deliberately distinct from the consensus reputation of Reputation Scoring: it is network-local, differs between observers, and therefore never enters committee selection, consistent with the consensus-measurability constraint of System and Threat Model.
#Remark 11.2 (Two receive loops are unscored)
Penalties are deducted only where the observing code holds a handle to the peer table: the handshake, the heartbeat, the stream router, the requesting side of request/response (bad responses, malformed manifests, invalid snapshot chunks), consensus receive on every node—a client's consensus receiver meters, caps and charges through the same ingress gate as a beacon's—and, on a beacon, blob-sidecar receive. Two receive loops deduct nothing: block/transaction gossip and the serving side of request/response. On those, a malformed frame or a read timeout is logged—rate-limited on the gossip loop (both the decode and the timeout branch), since the input is remote-controlled, but not on the serving side's non-overload failures, which emit a line per occurrence—and, on the gossip loop, counted and answered with an exponential, capped backoff once consecutive failures pass a threshold; but the peer's score is untouched and it is never disconnected for the fault. For the gossip loop this is an implementation gap rather than a design choice: its own documentation names the penalty call as the right response and records that the loop, as constructed, cannot reach it. The serving side of request/response gives no reason either way; it bounds a hostile peer by a read deadline and serving-capacity limits rather than by score. One adjacent decision is deliberate: the gossip loop never disconnects a peer for a frame it cannot parse. A gossip frame is a tag byte followed by an RLP body and carries no protocol version, so a peer mid-upgrade and a peer sending garbage are indistinguishable, and cutting such peers off would partition the fleet during a rolling upgrade. The consensus path answers the same question without exempting a malformed frame's sender from scoring: its frames carry a version byte, so a skewed frame is refused and counted, with nothing reported against its sender for the skew, while a malformed frame is still charged, on a beacon and on a phone alike.