Rings NetworkResearch & Papers
Rings 1.0 Unified Whitepaper

Rings: An Algebraic Structured Peer-to-Peer Network for Decentralized Identity and Resource Ownership

Ryan J. Kung is with the Rings Network project (e-mail: [email protected]; ORCID: <a href="https://orcid.org/0009-0000-3026-1111" target="_blank" rel="noreferrer">0009-0000-3026-1111</a>). Manuscript created February 8, 2023; consolidated and empirically evaluated for Rings 1.0 in November 2026. Source code and formal-verification artifacts: https://github.com/RingsNetwork/rings.

Abstract

Rings is an implemented algebraic structured peer-to-peer network for decentralized identity, resource ownership, transport, storage, privacy, and application protocols. Application servers, DNS authorities, and relay providers in conventional Internet deployments frequently become trusted bottlenecks for naming, routing, and user state. Rings instead models identities and resources as algebraic objects over a CorrectChord circular overlay \(\mathbb{Z}/2^{160}\mathbb{Z}\), pairing browser WebAssembly and native runtimes over WebRTC/SCTP while keeping all cryptographic operations on carriers disjoint from the routing identifier ring. This paper unifies the core algebraic design with six production subsystems implemented in Rings 1.0: range-proved finger convergence, non-transitive WebRTC Chord routing and single-hop bridge delegation, conflict-free replicated data types (CRDTs) with HLC removal stability and Merkle data provenance, crash-durable local stores and age-gated replicated relay custody, cleanest-first slot accounting across shared node tables, and Sphinx/AEZ-v5 onion Kleisli pipelines bridging counterparty-signed service receipts to DRanking 2.0. We evaluate the Rust implementation empirically on real hardware and summarize exhaustive Stateright/BFS verification across \(9,496,521\) reachable finite states (\(9.50\times 10^6\)) and 54 refuted safety mutants. Core object: \(\mathsf{Rings}=(R,\mathcal{R}_N,\mathbf{Set}/R,\Omega_N,\mathsf{T}^{\mathcal{E}}_A,\Pi,\mathbb{G},\mathcal{X})\) with \(R=\mathbb{Z}/2^{160}\mathbb{Z}\), \(\Omega_N(X,H)=(X,\operatorname{owner}_N\circ H)\), and \(\mathsf{CryptoCarrier}\cap R=\varnothing\).

Keywords: Structured peer-to-peer networks, Chord, WebRTC, non-transitive routing, CRDTs, crash consistency, Sphinx onion routing, AEZ v5, formal verification, Stateright.

I.Introduction#

Centralized application platforms simplify deployment, but they also concentrate identity, naming, storage, and traffic control at service operators. Cloud and platform centralization therefore becomes a privacy, availability, and autonomy risk for users who need direct communication and durable control over their data [1, 2, 3, 4]. The Rings project is motivated by this observation: a sovereign network should let a participant own an identity, establish a session, route to another identity or resource, and run application protocols without turning a single application server into the root of authority.

Rings is implemented as a network, but this paper is organized around the algebraic structure that makes the implementation coherent. It states the ideal carrier, ownership, transition, durability, admission, and privacy laws that the Rings 1.0 implementation realizes. The older intuition was that Decentralized Identifiers (DIDs) directly form a finite ring suitable for all routing and cryptographic operations. The refined model is more precise: Chord identifiers form an additive circular carrier for placement, interval order, replica selection, and finger targets; threshold schemes, signatures, encryption, wide-block onion encipherment, and zero-knowledge protocols use their own fields or groups.

The resulting design has three practical consequences. First, DIDs and virtual DIDs (VIDs) share the same 160-bit placement surface, so identities, mailboxes, service descriptors, chunks, and application rendezvous points can be routed by one owner function. Second, Rings builds on Chord and CorrectChord rather than replacing the overlay literature: successor lists, multi-predecessor relations, join, rectify, stabilize, range-proved finger convergence, and passive 1-hop gap-bridge delegation are the maintenance substrate on which Rings semantics are layered [1, 5, 6, 7]. Third, state transitions return typed effects instead of directly performing network IO, which allows the overlay, storage, durability, load-accounting, and onion-pipeline state machines to be reasoned about purely, model-checked with Stateright [8], and then interpreted by browser or native runtimes.

II.Problem Statement and Design Goals#

Rings addresses a narrow but recurring gap between existing decentralized systems. Kademlia-derived systems provide scalable lookup, and contemporary frameworks such as Veilid [9] add Rust/WebAssembly node runtimes and private safety routes over Kademlia, yet the XOR metric does not by itself give Rings the circular ownership law needed for successor lists, replicated ownership, and interval-based placement. Relay networks and mixnets improve metadata resistance, but they are not structured P2P ownership systems. Blockchains provide global ordering, but embedding consensus in every message or storage operation would turn Rings into a ledger rather than an algebraic structured peer-to-peer substrate.

The problem is therefore to specify a network object

\[\mathsf{Rings}\]

that simultaneously supports:

  1. self-certifying identity and delegated sessions;

  2. structured lookup, range-proved finger convergence, and non-transitive WebRTC routing;

  3. browser-native and native transport and crash-durable storage surfaces;

  4. CRDT storage with tombstone stability, per-writer cryptographic provenance, and replicated relay custody;

  5. Sybil-resistant slot accounting, credit reclaim, and bounded load under free identities;

  6. Sphinx/AEZ-v5 onion Kleisli pipelines and counterparty-signed service receipts.

This paper makes the following contributions. It presents Rings as an algebraic structured peer-to-peer network, modeling the identifier space as the additive cyclic group \(R=\mathbb{Z}/2^{160}\mathbb{Z}\) and lifting resource placement into \(\mathbf{Set}/R\). It specifies range-proved finger convergence and bounded multi-predecessor non-transitive Chord routing over restricted WebRTC graphs (Section IV). It establishes the removal-stability law, HLC data provenance, factored carrier eviction, and signed lease heartbeats for replicated CRDT storage (Section V). It defines the crash-meaning authority lattice \(C\times M\), presence markers, per-platform crash durability, group commit, link-local replay windows, and age-gated replicated relay custody (Section VI). It proves fair slot accounting across five shared node tables, credit reclaim, and single-charge chunk reassembly under free identities (Section VII). It replaces legacy relay framing with client-sealed Sphinx/AEZ-v5 onion Kleisli pipelines (Section VIII), bridges 1.0 service receipts into the companion DRanking 2.0 protocol [10] (Section IX), and presents empirical micro- and macro-benchmarks together with exhaustive Stateright formal-verification metrics across all Rings 1.0 subsystems (Section X).

III.Algebraic System Model, Threat Model, and Effects#

III-ACarrier, System Scope, and Threat Model#

Assumption 1 (System scope).#
\[\begin{array}{rcl} \mathsf{fault}&=&\mathsf{fail\text{-}stop}\ (\text{overlay}) \mid \mathsf{crash}\ (\text{local}),\\ \mathsf{auth}(m,\sigma,k)&=&V(k,\sigma,m),\\ \mathsf{net}&=&\mathsf{async},\\ \mathsf{clock}&=&|\operatorname{clock}_p-\operatorname{clock}_q|\le\sigma,\\ \mathsf{io}&=&I_X:A_X^*\to\mathsf{IO},\\ \mathsf{consensus}&\notin&\mathsf{Overlay},\\ \mathsf{order}&=&\mathsf{SidecarWitness},\\ \mathsf{crypto\_ops}&\cap&\mathsf{route\_ops}=\varnothing. \end{array}\]

Clock tolerance \(\sigma\) bounds skew across synchronized honest nodes.

Unified Threat Model

Rings 1.0 operates under four explicit adversarial and fault assumptions across its layers while deliberately scoping out global traffic analysis without cover or majority ring capture:

  1. Link and Network Adversary: A passive observer monitors arbitrary underlay links and WebRTC NAT paths, while an active adversary delays, duplicates, reorders, drops, or replays valid signed control/onion messages on any link it controls. Asynchronous replay and credit exhaustion are defeated at every node boundary by durable/link-local replay windows, generation-tagged credit reclaim, and sliced-Bloom filters.

  2. Colluding Onion Relays: Up to \(H-1\) relays on an \(H\)-hop client loop may be honest-but-curious or actively tag, shrink, or relabel packets without breaking payload confidentiality on any segment whose endpoints are honest. For sender–destination unlinkability, header/payload cryptographic unlinkability on the entry segment requires at least one honest relay in \(\{r_{0,1},r_{0,2}\}\) separating \(\diamond\) from \(h_1\), while resistance to deterministic inter-hop timing correlation across \(r_{0,2}\) additionally assumes non-collusion between guard \(g=r_{0,1}\) and symbol hop \(h_1\) unless cover pacing masks per-hop release delays \(L(f_i)\); Sphinx header MACs, uniform \(205\,\mathrm{B}\) layers, and AEZ v5 wide-block encryption (Section VIII) prevent bitwise correlation and detect single-attempt tagging with probability \(\ge 1-2^{-128}\).

  3. Byzantine Writers and Sybil Rotation: Since minting a DID has zero cost (\(\mathsf{cost}(\mathsf{did})=0\)), an adversary may forge unsigned messages, spawn arbitrarily many DIDs, rotate identities rapidly, or inject stale DHT deltas. Unauthenticated mutations and skewed HLC timestamps are rejected by DataProvenance; memory/table exhaustion is bounded by cleanest-first connection slot floors (Section VII); and Sybil endorsement inflation is bounded by dual-signed ServiceReceipts in DRanking 2.0 (Section IX).

  4. Local Storage Crashes: Native file systems and browser IndexedDB backends may crash at arbitrary points between write, rename, and barrier sync; RecordAuthority (\(C\times M\)) enforces platform-native barriers (F_FULLFSYNC, MOVEFILE_WRITE_THROUGH, fsync, or strict IndexedDB) and witnessed presence markers (Section VI).

  5. Out of Scope: Rings 1.0 does not prevent end-to-end timing correlation by a global passive adversary observing both a client's guard link and its world exit when real-time interactive latency prohibits heavy cover padding, does not defend against \(>50\%\) Sybil capture of the global overlay without DRanking 2.0 admission filtering, and trusts local client execution hosts/kernels.

Definition 1 (Identifier carrier).#
\[\begin{array}{rcl} M&=&2^{160},\\ R&=&\mathbb{Z}/M\mathbb{Z},\\ \delta_a(x)&=&(x-a)\bmod M,\\ (a,b]_R&=&\{x\in R:0<\delta_a(x)\leq\delta_a(b)\},\\ \mathsf{RouteOps}_R&=&\{0,+,-,\delta_a,(\_,\_]_R\},\\ \mathsf{Mult}_R&\notin&\mathsf{RouteOps}_R. \end{array}\]

Note that \((a,a]_R=\varnothing\) since \(\delta_a(a)=0\), so self-ownership is handled prior to interval tests.

Definition 2 (Live topology).#
\[\begin{array}{rcl} N&\subset&R,\quad |N|\ge 2,\\[2pt] \operatorname{owner}_N(k) &=&\arg\min_{u\in N}\delta_k(u),\\[6pt] \operatorname{pred}_N(n) &=&\arg\min_{p\in N\setminus\{n\}}\delta_p(n)\\[2pt] &=&\arg\max_{p\in N\setminus\{n\}}\delta_n(p),\\[6pt] \operatorname{Succ}^q_N(n) &=& \operatorname{take}_q \bigl(\operatorname{sort}_{\delta_n}(N\setminus\{n\})\bigr). \end{array}\]

Each live node maps to a unique identifier in \(N\subset R\) (hence \(\operatorname{owner}_N(k)\) and \(\operatorname{pred}_N(n)\) have unique minimizers); bootstrap singletons (\(|N|=1\)) resolve \(\operatorname{owner}_N(k)=n\) trivially.

Assumption 2 (Correct-Chord stable base).#
\[\begin{array}{rcl} r&=&|\operatorname{Succ}^r_N(n)|,\\ \mathsf{Steady}(N)&\Rightarrow&|N|\geq r+1,\\ |N|<r+1&\Rightarrow&\mathsf{Init}(N),\\ \mathsf{Maintain}&=& \{\mathsf{join},\mathsf{rectify}\}\\ &&\cup\{\mathsf{stabilize}\}_{CorrectChord}. \end{array}\]

This is the CorrectChord stable base of Zave [11, 6].

Definition 3 (Affine replica set).#
\[\begin{array}{rcl} \rho&\in&\mathbb{N}_{>0},\\ \operatorname{rot}^{\rho}_i(k) &=&k+\left\lfloor M\cdot i/\rho\right\rfloor,\\[4pt] \operatorname{Rep}^{\rho}_N(k) &=& \{\operatorname{owner}_N(\operatorname{rot}^{\rho}_i(k)): 0\leq i<\rho\}. \end{array}\]

Storage redundancy uses affine rotations of the entry key (\(\rho=6\) by default for data topics). Successor lists remain the CorrectChord safety root for topology maintenance.

Definition 4 (Rings overlay object).#
\[\mathcal{R}_N= (R,N,\operatorname{owner}_N,\operatorname{pred}_N, \operatorname{Succ}^r_N,\operatorname{Rep}^{\rho}_N,F,E),\]
\[\begin{array}{rcl} F&\subseteq&N\times\mathbb{N}\times N,\\ E&=&\prod_{v\in VID}E_v,\\ \mathsf{SafetyRoot}(\mathcal{R}_N)&=& (\operatorname{pred}_N,\operatorname{Succ}^r_N),\\ \mathsf{PerfWitness}(\mathcal{R}_N)&=&F. \end{array}\]
Proposition 1 (Rotation equivariance).#
\[\begin{aligned} t\in R,\quad N+t=\{n+t:n\in N\} &\Rightarrow\\ \operatorname{owner}_{N+t}(k+t)=\operatorname{owner}_N(k)+t. \end{aligned}\]
Proof.
\[\begin{aligned} \forall n\in N.\quad \delta_{k+t}(n+t) &=((n+t)-(k+t))\bmod M\\ &=\delta_k(n). \end{aligned}\]
Constraint 1 (Carrier separation).#
\[\begin{array}{rcl} \mathsf{PlacementOps}&=& \{0,+,-,\delta_a,(\_,\_]_R\}\\ &&\cup\{\operatorname{owner}_N,\operatorname{Rep}^\rho_N\},\\ \mathsf{CryptoOps}&=& \{\times,^{-1},\cdot_{scalar},\mathsf{interp}\}\\ &&\cup\{\mathsf{pair},\mathsf{subgroup},\mathsf{AEZ}\},\\ \mathsf{PlacementOps}&\cap&\mathsf{CryptoOps}=\varnothing,\\ \mathsf{CryptoCarrier}&\in&\{\mathbb{F}_q,\mathbb{G},\mathbb{Z}_q,\{0,1\}^*\}. \end{array}\]

Table 1 summarizes how Rings 1.0 assigns each protocol object to its disjoint algebraic carrier and cryptographic domain separator.

Table 1: Carrier boundaries and domain tags in Rings 1.0 #
ObjectCarrier or law
Chord IDsadditive cyclic group \(R=\mathbb{Z}/2^{160}\mathbb{Z}\)
DID / Sessionverifier over rings-delegation-v1
VID placement\(H_\nu:X_\nu\to R\) then owner map \(\Omega_N\)
Storage mergefactored CRDT semilattice \(\mathsf{E}(x)\sqcup\mathsf{R}(x)\)
Data provenanceMerkle batch rings-core: data-entry: mutation
Lease descriptorsrings-node:{online-node, service, mail}-descriptor,
rings-turn:service-descriptor
Store authoritycrash \(\times\) meaning lattice \(C\times M\)
Load accountingslot floor \(f_T\) + fair pool \(\mathcal{P}_T\) over \(\mathcal{R}\) slots
Onion pipelineKleisli category \(\mathbf{Kl}(M)\) with Sphinx + AEZ v5
Service receiptsrings-core: service-receipt: provisional
\(\to\) DRanking rings-service-receipt-v1
Effectswriter monad \(\mathsf{T}^{\mathcal{E}}_A\) over action lists

III-BArchitecture as Interfaces#

Rings 1.0 factors its architecture into six composable interfaces (Figure 1), separating identity authentication, transport signaling, overlay ownership, and capability-confined execution.

Definition 5 (Layer tuple).#
\[\mathcal{A}=(I,T,O,X,P,L)\]
\[\begin{array}{c|c} I & (DID,\Pi,\operatorname{Session})\\ T & (C,A_T,\mathsf{offer},\mathsf{answer},\mathsf{send},\mathsf{recv})\\ O & \mathcal{R}_N\\ X & (S_X,A_X,\mathsf{cap},I_X)\\ P & \{\mathcal{P}_\nu\}_{\nu\in Namespace}\\ L & \mathsf{App}\circ P \end{array}\]
6. Application Layer5. Protocol Layer4. Extension Runtime Layer3. Overlay Layer (PeerRing)2. Transport Layer (WebRTC / TURN)1. Identity Layer (DID / Delegation)
Figure 1: Layers of Rings Network #
Definition 6 (Identity proof).#
\[\Pi=(K,\Sigma,V,D,\mathsf{enc},\mathsf{ttl})\]
\[\begin{array}{rcl} V&:&K\times\Sigma\times B^*\to\{\top,\bot\},\\ D&:&K\to R,\\ \mathsf{enc}&:&\Sigma\to B^*,\\ \mathsf{ttl}&:&\Sigma\to Time. \end{array}\]
Invariant 1 (Session authority).#
\[d\in X_D,\qquad s\in K,\qquad D(k_d)=H_D(d).\]
\[\begin{aligned} \operatorname{Session}(d,s,e) &\Rightarrow V\bigl(k_d,\sigma_{d\to s},\\ &\quad\mathtt{rings\text{-}delegation\text{-}v1}\Vert d\Vert s\Vert e\bigr)\\ &\quad=\top\land now<e, \end{aligned}\]

checked at each authenticated hop via \(\mathsf{HopCheck}(d,s,e)\equiv\operatorname{Session}(d,s,e)\).

Definition 7 (Transport interface).#
\[T=(C,\mathsf{offer},\mathsf{answer},\mathsf{send},\mathsf{recv})\]
\[A_T=\{\mathsf{Offer},\mathsf{Answer},\mathsf{Ice},\mathsf{Open}, \mathsf{Send},\mathsf{Recv},\mathsf{Close}\}.\]
\[I_T:A_T^*\to\mathsf{IO}_{WebRTC}\cup\mathsf{IO}_{Native}.\]

Figures 2 and 3 contrast standard multi-round-trip trickle-ICE negotiation against Rings' 1-RTT overlay SDP/ICE signaling exchange (which front-loads candidate gathering into one Offer/Answer DHT exchange prior to direct-path ICE connectivity checks and DTLS/SCTP setup).

Node 1Node 2SDP OfferSDP AnswerTrickle ICE CandidatesTrickle ICE CandidatesDTLS / SCTP Open
Figure 2: Standard trickle-ICE / SDP signaling exchange #
Node 1Node 2Offer + Gathered ICEAnswer + Gathered ICEOverlay 1-RTT, then Direct DTLS / SCTP
Figure 3: Rings single round-trip overlay SDP/ICE signaling exchange #
Definition 8 (Runtime interpreter).#
\[\mathcal{X}=(S_X,A_X,\mathsf{cap},I_X)\]
\[\begin{array}{rcl} \mathsf{cap}&\subseteq&A_X,\\ I_X&:&A_X^*\to \mathsf{IO},\\ I_X(\epsilon)&=&\mathsf{Noop},\\ I_X(\alpha\cdot\beta)&=&I_X(\alpha);I_X(\beta). \end{array}\]

Figure 4 illustrates how the browser host FFI enforces capability check \(\mathsf{cap}\) between network/timer events and pure core steps.

Browser Host(WebRTC / IDB)JS FFI Bridge(cap-checked I_X)Wasm Core(rings-core step)Load & initInstantiateNet / timer eventstep(S, i)Effects A_X*Permitted IO
Figure 4: Wasm runtime confinement and capability-checked effect boundary #
Obligation 1 (Runtime confinement).#
\[\begin{array}{rcl} \tau&:&S\times I\to \mathcal{E}+(S\times O\times A_X^*),\\ \operatorname{set}(\pi_A(\tau(s,i)))&\subseteq&\mathsf{cap},\\ a\notin\mathsf{cap}&\Rightarrow&I_X(a)=\mathsf{Reject}(a). \end{array}\]

Capability checks apply atomically per step\((S,i)\) transition on the host FFI boundary (aborting state commit and rejecting host IO if any emitted action falls outside \(\mathsf{cap}\)).

III-CCategory and Effect Monad#

We summarize namespace placement and pure effect emission using lightweight slice-category and writer-monad notation as a uniform interface vocabulary for the pure transition reducers verified in Section X, rather than relying on deep categorical machinery in later protocol proofs.

Definition 9 (Namespace object).#
\[\begin{array}{rcl} \nu&\in&\{D,V,M,H,U,Q,W\},\\ H_\nu&:&X_\nu\to R,\\ (X_\nu,H_\nu)&\in&\mathbf{Set}/R, \end{array}\]

indexing DID, VID, Mailbox, Hidden Service, User/Relay, Queue/Quota, and World-Exit namespaces.

Definition 10 (Placement functor).#
\[\begin{array}{rcl} \Omega_N&:&\mathbf{Set}/R\to\mathbf{Set}/N,\\ (X,H)&\mapsto&(X,\operatorname{owner}_N\circ H). \end{array}\]
\[P^N_\nu=\operatorname{owner}_N\circ H_\nu:X_\nu\to N.\]
Proposition 2 (Placement functoriality).#
\[f:X_\nu\to X_\mu,\qquad H_\mu\circ f=H_\nu \implies P^N_\mu\circ f=P^N_\nu.\]
Proof.

\(\operatorname{owner}_N\circ H_\mu\circ f = \operatorname{owner}_N\circ H_\nu\).

Definition 11 (Writer effect monad).#
\[\begin{array}{rcl} A^*&=&\mathsf{FreeMonoid}(A),\\ \mathsf{T}_A(X)&=&X\times A^*,\\ \eta(x)&=&(x,\epsilon),\\ (x,\alpha)\mathbin{\gg\!=}f &=& \mathsf{let}\ f(x)=(y,\beta)\ \mathsf{in}\ (y,\alpha\cdot\beta),\\ f^\star(x,\alpha)&=&(x,\alpha)\mathbin{\gg\!=}f. \end{array}\]
Proposition 3 (Effect associativity).#
\[(h^\star\circ g^\star)\circ f^\star = h^\star\circ(g^\star\circ f^\star).\]
Proof.

\(((\alpha\cdot\beta)\cdot\gamma) = (\alpha\cdot(\beta\cdot\gamma))\).

Definition 12 (Typed failure stack).#
\[\mathsf{T}^{\mathcal{E}}_A(X)=\mathcal{E}+(X\times A^*).\]
\[\begin{array}{rcl} \pi_A(e\in\mathcal{E})&=&\epsilon,\\ \pi_A(x,\alpha)&=&\alpha,\\ \mathsf{RecoverableReport}&\in&A. \end{array}\]

Here \(\mathcal{E}\) captures hard transition aborts (discarding emitted actions via \(\pi_A(e)=\epsilon\)), whereas recoverable failures emit \(\mathsf{RecoverableReport}\in A\) along the normal \((X\times A^*)\) branch. For \((\sigma_S\times\sigma_O):S_\nu\times O_\nu\to S_\mu\times O_\mu\), \(\mathsf{T}^{\sigma_{\mathcal{E}}}_{\sigma_A}(g)=\sigma_{\mathcal{E}}+(g\times\sigma_A^*)\).

Definition 13 (Protocol object and morphism).#
\[\begin{aligned} \mathcal{P}_\nu &= (X_\nu,S_\nu,I_\nu,O_\nu,A_\nu,\mathcal{E}_\nu,H_\nu,\tau_\nu),\\ \tau_\nu &: S_\nu\times I_\nu \to \mathsf{T}^{\mathcal{E}_\nu}_{A_\nu}(S_\nu\times O_\nu). \end{aligned}\]

A protocol morphism \(\Sigma:\mathcal{P}_\nu\to\mathcal{P}_\mu=(\sigma_X,\sigma_S,\sigma_I,\sigma_O,\sigma_{\mathcal{E}},\sigma_A^*)\) satisfies \(H_\mu\circ\sigma_X=H_\nu\) and \(\mathsf{T}_{\sigma_A}^{\sigma_{\mathcal{E}}}(\sigma_S\times\sigma_O)\circ\tau_\nu=\tau_\mu\circ(\sigma_S\times\sigma_I)\).

IV.Chord Implementation — PeerRing and Overlay Routing#

IV-ABase Chord and CorrectChord Maintenance#

\[\begin{array}{rcl} \mathsf{Base}&=&\mathsf{Chord},\\ \mathsf{Maintenance}&=&\mathsf{CorrectChord},\\ \mathsf{Object}&=&\mathcal{R}_N,\\ \mathsf{Witnesses}&=& \{\text{Algorithms }\ref{alg:join},\ \ref{alg:lookup},\ \ref{alg:stabilize}\}. \end{array}\]

This section fixes Chord as the base lookup protocol and CorrectChord as the ring-safety maintenance law [1, 6] (Figures 5 and 6), then extends the pure overlay state machine (PeerRing) with range-proved finger convergence and non-transitive WebRTC routing.

0123456789101112131415
Figure 5: Chord identifier ring and finger chords #
Definition 14 (Local node state and finger targets).#
\[\begin{aligned} S_n &= (p_n,L_n,F_n,E_n),\qquad \operatorname{target}_i(n) = n+2^i,\\ \operatorname{finger}_i(n) &= \operatorname{owner}_N(\operatorname{target}_i(n)), \end{aligned}\]

where \(p_n\in N\cup\{\bot\}\), \(L_n\in N^{\leq r}\), \(F_n:[0,L)\to N\cup\{\bot\}\) (with \(F_n(i)\in\{\bot,\operatorname{finger}_i(n)\}\) upon convergence), and \(E_n\subseteq E\).

Algorithm 1: DHT Join Transitions #
  1. 1function BeginJoin(\(n, known\))
  2. 2\(pred[n]\gets none\); \(a\gets \mathit{FindSuccessor}(n.did)\)
  3. 3Return \(Remote(known, a)\)
  4. 4function InstallSuccessor(\(n, s\))
  5. 5\(succ[n]\gets take(r, [s])\)
  6. 6Return \(Remote(s, QuerySuccList(s))\)
  7. 7function InstallSuccList(\(n, s, list\))
  8. 8\(succ[n]\gets take(r, s :: list)\)
  9. 9if \(head(succ[n]) \neq none\) then
  10. 10\(h\gets head(succ[n])\)
  11. 11Return \(Multi(Notify(h, n.did),\) \(SyncStorage(h))\)
  12. 12else
  13. 13Return \(Noop\)
Algorithm 2: DHT Lookup Algorithm #
  1. 1function Lookup(\(key, n\))
  2. 2if \(key = n.did\) then
  3. 3Return \(Local(n)\)
  4. 4\(s\gets head(succ[n])\)
  5. 5if \(s = none\) then
  6. 6Return \(Repair(QuerySuccList(n))\)
  7. 7if \(key \in (n.did, s]\) then
  8. 8Return \(Local(s)\)// Delegated by Law 5 (B2) on bridged gaps
  9. 9\(next\gets \mathit{closest\_preceding\_node}(n, key)\)// Searches \(F_n\cup L_n\)
  10. 10if \(next = none\) then
  11. 11Return \(Repair(QuerySuccList(s))\)
  12. 12else
  13. 13Return \(Remote(next, \mathit{FindSuccessor}(key))\)
0123456789101112131415
Figure 6: Chord exponential finger intervals from node 1 #
Algorithm 3: DHT Stabilization #
  1. 1procedure Stabilize(\(n, topo\))
  2. 2\(actions\gets []\); \(c\gets topo.pred\); \(s\gets head(succ[n])\)
  3. 3if \(c \neq none\) and \(c \in (n.did, s)\) then
  4. 4\(succ[n]\gets insert(succ[n], c)\)
  5. 5\(actions\gets actions :: FindSuccessor(c)\)
  6. 6\(succ[n]\gets take(r, merge(succ[n], topo.succ))\)
  7. 7if \(head(succ[n]) \neq none\) then
  8. 8\(h\gets head(succ[n])\)
  9. 9\(actions\gets actions :: Notify(h, n.did)\)
  10. 10Return \(Multi(actions)\)
Invariant 2 (Ring fixpoint and lookup owner preservation).#
\[\begin{gathered} \begin{aligned} \operatorname{Inv}_{ring}(N,S) \equiv \forall n\in N.\;& p_n=\operatorname{pred}_N(n)\\ &\land L_n=\operatorname{Succ}^r_N(n), \end{aligned}\\[2pt] \mathsf{Steady}(N)\land\operatorname{Inv}_{ring}(N,S) \Rightarrow \operatorname{Lookup}(S,k)\Downarrow \operatorname{owner}_N(k). \end{gathered}\]
Remark 1 (Static-Ring vs. Bounded-Churn Lookup Scope).#

Invariant 2 guarantees exact owner resolution and \(O(\log |V|)\)-hop lookup [1, 5, 6] on a steady, finger-converged ring \(\mathsf{Steady}(N)\). Under transient churn or before finger convergence completes, some fingers remain sparse or stale; payload delivery then preserves loop-free correctness within \(\le 2|V|\) hops via bridge-delegated delivery (Theorem 1).

IV-BRange-Proved Finger Convergence#

Classical Chord refreshes one random finger slot per stabilization period, requiring \(\Theta(m)\) periods (\(m=160\)) to converge and failing to distinguish unverified neighbor hints from proved entries [5]. Because Rings nodes span browser and WAN peers whose asynchronous NAT-traversing WebRTC handshakes are orders of magnitude costlier than local memory transitions, rings-core (dht::finger::convergence) specifies finger maintenance as a pure transition \(\mathrm{step}:(S,\mathrm{Event})\to(S,\mathrm{Actions})\) built on the Chord Range Lemma and four operational disciplines.

Lemma 1 (Chord Range Lemma [1]).#

With half-open interval \([x,y)_R=\{z\in R:0\le\delta_x(z)<\delta_x(y)\}\) (\([x,x)_R=\varnothing\)), for any nonempty live membership view \(V\subseteq R\) and target \(x\in R\),

\[\operatorname{succ}_V(x)=y \iff y\in V \;\land\; [x,y)_R\cap V=\varnothing.\]

Specifically, for node \(n\in V\) and slot \(i\in[0,L)\) (\(L\le 160\)) with target \(t_i=n+2^i\), let \(s=\operatorname{succ}_V(t_i)\) and \(d=\delta_n(s)\). If \(s=n\), then \(\operatorname{succ}_V(t_j)=n\) for all \(j\in[i,L)\); otherwise \(2^i\le d\) and

\[\forall j\ge i:\quad 2^j\le d \implies \operatorname{succ}_V(t_j)=s.\]
Proof.

By definition, \(\operatorname{succ}_V(t_i)=s\) implies \(s\in V\) and \([t_i,s)_R\cap V=\varnothing\). If \(s=n\), every \(t_j\) with \(i\le j<L\) lies in \([t_i,n)_R\) (since \(2^i\le 2^j < 2^{160}\)), so \([t_j,n)_R\cap V=\varnothing\) and \(\operatorname{succ}_V(t_j)=n\). Otherwise \(2^i\le d\), and for every \(j\ge i\) with \(2^j\le d\) we have \(t_j\in[t_i,s]_R\), so \([t_j,s)_R\subseteq[t_i,s)_R\) is empty in \(V\) and \(\operatorname{succ}_V(t_j)=s\).

Definition 15 (Range proof).#

A lookup for slot \(i\) answered by \(s\) yields a range proof \(\pi=(i,\mathrm{id},e_\pi,s,\operatorname{end})\), where \(\mathrm{id}\) is the lookup UUID [12], \(e_\pi\) is the evidence epoch at issue, and

\[\operatorname{end}(i,s)= \begin{cases} L-1, & s=n,\\ \min\bigl(L-1,\lfloor\log_2\delta_n(s)\rfloor\bigr), & 2^i\le\delta_n(s),\\ \mathsf{Invalid}, & \text{otherwise.} \end{cases}\]

Proof \(\pi\) covers the contiguous slot interval \([i,\operatorname{end}]\).

Corollary 1 (Lookups per pass).#

If the true successor values partition the \(L\) slots into \(m_{\mathrm{runs}}\) maximal runs of equal successor, a complete convergence pass requires at most \(m_{\mathrm{runs}}\le\min(L,|V|)\) routed lookups; under uniform identifier placement, \(\mathbb{E}[m_{\mathrm{runs}}]=O(\log |V|)\).

Proof.

Each answered lookup for slot \(i\) yields \(\pi=(i,\mathrm{id},e_\pi,s,\operatorname{end})\) covering the maximal run \([i,\operatorname{end}]\) of identical successor \(s\) by Lemma 1, advancing cursor \(c\gets\operatorname{end}+1\) past the entire run. Because there are at most \(L\) slots and each distinct successor begins at most one maximal run before wrapping past \(n\), \(m_{\mathrm{runs}}\le\min(L,|V|)\). Under uniform random placement of \(|V|\) DIDs on \(R=\mathbb{Z}/2^{160}\mathbb{Z}\), expected inter-node spacing is \(2^{160}/|V|\), so slots with \(2^j\lesssim 2^{160}/|V|\) share \(\operatorname{head}(n)\) while only the top \(O(\log |V|)\) slots span distinct sub-intervals, giving \(\mathbb{E}[m_{\mathrm{runs}}]=O(\log |V|)\).

Lemma 2 (Local Range Confirmation).#

Let \(h=\operatorname{head}(n)\) be the first clockwise successor of \(n\). When \(n\) receives an authenticated stabilization report from \(h\) echoing \(n\)'s active stabilization token and stating \(\operatorname{pred}(h)=n\), then

\[\forall j:\quad 2^j\le\delta_n(h) \implies \operatorname{succ}_V(t_j)=h.\]

Applying local confirmation sets \(\mathsf{ver}_j\gets\top\) for all \(j\le\min(L-1,\lfloor\log_2\delta_n(h)\rfloor)\) with zero routed network lookups; if an active attempt's slot lies in that range, it is superseded via \(\textsc{Progress}(\min(L-1,\lfloor\log_2\delta_n(h)\rfloor))\).

Proof.

Because \(h\) is \(n\)'s live successor head and \(h\) itself attests on \(n\)'s fresh stabilization correlation token that \(\operatorname{pred}(h)=n\), the half-open arc \((n,h)_R\) contains no member of \(V\) observable between \(n\) and \(h\). For every finger index \(j\ge 0\) with \(2^j\le\delta_n(h)\), the finger target \(t_j=n+2^j\) lies in \((n,h]_R\), so \([t_j,h)_R\subseteq(n,h)_R\) is empty in \(V\) and \(\operatorname{succ}_V(t_j)=h\) by Lemma 1. Setting \(\mathsf{ver}_j\gets\top\) for \(0\le j\le\min(L-1,\lfloor\log_2\delta_n(h)\rfloor)\) therefore proves the prefix interval using only the existing stabilization RPC (\(\textsc{Progress}\) avoids issuing any FindSuccessor lookup for those slots).

Definition 16 (Monotone Evidence Epochs).#

Each node \(n\) maintains an evidence state \((e_n,(\mathsf{chg}_j,\mathsf{ver}_j)_{j<L})\), where \(e_n\in\mathbb{N}\) is the node's monotone topology epoch [13], \(\mathsf{chg}_j\in\mathbb{N}\) is the epoch at which hint \(\mathsf{hint}_j\) last changed, and \(\mathsf{ver}_j\in\{\bot,\top\}\) records whether slot \(j\) holds a range-proved peer.

Law 1 (Hint change, slot-wise admission, and discontinuity).#
  1. Hint change: For any unverified topology/hint transition \(H\to H'\) with changed slots \(C=\{j:H_j\neq H'_j\}\neq\varnothing\), advance \(e\gets e+1\) and set \((\mathsf{chg}_j,\mathsf{ver}_j)\gets(e,\bot)\) for all \(j\in C\).

  2. Slot-wise admission: Proof \(\pi=(i,\mathrm{id},e_\pi,s,\operatorname{end})\) admits slot set \(A(\pi)=\{j\in[i,\operatorname{end}]:\mathsf{chg}_j\le e_\pi\}\). If \(A(\pi)=\varnothing\), \(\pi\) is rejected as \(\mathsf{Stale}\); otherwise, for every \(j\in A(\pi)\), \(\mathsf{hint}_j\gets(s=n\ ?\ \bot : s)\) and \(\mathsf{ver}_j\gets\top\).

  3. Discontinuity: Losing the last successor increments \(e\gets e+1\), clears \(\mathsf{ver}_j\gets\bot\) for all \(j\), and returns the attempt owner to \(\mathsf{Idle}\).

Definition 17 (Single-Owner Attempt State).#

At most one finger lookup attempt \(\alpha\) exists at node \(n\):

\[\alpha \in \mathsf{Idle} \ \mid\ \mathsf{AwR}(u,p,t) \ \mid\ \mathsf{AwA}(u,p,y,e,t),\]

where \(\mathsf{AwR}(u,p,t)\equiv\mathsf{AwR}((u,p),e_\pi,\tau_r)\) awaits a lookup report for slot \(p\) and request UUID \(u\) issued at evidence epoch \(e_\pi\) before monotonic deadline \(t=\tau_r=\mathrm{issued}+T_r\) (\(T_r=10\,\mathrm{s}\)), and \(\mathsf{AwA}(u,p,y,e,t)\equiv\mathsf{AwA}(\pi,\tau_a)\) awaits WebRTC transport admission of proved peer \(y\) at epoch \(e\) before lease deadline \(t=\tau_a=\mathrm{deferred}+T_a\) (\(T_h=180\,\mathrm{s}\), \(T_a=T_h+30\,\mathrm{s}=210\,\mathrm{s}\)).

Law 2 (Attempt consumption and outcomes).#

A report \((u',p',y')\) consumes \(\alpha\) iff either \(\alpha=\mathsf{AwR}(u,p,t)\land(u',p')=(u,p)\) or \(\alpha=\mathsf{AwA}(u,p,y,e,t)\land(u',p',y')=(u,p,y)\); all other reports are dropped as \(\mathsf{Stale}\) without mutating state or failure streak \(k\in[0,255]\). With cursor \(c\in\mathbb{N}\) and retry cooldown deadline \(\nu\in\mathbb{N}_\bot\) (an attempt may start from \(\mathsf{Idle}\) only when \(\nu=\bot\) or \(\mathrm{now}\ge\nu\)), consuming reports and timeout expirations (\(\mathrm{now}\ge\tau_r\) or \(\mathrm{now}\ge\tau_a\)) transition \((\alpha,c,k,\nu)\) via [14]:

\[\begin{aligned} \textsc{Fail}(p)&:\ (\mathsf{Idle},\ \operatorname{run}(p)+1,\ k+1,\ t+f(k+1)),\\ \textsc{Retire}(\operatorname{end})&:\ (\mathsf{Idle},\ \operatorname{end}+1,\ k+1,\ t+f(k+1)),\\ \textsc{Progress}(\operatorname{end})&:\ (\mathsf{Idle},\ \operatorname{end}+1,\ 0,\ \bot), \end{aligned}\]

where \(\textsc{Fail}(p)\) handles expired or empty lookup attempts (\(\mathsf{AwR}\)), \(\textsc{Retire}(\operatorname{end})\) handles admission refusal/expiry (\(\mathsf{AwA}\)), \(\textsc{Progress}(\operatorname{end})\) records admitted range confirmation, \(\operatorname{run}(p)=\max\{j\in[p,L):\forall l\in[p,j],\,\mathsf{hint}_l=\mathsf{hint}_p\}\) when \(\mathsf{hint}_p\neq\bot\) and \(\operatorname{run}(p)=p\) when \(\mathsf{hint}_p=\bot\), and \(f(k)=\min(2^{\min(k,6)}\,\mathrm{s},\,60\,\mathrm{s})\) with minimum issue spacing \(T_{\min}=1\,\mathrm{s}\). (Under Law 1(3), losing the last successor clears \(\alpha\gets\mathsf{Idle}\) and preserves monotonic backoff pacing until a head is restored.)

Definition 18 (Cyclic Slot Selection (next_fix_slot)).#

With \(h=\operatorname{head}(n)\) and first routable slot \(r=\lfloor\log_2\delta_n(h)\rfloor+1\) (\(r=0\) if \(h=\bot\)), let \(c\in\mathbb{N}\) be the cyclic cursor, \(A=\{j\ge\max(c,r):\neg\mathsf{ver}_j\}\), and \(B=\{j\in[r,\max(c,r)):\neg\mathsf{ver}_j\}\). The selector is

\[\operatorname{next\_fix\_slot}(c)=\operatorname{sel}(c)= \begin{cases} \min A, & A\neq\varnothing,\\ \min B, & A=\varnothing\land B\neq\varnothing,\\ \bot, & \text{otherwise.} \end{cases}\]
Proposition 4 (Starvation freedom).#

Let \(\mathcal{U}\) be the set of maximal contiguous populated equal-hint runs and individual unpopulated (\(\bot\)) or unretired slots among routable entries remaining unverified across attempts. Between any two selections in \(\mathcal{U}\), every other element of \(\mathcal{U}\) is selected at least once, and periodic revalidation reopens proved ranges whenever \(\alpha=\mathsf{Idle}\land(\neg\exists j\ge r:\neg\mathsf{ver}_j\ \lor\ k>0)\).

Proof.

Every completed or failed attempt at slot \(j\) advances \(c\) strictly past \(j\) (\(\operatorname{end}+1>j\) or \(\operatorname{run}(j)+1>j\)). Because \(\operatorname{sel}(c)\) scans cyclically from \(c\), it visits \(U\) in strict cyclic index order, preventing a single unreachable NAT peer from monopolizing the single attempt owner.

Law 3 (Report Claims (NotifyPredecessor / ReportFloor)).#

Stabilization and successor-list synchronization reports are correlated by two-phase claim tokens \(\mathsf{tok}=(h,\mathrm{id},\phi)\) with \(\phi\in\{\mathsf{Req},\mathsf{Proc}\}\). A report claims its token atomically by moving \(\mathsf{Req}\to\mathsf{Proc}\), dials at most \(K+1\) distinct candidates for stabilization (and at most \(K\) for successor sync) re-checking \(\phi=\mathsf{Proc}\) before each dial, and clears \(\mathsf{tok}\) on completion or on any \(\mathsf{SuccessorHeadChanged}\) transition (ReportFloor).

IV-CNon-Transitive WebRTC Overlay and Bridge-Delegated Delivery#

In browser and native WebRTC deployments, symmetric NATs, enterprise firewalls, and disjoint LANs violate underlay transitivity [7, 15]: if node \(a\) links to \(b\) and \(b\) links to \(c\), \(a\) may still fail ICE negotiation with \(c\). Figure 7 illustrates two full-mesh WebRTC cliques \(V_1=\{A,B,C\}\) and \(V_2=\{C,D,E\}\) joined at an articulation (bridge) node \(C(50)\) with interleaved ring order \(A(10)\prec B(30)\prec E(40)\prec C(50)\prec D(80)\).

A₁₀B₃₀E₄₀C₅₀D₈₀
Figure 7: Interleaved ring \(A(10)\to B(30)\to E(40)\to C(50)\to D(80)\) over two non-transitive WebRTC cliques \(V_1=\{A,B,C\}\) (solid) and \(V_2=\{C,D,E\}\) (dashed) sharing bridge node \(C(50)\). #

Rather than injecting unstructured neighborhood gossip or virtual fingers [16, 17] (which would violate the direct-link invariant \(\operatorname{Referenced}(S_n)\subseteq\operatorname{Admitted}(n)\)), Rings resolves non-transitive WebRTC routing with zero extra control frames via four mechanisms:

Definition 19 (Extended Topology Carrier and Multi-Predecessors).#

Each node \(n\in V\) maintains

\[\begin{aligned} S_n=\bigl(&n,\,\texttt{succ}_n,\,\texttt{pred}_n,\,\operatorname{Preds}_K(n),\\ &\texttt{fingers}_n,\,\texttt{bridged}_n,\,\Phi_n,\,\Pi_n\bigr), \end{aligned}\]

where \(\operatorname{Preds}_K(n)=\langle p_1,\dots,p_m\rangle\) (\(m\le K\), supporting capacity \(K=4\)) is ordered by descending clockwise distance \(\delta_n(p_1)>\dots>\delta_n(p_m)\) (ascending counter-clockwise distance \(\delta_{p_i}(n)\)), with primary predecessor \(\texttt{pred}_n=p_1\), \(\Phi_n\) denoting the finger-convergence evidence/attempt state (Definitions 16–18), and \(\Pi_n\) denoting the report-claim and dial-backoff state (Laws 3–4). All referenced peers satisfy

\[\begin{aligned} \operatorname{Referenced}(S_n) &=\bigl(\operatorname{set}(\texttt{succ}_n)\cup\operatorname{set}(\operatorname{Preds}_K(n))\\ &\qquad\cup\operatorname{ran}(\texttt{fingers}_n)\bigr)\setminus\{n\}\\ &\subseteq\operatorname{Admitted}(n). \end{aligned}\]
Law 4 (Multi-Predecessor Rectification and Candidate Dial Backoff).#
  1. Empty-confirmed commit: When \(r=\operatorname{head}(n)\) remains routable (\(\operatorname{Routable}(n,r)\)), \(n\) commits \(\texttt{Stabilize}(r)\) and emits \(\texttt{Notify}(r)\) even if confirmation filtering leaves \(\texttt{confirmed}\) empty.

  2. Candidate dial backoff (DialBackoff): Failed or expired candidate handshakes enter a bounded negative cache \(\mathcal{B}_n\) (\(B_{\max}=64\)) with exponential cooldown \(\beta(f)=\min(\beta_0\cdot 2^{\min(f-1,4)},\,\beta_{\max})\) (base \(\beta_0=5\,\mathrm{s}\), cap \(\beta_{\max}=60\,\mathrm{s}\), configurable to \(30\)–\(300\,\mathrm{s}\)), suppressing redundant SDP offers while clearing \(\mathcal{B}_n(c)\) immediately on explicit connects or admission.

  3. Supersede-on-Closer, Retain-on-Sub-Ring (rectify_preds): Given geometrically admissible non-self candidate \(c\in R\setminus\{n\}\) (\(c\) passes peer identity verification and is reachable or actively notified) and primary predecessor \(p_1\): if \(p_1=\bot\) or \(\delta_n(c)>\delta_n(p_1)\) (\(c\) is strictly closer to \(n\)), \(\operatorname{Preds}_K(n)\gets\langle c\rangle\); if \(\delta_n(c)\le\delta_n(p_1)\) (notification from a farther sub-clique predecessor), insert \(c\) into \(\operatorname{Preds}_K(n)\) in descending \(\delta_n(\cdot)\) order, deduplicate, and truncate to \(K\).

Lemma 3 (Articulation Retention and Sub-Clique Local Finger Proof).#

On any transitive ring, once \(\operatorname{pred}_V(n)\) notifies \(n\) and stale prior entries expire or depart, \(\operatorname{Preds}_K(n)\) collapses to the singleton global predecessor \([\operatorname{pred}_V(n)]\). At an articulation node \(C\) joining \(m\le K\) internally stabilized cliques \(V_1,\dots,V_m\), \(\operatorname{Preds}_K(C)\) retains all \(m\) sub-clique predecessors \(p_i=\operatorname{pred}_{V_i}(C)\) within two stabilization rounds (round 1 installs \(p_1\) at the head, and round 2 retains all farther \(p_i\) without interim eviction), protecting every bridge link \((p_i,C)\) and allowing each \(p_i\) to filter \(\texttt{reported.preds}\) to \(\texttt{confirmed.pred}=\operatorname{Some}(p_i)\) and prove its local sub-clique finger range \([0,\min(L-1,\lfloor\log_2\delta_{p_i}(C)\rfloor)]\) over \(V_i\) via Lemma 2.

Proof.

In a transitive ring, the true global predecessor \(\operatorname{pred}_V(n)\) has strictly maximal clockwise distance \(\delta_n(\operatorname{pred}_V(n))\) among all \(p\neq n\); once \(\operatorname{pred}_V(n)\) stabilizes and sends Notify, Law 4(3) satisfies \(\delta_n(\operatorname{pred}_V(n))>\delta_n(p_1)\) for any prior \(p_1\) and collapses \(\operatorname{Preds}_K(n)\) to \([\operatorname{pred}_V(n)]\) (with unreachable stale predecessors removed by transport eviction). At an articulation bridge \(C\) linking \(m\le K\) internally stabilized cliques \(V_1,\dots,V_m\), let \(p_1=\operatorname{pred}_{V_{\text{near}}}(C)\) denote the global primary predecessor of \(C\) (closest counter-clockwise across \(\bigcup_i V_i\)). Each sub-clique predecessor \(p_i=\operatorname{pred}_{V_i}(C)\) satisfies \(\delta_C(p_i)\le\delta_C(p_1)\), so once \(p_1\) occupies index \(0\) in round 1, every other \(p_i\)'s Notify falls into the sub-ring retention branch of rectify_preds rather than superseding \(p_1\). Since there are \(m\le K\) distinct sub-clique predecessors and rectify_preds retains the \(K\) largest \(\delta_C(\cdot)\) values, all \(\{p_1,\dots,p_m\}\) persist inside \(\operatorname{Preds}_K(C)\subseteq\operatorname{Referenced}(S_C)\) within two stabilization rounds, pinning their WebRTC links and enabling each \(p_i\) to filter reported.preds for itself and apply Lemma 2 over its routable sub-clique \(V_i\) on \([0,\min(L-1,\lfloor\log_2\delta_{p_i}(C)\rfloor)]\) (resolving cross-clique keys in \((p_i,p_1]_R\) via Law 5).

Law 5 (Passive 1-Hop Gap-Bridge Hints and Bridge-Delegated Delivery).#

Whenever \(n\) processes an authenticated TopoInfo report from \(r\in\texttt{succ}_n\), the unconfirmed peers \(U(n,r)=(\operatorname{set}(\texttt{reported.preds})\cup\operatorname{set}(\texttt{reported.succ}))\setminus\{p:\rho_n(p)\}\)—where \(\rho_n(p)\equiv (p\in\operatorname{Referenced}(S_n)\cup\{n\})\)—update the zero-TTL partial map \(\texttt{bridged}_n:\mathsf{Did}\rightharpoonup\mathsf{Did}\) (\(|\texttt{bridged}_n|\le 2K^2\), with \(p\mapsto r\) iff \(r\in\operatorname{Referenced}(S_n)\land p\notin\operatorname{Referenced}(S_n)\)). Payload delivery carries \(\sigma\in\operatorname{RouteStage}=\operatorname{aim}(\mathsf{Did}_{\bot})\times\mathsf{bridged}(\mathbb{B})\) (fields \((\texttt{via},\texttt{handed\_off})\) with \(\operatorname{aim}(\sigma,T)=\texttt{via}.\operatorname{unwrap\_or}(T)\); here \(\texttt{via}=\operatorname{Some}(b)\) is fixed only at origination by a predecessor-less node via reply_via for FindSuccessorReport replies and is delivered directly once \(b\) is reached without mid-route mutation):

  • Rule B1 (Bridged Delivery on Local Minimum in delivery_step): Node \(n\) first delivers directly if \(\operatorname{Linked}_n(T)\) (or to \(a=\operatorname{aim}(\sigma,T)\) if \(a\neq T\land\operatorname{Linked}_n(a)\)), and otherwise runs greedy clockwise forwarding (route_toward) over linked referenced peers \(\operatorname{Referenced}(S_n)\cap\operatorname{Linked}(n)\) along \((n,a]_R\). Only when greedy hits a local minimum (\(\operatorname{Handoff}(h)\)) with \(\neg\sigma.\texttt{handed\_off}\), if \(\texttt{bridged}_n(a)=\operatorname{Some}(b)\) satisfies \(b\neq n\land\operatorname{Linked}_n(b)\land\neg\operatorname{Linked}_n(a)\), \(n\) delegates to \((b,\sigma)\) when \(\delta_n(b)<\delta_n(a)\) and to \((b,(\sigma.\texttt{via},\top))\) otherwise; if no bridged hint applies, it falls back to \((h,(\sigma.\texttt{via},\top))\). When \(\operatorname{Handoff}(h)\) occurs with \(\sigma.\texttt{handed\_off}=\top\), delivery_step returns \(\bot\) (terminating the route acyclically).

  • Rule B2 (Gap-Bridge Lookup Delegation in lookup_successor): When DHT key resolution find_successor(\(k\)) would otherwise terminate with local head \(h\notin\{k,n\}\) (\(k\neq n\)) across an unlinked gap, if \(\exists(p\mapsto b)\in\texttt{bridged}_n\) with \(b\in\operatorname{Referenced}(S_n)\), \(p\notin\operatorname{Referenced}(S_n)\), \(\operatorname{Linked}_n(b)\), and \(\delta_n(k)\le\delta_n(p)<\delta_n(h)\), node \(n\) delegates FindSuccessorSend(\(k\)) via the bridge \(b^*\) minimizing \(\delta_n(p)\).

Theorem 1 (Bounded Single-Hop Bridge Delegation and Route Safety).#

Without source-routing hop lists on the wire, \(\operatorname{delivery\_step}\) over \(\operatorname{RouteStage}=\operatorname{aim}(\mathsf{Did}_{\bot})\times\mathsf{bridged}(\mathbb{B})\) preserves all four route-safety invariants on any underlay graph \(G=(V,L)\): (1) Linked (\(\{n_k,n_{k+1}\}\in L\)), (2) NeverOvershoots (\(\delta_{n_k}(n_{k+1})<\delta_{n_k}(\operatorname{aim})\) on every non-crossing hop), (3) SingleCrossing and Acyclic (the boolean crossing bit transitions \(\bot\to\top\) at most once, visiting no state \((n_k,\sigma_k)\) twice and bounding every route to \(\le 2|V|\) hops), and (4) all-pairs cross-clique delivery in \(\le 3\) hops (\(2\) hops from a clique local minimum or bridge-adjacent peer, \(3\) hops when greedy advances through a closer clique mate first) between two cliques \(V_1,V_2\) sharing bridge \(C\) whenever \((V_1\cup V_2)\setminus\{C\}\subseteq\texttt{succ}_C\cup\operatorname{Preds}_K(C)\) (supporting up to \(s+m\) total non-bridge peers under minimal \(m\)-clique notifications, or up to \(s+K=2K=8\), i.e. \(C_{\mathrm{sub}}\le 4\), when \(\operatorname{Preds}_K(C)\) holds \(K\) entries; larger or multi-bridge cliques establish direct WebRTC links seamlessly via Rings' DHT-discovered stateless cryptographic UDP/TCP TURN and multi-hop onion::udp Onion TURN in rings-turn-service).

Proof.

Because \(0<\delta_{n_k}(n_{k+1})<\delta_{n_k}(a)\iff \delta_{n_{k+1}}(a)=\delta_{n_k}(a)-\delta_{n_k}(n_{k+1})<\delta_{n_k}(a)\) on \(R=\mathbb{Z}/2^{160}\mathbb{Z}\), Invariant (2) implies \(\delta_{n_k}(\operatorname{aim}(\sigma,T))\in\mathbb{N}\) strictly decreases across every non-crossing greedy hop within each fixed stage \(\sigma\), visiting at most \(|V|-1\) nodes. At any local minimum `Handoff(h)`, \(\operatorname{Referenced}(S_n)\cap\operatorname{Linked}(n)\) contains no node in \((n,a]_R\), so any linked bridge \(b\) satisfies \(\delta_n(b)>\delta_n(a)\) and both the wrapping branch of Rule B1 and fallback handoff flip \(\texttt{handed\_off}:\bot\to\top\) (while \(\sigma.\texttt{via}\) never mutates mid-route, changing to \(\bot\) only upon reaching \(a=\operatorname{via}\) where \(b\) delivers directly to \(T\)); since `Handoff` with \(\texttt{handed\_off}=\top\) returns \(\bot\), at most one ring-wrap or gap-bridge crossing occurs per route, yielding \(\le 2|V|\) hops total. In a two-clique graph \(V_1\cup V_2\) sharing bridge \(C\), whenever \(C\)'s succ\(_C\) and \(\operatorname{Preds}_K(C)\) cover \((V_1\cup V_2)\setminus\{C\}\) (up to \(s+2=6\) combined non-bridge peers under minimal two-predecessor stabilization via Lemma 3, or up to \(s+K=8\) peers when \(\operatorname{Preds}_K(C)\) holds \(K=4\) entries), every \(u\in V_i\setminus\{C\}\) learns \(\texttt{bridged}_u(v)=\operatorname{Some}(C)\) for \(v\in V_j\setminus\{C\}\) from \(C\)'s TopoInfo. Within full-mesh clique \(V_i\), greedy forwarding takes at most one intra-clique hop \(u\to w\) to the local minimum relative to \(v\) (\(0\) hops if \(u\) itself is the local minimum or \(C\) is greedy-closest in \((u,v]_R\)), whereupon Rule B1 delegates \(w\to C\) and \(C\) delivers directly \(C\to v\) in at most \(3\) hops total.

V.CRDT Storage and Removal Stability#

V-ADID, VID, and Replicated Entry Algebra#

Definition 20 (DID and VID namespaces).#
\[\begin{aligned} \mathcal{D} &= (X_D,H_D,\Pi,\operatorname{Session}),\\ H_D &: X_D\to R,\\ \mathcal{V} &= (X_V,H_V,\operatorname{Auth}_V),\\ H_V &: X_V\to R,\\ \operatorname{PrivateKey}(H_V(x)) &= \bot,\\ \operatorname{Auth}_V(op,x,\sigma,caps) &\in \{\top,\bot\}. \end{aligned}\]
Definition 21 (Biased circular order).#
\[A\leq_C B \Longleftrightarrow \delta_C(A)\leq\delta_C(B),\]

decided relative to pivot \(C\) via Algorithm 4.

Algorithm 4: Biased Circular Comparison #
  1. 1function BiasedCompare(\(A,B,C\))
  2. 2\(a\gets \delta_C(A)\); \(b\gets \delta_C(B)\)
  3. 3if \(a < b\) then Return \(A <_C B\)
  4. 4else if \(a > b\) then Return \(B <_C A\)
  5. 5else Return \(A = B\)
Definition 22 (Replicated entry algebra and placement invariant).#
\[\begin{aligned} \mathcal{E}^{join}_v&=(E_v,\sqsubseteq,\sqcup,\bot),\\ \mathcal{E}^{final}_v&=(E_v,\mathsf{conflict}_v,\mathsf{finalize}_v), \end{aligned}\]

where \((E_v,\sqsubseteq,\sqcup,\bot)\) is a join-semilattice [18] (\(x\sqcup y=y\sqcup x\), \((x\sqcup y)\sqcup z=x\sqcup(y\sqcup z)\), \(x\sqcup x=x\), \(x\sqcup\bot=x\)), and placement satisfies

\[\operatorname{Inv}_{place}\equiv \forall \nu,x.\; \operatorname{replicas}(H_\nu(x)) \subseteq \operatorname{Rep}^{\rho}_N(H_\nu(x)).\]
Definition 23 (Mailbox and hidden service descriptor).#
\[\begin{aligned} mbox(d,e) &= H_M(\mathtt{rings.mailbox}\Vert d\Vert e),\\ entry_M &= (\eta,exp,proof_s,dst,cipher),\\ h &= (\nu,\rho,Intro,Relay,Cap,K,exp,rank),\\ VID(h) &= H_H(h),\qquad \mathsf{Lookup}(h)=P^N_H(h). \end{aligned}\]

V-BCarrier State, HLC Timestamps, and Cryptographic Data Provenance#

Definition 24 (Data Carrier and HLC Timestamps).#

A Rings data-topic carrier (dht::entry) is a 4-tuple

\[x=(V,D,\rho,\beta),\]

where \(V:\mathrm{Bytes}\times R\rightharpoonup\mathrm{Dot}\) maps live elements and their writer DIDs (dots plus multi-writer co_dots) to addition dots, \(D:\mathrm{Digest}\times R\rightharpoonup\mathrm{Dot}\) maps Keccak-256 element digests \(h(v)\) and writer DIDs \(o\in R\) to per-author removal dots (tombstones; unscoped \(D:\mathrm{Digest}\rightharpoonup\mathrm{Dot}\) is used only on single-recipient RelayMessage carriers), \(\rho:R\rightharpoonup\mathrm{Ver}\) maps each writer DID to its reset floor register (register plus co_registers), and \(\beta\in\mathbb{N}_\bot\) is the carrier liveness bound (joining by \(\max\) with \(\bot<t\)). Each version or dot \(d\) carries a Hybrid Logical Clock (HLC) timestamp [19]

\[\tau_{\mathrm{HLC}}(d)=(w,c,o),\]

ordered lexicographically by wall-clock time \(w=\tau(d)\), logical counter \(c\in\mathbb{N}\), and writer/origin DID \(o\in R\). On EntryKind::Data, a removal \(((e,o),r)\in D\) covers an addition \(((v,o'),d)\in V\) iff \(o=o'\land h(v)=e\land d\le r\), and reset floor \(\rho(o)\) covers only additions/removals authored by \(o\) with \(d\le\rho(o)\) (preserving strict non-interference across distinct writers \(o\neq o'\)). A carrier \(x\) is normalized iff no addition in \(V\) is covered by \(D\) or \(\rho\), and no removal in \(D\) is covered by \(\rho\). The delta-state join \(x\sqcup y\) [20, 21] is pointwise \(\max\) followed by normalization.

Law 6 (Per-Writer Cryptographic Provenance (DataProvenance)).#

Every element addition (Append / Reset, i.e., Extend) and removal tombstone (Retract, i.e., Tombstone) carries a per-writer cryptographic provenance proof \(\pi_{\mathrm{prov}}\in\mathsf{DataProvenance}\) signed over the canonical domain separator \(\mathtt{rings\text{-}core:data\text{-}entry:mutation}\) and a Merkle batch claim \((\mathsf{did},\mathsf{kind},\mathsf{ver},\mathrm{leaf\_count},r_{\mathrm{merkle}})\):

\[\begin{aligned} \mathsf{Verify}\bigl(&k_o,\sigma_o,\mathtt{rings\text{-}core:data\text{-}entry:mutation}\\ &\Vert\mathsf{op}\Vert k_{\mathrm{topic}}\Vert r_{\mathrm{merkle}}\Vert(w,c,o)\bigr)=\top, \end{aligned}\]

where \(\mathsf{op}\in\{\mathsf{Reset},\mathsf{Append},\mathsf{Retract}\}\), \(k_{\mathrm{topic}}\in R\) is the placement key, \(r_{\mathrm{merkle}}\) commits to the batch of element digests \(e=h(v)\), and \(o=D(k_o)\) matches the HLC origin DID. Unauthenticated deltas or wall-clock timestamps exceeding local clock \(t+\sigma\) are rejected at admission.

V-CRemoval Stability Horizon, Factored Carrier, and Tombstone Bounds#

Definition 25 (Stability Horizon and Retirement).#

For data topics (EntryKind::Data), writes request default retention \(\mathtt{DEFAULT\_TTL\_MS}=600\,\mathrm{s}\) up to element horizon \(H=\mathtt{MAX\_TTL\_MS}=6\,000\,\mathrm{s}\) (\(6\cdot 10^6\,\mathrm{ms}\)) under tight clock-skew tolerance \(\sigma=\mathtt{TS\_OFFSET\_TOLERANCE\_MS}=3\,\mathrm{s}\) (whereas offline relay-inbox mail permits \(\mathtt{DEFAULT\_RELAY\_INBOX\_TTL\_MS}=86\,400\,\mathrm{s}\) up to \(\mathtt{MAX\_RELAY\_INBOX\_TTL\_MS}=7\,\mathrm{d}\) bounded by signed hold instant). A removal \((e,r)\) (or floor \(\rho\)) is stable at clock \(t\) iff

\[t\ge\tau(r)+H+\sigma.\]

The retirement projection \(\operatorname{retire}_t(x)\) drops additions with \(t\ge\tau(d)+H\) and removals/registers with \(t\ge\tau(r)+H+\sigma\). Because the horizon \(H\) is uniform and \(d\le r\implies\tau(d)\le\tau(r)\), \(\operatorname{retire}_t\) never leaves a live addition covered by a retired removal and is a join-semilattice homomorphism satisfying \(\operatorname{retire}_t\circ\operatorname{retire}_s=\operatorname{retire}_{\max(s,t)}\) (distinct from the carrier-level expiry predicate \(\mathrm{retired\_at}(x,t)\), which empties surviving additions once \(t\ge\beta\) if \(\beta\neq\bot\)).

Lemma 4 (Stable removes cover only retired adds).#

If \((e,r)\) is stable at the clock \(t_p\) of some node \(p\), then every addition \((v,d)\) covered by \((e,r)\) is already retired at the clock \(t_q\) of every node \(q\) at the same instant (\(t_q\ge t_p-\sigma\ge\tau(r)+H\ge\tau(d)+H\)).

Proof.

Since removal \((e,r)\) covers addition \((v,d)\), Definition 24 gives \(d\le r\) in lexicographic HLC order, hence \(\tau(d)\le\tau(r)\). By clock-skew admissibility, any two synchronized honest clocks \(t_p,t_q\) at the same physical instant differ by at most \(\sigma\), so \(t_q\ge t_p-\sigma\). Combining stability at \(p\) (\(t_p\ge\tau(r)+H+\sigma\)) yields \(t_q\ge\tau(r)+H\ge\tau(d)+H\), so \(\operatorname{retire}_{t_q}\) removes \((v,d)\) on every read, join, or sync at \(q\).

Law 7 (Remove survival and Factored Carrier).#

An unstable remove or register leaves a holder's replica only by (i) \(\operatorname{retire}_t\) at stability, (ii) an ack-gated range handoff whose receiver holds it, or (iii) a platform loss event—never by storage eviction, cap, or truncation. To enforce this, every normalized carrier \(x\) factors into an element side and a remove side:

\[\begin{aligned} x &= \mathsf{E}(x)\sqcup\mathsf{R}(x),\\ \mathsf{E}(x) &= (V,\varnothing,\bot,\beta),\qquad \mathsf{R}(x) = (\varnothing,D,\rho,0). \end{aligned}\]

\(\mathsf{E}(x)\) is stored in the data store at authority \((\mathsf{Cch},\mathsf{Reb})\), whereas \(\mathsf{R}(x)\) is persisted in the dedicated removal store (dht-removals) at \((\mathsf{Dur},\mathsf{Ret})\) (RecordAuthority::Retained). Byte-budget eviction maps \(x\mapsto\mathsf{R}(x)\) (dropping only \(\mathsf{E}(x)\)), \(\mathrm{put}(k,x)\) flushes \(\mathsf{R}(x)\) before writing \(\mathsf{E}(x)\), and reads project \(\mathrm{get}_t(k)=\operatorname{retire}_t(\mathsf{E}_k\sqcup\mathsf{R}_k)\).

Theorem 2 (No Resurrection).#

Under Law 7, if holder \(p\) holds \((e,r)\) at \(t_0\) and experiences no loss event before \(\tau(r)+H+\sigma\), then across any sequence of joins, evictions, and crashes, no read at \(p\) after \(t_0\) ever serves an addition covered by \((e,r)\).

Proof.

Before stability (\(t<\tau(r)+H+\sigma\)), Law 7 keeps \(D_p(e)\ge r\) in the durable removal store across evictions and crashes, so \(\mathrm{get}_t(k)=\operatorname{retire}_t(\mathsf{E}_k\sqcup\mathsf{R}_k)\) normalizes away any covered addition. At and after stability, Lemma 4 guarantees that every covered addition has \(t\ge\tau(d)+H\) and is stripped by \(\operatorname{retire}_t\).

Remark 2 (Clock-Skew Boundary for Browser Nodes).#

Lemma 4 and Theorem 2 rely on bounded physical clock skew \(|t_p-t_q|\le\sigma=3\,\mathrm{s}\) across synchronized honest holders. When a browser device wakes from sleep with wall-clock drift exceeding \(\sigma\), Law 6 temporarily rejects skewed writes until OS/NTP time resynchronizes, prioritizing strict no-resurrection safety over skewed liveness. Without read fencing, a pure wall-clock projection \(t_q\mapsto\operatorname{retire}_{t_q}(c[k])\) at a waking node \(q\) whose wall clock lags a synchronized peer \(p\) by more than \(\sigma\) (\(t_q<t_p-\sigma\)) would fail to retire and transiently surface an unretired addition \((v,d)\) whose covering tombstone \((e,r)\) has already reached stability and been garbage-collected at \(p\). Fencing local reads against a combined monotonic and Byzantine-safe admitted-HLC lower bound (\(\tau-\sigma\le t_{\mathrm{admit}}\) under Law 6) prevents backward wall-clock jumps and awake clock stalls from resurrecting retired additions; if OS/browser suspension pauses both wall and monotonic clocks prior to NTP resynchronization, no single untrusted peer can safely advance \(q\)'s read floor past \(t_q\) without risking premature-retirement DoS, so read fencing complements rather than replaces OS/NTP clock resynchronization.

Law 8 (Tombstone Bound (Storage Tombstone Full)).#

Each data carrier is bounded by \(T_{\max}=D_{\max}=\mathtt{ENTRY\_DATA\_MAX\_LEN}=1024\) removes. Any peer delta \(\delta\) with \(|D_\delta|>T_{\max}\) is inadmissible, and any operation or join whose retired result \(y=\operatorname{retire}_t(x\sqcup\delta)\) has \(|D_y|>T_{\max}\) is refused with \(\mathsf{Err}(\mathsf{Exhausted})\) (Storage Tombstone Full), leaving the stored carrier unchanged. Every admitted carrier encodes in at most \(W=w_0+D_{\max}(P_{\max}+\lambda+w_D)+T_{\max}w_T+w_\rho=33\,731\,696\,\text{B}\) (\(w_0=47\), \(P_{\max}=32\,768\), \(\lambda=3\), \(w_D=69\), \(w_T=101\), \(w_\rho=65\,\text{B}\); \(33.73\,\text{MB}\le \tfrac{3}{4}\mathtt{TRANSPORT\_MAX\_SIZE} =45\,\text{MB}\le 60\,\text{MB}\)), and any admissible sync delta simulates a sequence of \(\le 2|D_\delta|+|V_\delta|+1\) writer operations.

V-DFetch Cache Linearization and Signed Lease Heartbeats#

Law 9 (Fetch-Cache Pure-Read Linearization).#

The local fetch cache \(c:K\rightharpoonup X\) is a \((\mathsf{Vol},\mathsf{Reb})\) mirror whose mutations (\(\mathrm{put},\mathrm{obs},\mathrm{evict}\)) execute atomically under the cache lock while reads are pure projections \(t\mapsto\operatorname{retire}_t(c[k])\) that perform zero store writes or deletions. Consequently, every cache transition linearizes [22] at its store put and every read at its store get, eliminating concurrent read-retire lost-update races.

Law 10 (Signed Lease Heartbeats (LeaseHeartbeat)).#

To eliminate the \(120\) tombstones per hour per service (\(3\,600\,\mathrm{s}/I\)) and \(O(N_{\mathrm{reg}}\cdot\mathrm{churn})\) read-modify-write overhead generated when registrants overwrite timestamped descriptors every \(I=30\,\mathrm{s}\), a registrant signs a fixed lease descriptor \(d\) under the unified SignedDescriptor domain family (rings-node:{online-node, service, mail}-descriptor and rings-turn:service-descriptor) binding its identity, process epoch, capabilities, freshness window \(T=90\,\mathrm{s}\), and lease expiration \(\ell=t+\Lambda\) (\(\Lambda=10\,\mathrm{min}\)). Each heartbeat at clock \(t\) emits only \(\mathrm{Extend}([d])\) (writing zero tombstones and performing zero registry reads), rotating \(d\mapsto d'\) only when \(t+2I\ge\ell\) or capabilities change. Readers at clock \(t\) accept the verified descriptor of greatest \(\ell\) satisfying \(\ell\le t+\Lambda+\sigma\), \(T\le\Lambda\), \(t\le\ell\), and \(t\le\tau^*(d)+T+\sigma\).

VI.Durable Local Stores and Replicated Custody#

VI-AAuthority Lattice, Presence Markers, and Platform Crash Durability#

A Rings node persists replay windows, onion entry guards, removal records, and relay mail across native file systems and browser IndexedDB backends. We unify their presence and crash-survival guarantees via a product authority lattice (RecordAuthority) [23].

Definition 26 (Crash-Meaning Authority Lattice \(C\times M\)).#

The crash chain \(C=\mathsf{Vol}\sqsubset\mathsf{Cch}\sqsubset\mathsf{Dur}\) and meaning chain \(M=\mathsf{Reb}\sqsubset\mathsf{Ret}\sqsubset\mathsf{Aut}\) form the componentwise lattice \(C\times M\) with monotone obligation map \(O(c,m)=O(c)\cup O(m)\):

\[\begin{aligned} O(\mathsf{Vol}) &= O(\mathsf{Cch})=\varnothing,\\ O(\mathsf{Dur}) &= \{\text{Atomicity (A)},\,\text{Survival (D)}\},\\ O(\mathsf{Reb}) &= \varnothing,\qquad O(\mathsf{Ret})=\{\text{No-Eviction (N)}\},\\ O(\mathsf{Aut}) &= \{\text{N},\,\text{Witnessed-Presence (W)},\,\text{Fail-Closed (F)}\}. \end{aligned}\]

By the Admissibility Law, a store may open at \((c,m)\) only if \(c\sqsupseteq\operatorname{req}(m)\), where \(\operatorname{req}(\mathsf{Reb})=\mathsf{Vol}\) and \(\operatorname{req}(\mathsf{Ret})=\operatorname{req}(\mathsf{Aut})=\mathsf{Dur}\). Table 2 details the authority levels assigned across Rings 1.0 local stores.

Table 2: Authority assignments across Rings 1.0 local stores #
Local StoreAuth. \((c,m)\)Discharged Obligations
DHT Data Store\((\mathsf{Cch},\mathsf{Reb})\)Disposable / rebuildable
Fetch Cache / Measure\((\mathsf{Vol},\mathsf{Reb})\)Pure-read mirror
Onion Entry Guards\((\mathsf{Dur},\mathsf{Reb})\)A, D (DurableCache)
CRDT Removal Store\((\mathsf{Dur},\mathsf{Ret})\)A, D, N (Retained)
Relay Custody Carriers\((\mathsf{Dur},\mathsf{Ret})\)A, D, N (\(r\)-repl. on \(\mathsf{Dur}^\circ\))
Transaction Replay\((\mathsf{Dur},\mathsf{Aut})\)A, D, N, W, F (Authoritative)
Law 11 (Presence Markers (.p) and Per-Platform Crash Durability).#
  1. Presence markers (.p): In an authoritative native store, each record \(n=\mathrm{hex}(\mathrm{SHA1}(k))\) (used strictly as a fixed-width local filesystem key over canonical internal storage keys; SHA-256 is a drop-in substitute if untrusted external keys are exposed) has an empty witness marker \(n.\mathtt{p}\) created and directory-synced only after \(n.\mathtt{tmp}\to n\) is flushed and directory-synced. On deletion, removing \(n.\mathtt{p}\) is followed by a parent-directory sync barrier before unlinking \(n\) and syncing the directory again, preserving \(P\subseteq R\) across arbitrary OS crash points. At restore (open), unmarked data records \(n\in R\setminus P\) are repaired in place by re-creating \(n.\mathtt{p}\), whereas any \(n\in P\setminus R\) is classified as \(\mathsf{Missing}(n)\) and fails stream \(n\) closed (discharging W for every partial loss \(\lambda_{\mathrm{part}}\), whereas total directory loss \(\lambda_{\mathrm{tot}}\) leaves \(P=R=\varnothing\) and serves as the documented operator reset).

  2. macOS / iOS: File data and directory entries are flushed via \(\mathtt{fcntl}(\mathtt{F\_FULLFSYNC})\) [24].

  3. Windows: Temporary file data flushes via FlushFileBuffers and directory mutations execute via MoveFileExW using the MOVEFILE_REPLACE_EXISTING and MOVEFILE_WRITE_THROUGH flags [25].

  4. Linux / Unix: Data files flush via \(\mathtt{fsync}\) followed by parent directory \(\mathtt{fsync}\) after atomic rename [23].

  5. Browsers (IndexedDB): Read-write transactions at \(\mathsf{Dur}\) open with explicit \(\{\mathit{durability}:\text{``\texttt{strict}''}\}\) (forcing OS buffer flush / SQLite EXTRA or full WAL checkpoint across Chromium, Gecko, and WebKit [26, 27, 28, 29, 30]) combined with \(\mathtt{navigator.storage.persist()}\) [31]. Because browsers delete origin storage whole (\(P=\varnothing\)) and ephemeral contexts can only claim durability (\(\mathsf{Dur}^\circ\)), node-local stores open at \((\mathsf{Dur}^\circ,m)\) with session end as \(\lambda_{\mathrm{tot}}\), while custody of other nodes' mail requires \(r\ge 2\) replicated holders.

Law 12 (Group Commit (put*)).#

Replay transitions \(t_1<t_2<\dots\) execute in lock order on speculative tables \(\hat{T}\) with undo log entries \(u_i\) and coalesce into batches \(B_j\) whose distinct write-set \(W_j\) is committed by a single \(\mathrm{put}^*(W_j)\) (with concurrent readers isolated from uncommitted \(\hat{T}\) until commit): on native targets, all \(n.\mathtt{tmp}\) files are pushed before a single drive-cache barrier (\(\mathtt{F\_FULLFSYNC}\)), renamed, and directory-synced once, after which Authoritative batches run witness_batch to create missing \(n.\mathtt{p}\) markers and perform a final directory sync; on IndexedDB, all puts share one strict read-write transaction. Callers are released only after \(\mathrm{put}^*(W_j)=\mathsf{Ok}\) (latency \(\le 2\phi\)); on \(\mathsf{Err}\), \(\hat{T}\) rolls back via \(u_i\) to the last durable state \(T\).

VI-CReceiver Custody Set and Age-Gated Replicated Relay Custody#

Definition 27 (Receiver Custody Set (\(\mathcal{K}_s\))).#

To prevent relay mail admitted into \(\mathcal{W}_s\) from being lost if the node restarts before the application consumes it from the volatile inbox, the receiver record of stream \(s\) co-persists \((\mathcal{W}_s,\mathcal{K}_s)\) atomically in a single \((\mathsf{Dur},\mathsf{Aut})\) record, where \(\mathcal{K}_s\subseteq\mathbb{N}\times\mathrm{Digest}\times\mathbb{N}\) holds admitted but untaken deliveries \((q,h,x)\) with spent horizon \(x=\mathit{ts}+\mathit{ttl}+H_I+2\epsilon\) (for clock-skew safety margin \(\epsilon>0\) and \(|\bigcup_s\mathcal{K}_s|\le\mathtt{RELAY\_INBOX\_MAX\_LEN}=64\)).

Law 14 (Custody Lifecycle and Age-Gated Replicated Relay Chain).#
  1. Custody drain and release: On drain after \(\mathrm{put}^*\), an element \((s,q,h)\) already in \(\mathcal{K}_s\) is requeued without re-checking \(\mathcal{W}_s\); a new element commits \((\mathcal{W}'_s,\mathcal{K}_s\cup\{(q,h,x)\})\) before queueing; and the carrier tombstone/Ack is issued only after the application takes the message and commits \((\mathcal{W}_s,\mathcal{K}_s\setminus\{(q,h,x)\})\). By information-theoretic indistinguishability, no bounded-window receiver can safely admit un-custodied mail that has fallen behind live traffic (\(q<\operatorname{rmin}(\mathcal{W}_s)\), where \(\operatorname{rmin}(\mathcal{W}_s)\) is the lowest sequence tracked by \(\mathcal{W}_s\)).

  2. Age-gated replicated custody (MATH0): Because browser holders operate at claimed durability \(\mathsf{Dur}^\circ\) and experience high churn [32], a node advertises relay custody only after surviving an online age gate \(A_{\min}\) (\(\mathtt{DEFAULT\_RELAY\_AGE\_GATE\_MS}=2\,\mathrm{min}\) floored at \(\ge 4\) stabilization periods, and \(A_{\min}=30\,\mathrm{min}\) in production relay profiles). Each mail key \(k\) is replicated across a chain \(\mathcal{M}_r(k)\) of the first \(r\) age-gated holders clockwise from \(\operatorname{owner}_N(k)\) (\(r=4\) to \(\mathtt{DEFAULT\_RELAY\_INBOX\_REPLICAS}=8\)).

  3. Chain replication and digest repair: Holders forward head-to-tail along \(\mathcal{M}_r(k)\) (digest first, payload on miss) and acknowledge tail-to-head only after all \(q(k)\le r\) members persist the element. Adjacent chain members probe liveness every \(P_c=2.5\,\mathrm{s}\) (suspect after \(\tau_c=7.5\,\mathrm{s}\)) and repair via bundled carrier digest-set comparison on membership change or periodic pass, restoring \(r\) copies within \(D\le T_d+r\delta\) (where \(T_d=P_c+\tau_c=10\,\mathrm{s}\) is worst-case silent failure detection and \(\delta\) is per-hop repair transfer time).

VII.Fair Admission, Slot Accounting, and Load Bounds#

VII-ACleanest-First Slot Roster and Fair Slot Accounting#

Because a Rings DID is a free public-key digest, any node-wide table keyed solely by origin DID can be exhausted by one adversary minting thousands of identities. Rings anchors resource accounting to the authenticated transport connection slot.

Definition 28 (Cleanest-First Slot Roster (SlotRoster)).#

A node's connection registry holds at most

\[\mathcal{R}(s)=2(F+s+1)\]

active neighbour edges, where \(F=160\) is the finger table size and \(s\) is the successor capacity (\(\mathcal{R}(4)=330\) at \(s=4\); \(\mathcal{R}(3)=328\) at \(s=3\)). The SlotRoster indexes slots \(\kappa\in\{0,\dots,\mathcal{R}(s)-1\}\), tracking per-slot metadata \((\mathit{epoch},\mathit{strikes},\mathit{last\_seen\_ms})\) and live floor utilization across shared tables \(T\):

\[w_t(\kappa)=\max_T\frac{\min\bigl(\operatorname{use}^t_{T,\kappa},\,f_T\bigr)}{f_T}.\]

When a new edge \(e\) is admitted, it is assigned the cleanest free slot \(\kappa(e)=\arg\min_{\kappa\in F_t}w_t(\kappa)\) (ties broken by least index), and charges in table \(T\) remain bound to \(\kappa\) until they expire by \(T\)'s own horizon law.

Law 15 (Slot Accounting).#

Every shared table \(T\) is parameterized by a per-slot guaranteed floor \(f_T\), a shared overflow pool \(\mathcal{P}_T\), a local share \(L_T\) for principal \(\lambda\), and dedicated shares \(S_d\) for \(d\in D_T\), yielding the hard node-wide bound

\[B_T(s)=\mathcal{R}(s)\,f_T+\mathcal{P}_T+L_T+\sum_{d\in D_T}S_d.\]

With slot usage \(\operatorname{use}_\kappa\), pool overflow \(o_\kappa=\max(0,\operatorname{use}_\kappa-f_T)\), and active claimant set \(\mathcal{A}(t)=\{\kappa:o_\kappa>0\text{ or }\kappa\text{ has a queued/pending overflow request}\}\) of size \(n(\mathcal{A}(t))=|\mathcal{A}(t)|\ge 1\) (waiting claimants persist in \(\mathcal{A}(t)\) until served or withdrawn), an item introduced by slot \(\kappa\) is admitted iff either:

  1. \(\operatorname{use}_\kappa<f_T\) (within the slot's guaranteed floor), or

  2. \(\sum_{\kappa'}o_{\kappa'}<\mathcal{P}_T\) and \(o_\kappa<\bigl\lceil\mathcal{P}_T / n(\mathcal{A}(t))\bigr\rceil\) (within the slot's fair pool claim).

Theorem 3 (Multi-Table Slot Isolation).#

Across all five shared node tables—(1) Application Inbox / Mailbox Ledger (\(S_\mu\)-bounded), (2) Relay Store (\(S_\mu\)-bounded), (3) CRDT Removal Store (\(f=128\), \(\mathcal{P}=16\,384\), \(L=7\,168\), \(S_{\mathrm{custody}}=16\,384\), yielding \(B_{\mathrm{rem}}(4)=82\,176\) items at default \(s=4\); \(81\,920\) at \(s=3\)), (4) Transaction Replay Table (\(B_{\mathrm{rep}}(4)=15\,680\le 16\,384\)) and per-lane Origin Quota (\(f=1\), \(\mathcal{P}=2\,048\), \(L=1\,056\), \(S_{\mathrm{inbox}}=640\), yielding \(B_{\mathrm{orig}}(4)=4\,074\le 4\,096\)), and (5) Chunk Reassembly Buffer \(O\)—Law 15 and Definition 28 guarantee:

  1. \(|T|\le B_T(s)\) in all reachable states;

  2. any edge holding slot \(\kappa\) with \(\operatorname{use}_\kappa<f_T\) is never refused, regardless of how many origins, edges, or slots other parties control;

  3. an over-floor slot is guaranteed at least \(f_T+\lfloor\mathcal{P}_T/\mathcal{R}(s)\rfloor\) items as prior claimants expire;

  4. under cleanest-first assignment (SlotRoster), an adversary rotating Sybil connections cannot degrade a newcomer's floor with a single departure-and-rejoin (unlike least-free-index selection), multiplying the single-attacker floor-pollution threshold by \(\mathcal{R}(s)-c\) (\(300\times\) at \(\mathcal{R}(4)=330, c=30\)) distinct admissions within one horizon \(h\) (while sustained high-rate Sybil flooding past \(\mathcal{R}(s)-c\) relies on connection rate limiting or DRanking 2.0 admission filtering; Section IX).

Proof.

Items (1)–(3) follow because floor checks read \(\operatorname{use}_\kappa\) alone, departures never erase slot charges, and with \(n\le\mathcal{R}(s)\) active claimants, any slot below \(\lfloor\mathcal{P}_T/\mathcal{R}(s)\rfloor\) satisfies \(o_\kappa<\lceil\mathcal{P}_T/n\rceil\) and can refill once draining items drop overflow below \(\mathcal{P}_T\). Item (4) holds because a free slot with \(w_t(\kappa)=0\) is always selected before any partially charged slot \(\kappa'\) with \(w_t(\kappa')>0\).

VII-BReplay Stream Eviction and Credit Reclaim#

Law 16 (Replay Stream Spent-Horizon Eviction).#

A receiver replay stream \(s\) with maximum admitted transaction expiry \(x_s=\max(\mathit{ts}+\mathit{ttl})\) is spent at clock \(t\) once \(t\ge x_s+\iota+\sigma\) (for default control/storage/E2E traffic, the spent horizon is \(H_{\text{spent}}=600\,\mathrm{s}\); for offline-capable application streams, \(\iota=H_I+\sigma\) where \(H_I=7\,\mathrm{d}\)). Because transactions past \(x_s+\iota+\sigma\) are rejected by envelope TTL and relay hold-horizon checks prior to replay lookup, spent streams holding no custody \(\mathcal{K}_s\) are lazily evicted without reopening replay. With \(f=32\), \(\mathcal{P}=3\,328\), \(L=1\,024\), and inbox share \(S_\mu=768\), no honest slot can be permanently locked out.

Law 17 (Credit Reclaim (Credit/Shrink/Returned) and Hard Frame Bound).#

Each edge has four lanes \(\ell\) (one priority control lane with floor \(g_{\mathrm{prio}}=W=16\), and three data lanes with floor \(g_\ell=1\) and cap \(W=16\)). To bound total in-flight and buffered frames node-wide without dropping frames, credit frames carry a lane generation \(g\) tracking receiver-consumed frames \(R_{\mathrm{rx}}\) and sender-committed frames \(c_{\mathrm{tx}}\):

  • \(\mathsf{Credit}(A,g)\): receiver grants limit \(A\) in generation \(g\);

  • \(\mathsf{Shrink}(L',g)\): receiver reclaims unused pooled credit on an idle (\(T_{\mathrm{idle}}=1\,\mathrm{s}\)) or over-share lane down to \(L'=\min(R_{\mathrm{rx}}+g_\ell,A)\);

  • \(\mathsf{Returned}(B,g)\): sender commits at most \(B=\max(c_{\mathrm{tx}},L')\) frames and ignores older generations.

With frame pool \(\mathcal{P}_F=256\) frames (\(16\,\mathrm{MiB}\)), where \(c(s)=\mathcal{R}(s)(W+3)\) sums per-slot guaranteed floors across the four lanes and \(W_{\text{shrink}}=\mathcal{P}_F\) reserves reclaimed pooled credits until \(\mathsf{Returned}(B,g)\) clears, total node frame liability satisfies the hard bound

\[\sum_{e,\ell}\operatorname{liab}(e,\ell)\;\le\; B_F(s)=c(s)+W_{\text{shrink}}=\mathcal{R}(s)(W+3)+\mathcal{P}_F\]

(\(6\,488\) frames at \(s=3\); \(6\,526\) at \(s=4\)), with zero honest frame drops and guaranteed per-edge pooled throughput \(\ge\min(3(W-1),\lfloor\mathcal{P}_F/n\rfloor)\).

VII-CSingle-Charge Chunk Reassembly and Per-Category Barrier#

Law 18 (Single-Charge Chunk Reassembly and Credit-Time Rate Floor).#

A chunked message \([0,n)\) of chunk size \(d_0\) reserves its full footprint \(m=2n d_0\) once on its first chunk in both the mailbox ledger and the open-message table \(O\) (\(f_O=256\,\mathrm{KiB}\), \(\mathcal{P}_O=128\,\mathrm{MiB}\), \(B_O(s)=\mathcal{R}(s)f_O+\mathcal{P}_O\), i.e. \(210.5\,\mathrm{MiB}\le 256\,\mathrm{MiB}\) at \(s=4\)), waiting in ResourceOrderedQueue order (\(O((g+k+r)\log n)\) per event, where \(g\) is granted requests, \(k\) displaced waiters moved to another blocker, and \(r\) named resources) and moving into dispatch at completion without re-charging. To prevent slowloris reservation pinning without penalizing receiver-throttled links, the receiver tracks credit-time \(\hat{\tau}\) for the active head-of-line message on lane \(\ell\), which advances over \([t_k,t_{k+1})\) by \(\min(t_{k+1}-t_k,\,c_k d_0/r_{\mathrm{floor}})\) only while the sender holds \(c_k=A-N>0\) unused credits. Messages must maintain a streaming rate floor (\(r_{\mathrm{floor}}\in[r_{\min},10\,\mathrm{B/ms}]\) with \(r_{\min}=1\,024\,\mathrm{B/s}\)) with grace window \(G=15\,\mathrm{s}\) (up to \((W+1)d_0/r_{\mathrm{floor}}+\Delta\), where \(\Delta\) bounds link/RTT slack), expiring attributably if received bytes fall below \(b<r_{\mathrm{floor}}\hat{\tau}-W d_0\).

Law 19 (Per-Category Reassembly Barrier (Control | Interactive | Bulk)).#

Inbound dispatch maintains independent ordering barriers per traffic category \(\kappa\in\{\mathsf{Control},\mathsf{Interactive},\mathsf{Bulk}\}\) (mapped to protocol lanes \(\{\mathit{ctl},\mathit{sto},\mathit{e2e},\mathit{app}\}\)): a frame \(f\) of category \(\kappa\) waits only behind unfinished reassembly events \(u\in U\) with \(\mathit{seq}(u)<\mathit{seq}(f)\land\kappa(u)=\kappa\). This guarantees exact sequence order within every category (including chunked control frames) while preventing bulk data reassembly from blocking control or interactive lanes.

VIII.Privacy Layer — Cryptographic Carriers and Sphinx Onion Kleisli Pipeline#

VIII-ASeparate Cryptographic Carriers#

Definition 29 (End-to-end carrier, signed frame, and secret sharing).#

End-to-end encryption (ElGamal \((g^k, m\cdot h^k)\) on prime-order group \(\mathbb{G}\neq R\)) and Shamir threshold secret sharing over \(\mathbb{F}_q[X]\) [33] operate strictly off the routing carrier:

\[\begin{aligned} f &= (sid,seq,last,cipher,pk_s,\sigma_s),\\ \operatorname{FrameValid}(f) &\iff V(pk_s,\sigma_s,m_f)=\top\\ &\qquad\land\operatorname{Session}(D(pk_s),sid,e),\\ P\in\mathbb{F}_q[X],\quad sh_i &= (i,P(i))\in\mathbb{F}_q^2,\\ \operatorname{reconstruct}(\{sh_i\}) &= P(0). \end{aligned}\]

Here \(m_f\) is the canonical serialization of \((sid,seq,last,cipher)\), and payloads exceeding link \(d_0\) are sliced deterministically into \(total=\lceil|data|/d_0\rceil\) indexed chunks carried inside authenticated frames before reassembly.

Invariant 3 (Chunk reassembly).#
\[\begin{aligned} \operatorname{complete}(m) &\iff \forall i<total(m).\;\exists!c_i\\ &\qquad\land \sum_i |c_i|\leq B_m \land now<ttl(m). \end{aligned}\]

VIII-BOperation Signature and Kleisli Pipeline Composition#

Rings 1.0 replaces legacy relay framing with the Sphinx Onion Kleisli Pipeline (rings-node::onion), generalizing onion circuits from simple exit tunnels to client-sealed loops over a static operation signature \(\Sigma\) composed in the Kleisli category \(\mathbf{Kl}(M)\) [34, 35, 36, 37, 38, 39, 40].

Definition 30 (Operation Signature \(\Sigma\) and Partial \(\Sigma\)-Algebras).#

The static shape signature is

\[\Sigma=\{\mathsf{relay}\}\cup\Sigma_W\cup\Sigma_{\mathsf{invoke}},\]

containing \(1+3+120=124\) rows, where \(\Sigma_W=\{\mathsf{tcp},\mathsf{https},\mathsf{udp}\}\) is the set of world-facing exit stream symbols, \(\Sigma_{\mathsf{invoke}}=\{\mathsf{invoke}\langle\mathrm{In},\mathrm{Out},L\rangle:\mathrm{In}\in\{0\}\cup\mathcal{W},\,\mathrm{Out}\in\mathcal{W},\,L\in\mathcal{L}\}\) has fixed output width \(W(f)=\mathrm{Out}\) across discrete width classes \(\mathcal{W}=\{32,64,256,1024,16384\}\,\mathrm{B}\) and latency classes \(\mathcal{L}=\{10,100,500,2000\}\,\mathrm{ms}\), and open invoke backends \(\omega\in\Omega\) (\(|\omega|\le 32\)) include:

dht.find_successor, dht.notify, dht.sync, storage.lookup, storage.store, service.lookup, service.register, direct.message.

Each node \(n\) publishes signed registrations \(\mathrm{Reg}_n\subseteq\{\mathsf{relay}\}\cup\Sigma_W\cup(\Sigma_{\mathsf{invoke}}\times\Omega)\) (via rings-node:onion-{exit,invoke}-descriptor) carrying its 128-bit process epoch \(e_n\) and quota \(\operatorname{quota}(n,f,\omega)\), acting as a partial \(\Sigma\)-algebra with generic effect [38, 41]

\[[\![ f]\!]_n:\mathrm{Args}_f\times\mathrm{In}_f\to M\,\mathrm{Out}_f.\]
Definition 31 (Kleisli Pipeline Composition (Laws L1, L2)).#

A pipeline \(P=(f_1,\bar{a}_1)\mathbin{\ggg}\cdots\mathbin{\ggg}(f_n,\bar{a}_n)\) is a well-formed morphism of the free category \(\mathcal{F}(G_\Sigma)\) iff \(1\le n\le n_{\max}=4\), \(\mathrm{Out}_{f_k}=\mathrm{In}_{f_{k+1}}\) for all \(k<n\), intermediate symbols satisfy \(\mathsf{Intermediate}\in\operatorname{pos}(f_k)\), and world-facing stream symbols (\(\mathsf{tcp},\mathsf{https},\mathsf{udp}\)) appear only at \(n=1\). Placed on nodes \(h_1,\dots,h_n\), \(P\) denotes the Kleisli composite in \(\mathbf{Kl}(M)\):

\[[\![ P]\!](v_0)= \bigl([\![ f_1]\!]_{h_1}(\bar{a}_1,-)\mathbin{\ggg}\cdots\mathbin{\ggg} [\![ f_n]\!]_{h_n}(\bar{a}_n,-)\bigr)(v_0),\]

satisfying Law L1 (Identity): \([\![\mathsf{relay}]\!]=\eta\) and \(\operatorname{Loop}(\mathsf{relay}\mathbin{\ggg}P)\overset{d}{=}\operatorname{Loop}(P)\) via normal-form \(\operatorname{nf}\) reduction, and Law L2 (Associativity): \((f\mathbin{\ggg}g)\mathbin{\ggg}h=f\mathbin{\ggg}(g\mathbin{\ggg}h)\).

VIII-CClient-Sealed Loops, Uniform Sphinx Header, and AEZ v5 Carry#

Definition 32 (Client-Sealed Loop and Hall-Filter Draw Order (Law L7)).#

For client \(\diamond\), entry guard \(g\), and \(n\in[1,4]\) symbol hops \(h_1,\dots,h_n\), each segment \(k\in[0,n]\) inserts \(s=2\) relays \(r_{k,1},r_{k,2}\) (the minimal \(s\) such that no node is adjacent to both \(\diamond\) and a symbol hop):

\[\begin{aligned} \operatorname{Loop}(P):\ \diamond&\to g=r_{0,1}\to r_{0,2}\to h_1\to r_{1,1}\to r_{1,2}\\ &\to\cdots\to h_n\to r_{n,1}\to r_{n,2}=g\to\diamond, \end{aligned}\]

with total hops \(H(n,s)=(s+1)n+s\le\hat{H}=14\) (\(H\in\{5,8,11,14\}\)) and \(H-1\) distinct peer DIDs (Law L7: Guard Closure). Route selection draws \(h_1,\dots,h_n\) first, then guard \(g\), then remaining relays \(r_{k,j}\) using a bipartite-matching Hall filter \(\mathcal{F}(\pi,p)\) (retaining candidates at position \(p\) for partial placement \(\pi\) only if extending \(\pi\) admits a complete system of distinct mutually routable representatives across the remaining \(\{1,\dots,H\}\) role slots) so that if the first draw succeeds, no subsequent draw can fail, and exit marginals over the Hall-admissible exit candidate set \(N_{h_1}\) equal exact quality weights \(q(d)/q(N_{h_1})\).

Definition 33 (2870-Byte Sphinx Header and 205-Byte Uniform Per-Hop Layer (Laws L3, L4)).#

Every hop \(i\in[1,H]\) across all roles (HopRole::Transit | Terminal | GuardReturn) peels an identical 205-byte layer

\[\begin{aligned} \lambda_i &= (f_i,\bar{a}_i,\mathrm{next}_i,e_i,x,\nu_i,\kappa_i,\gamma_{i+1}),\\ \ell &= 1+64+20+16+8+16+64+16=205\,\mathrm{B}, \end{aligned}\]

from a fixed-length Sphinx header [34] \(\chi_i=\alpha_i\Vert\beta_i\Vert\gamma_i\) with blinded SEC1 group element \(|\alpha_i|=33\,\mathrm{B}\), padded routing block \(|\beta_i|=\hat{H}\ell=14\times 205=2870\,\mathrm{B}\), and MAC \(|\gamma_i|=16\,\mathrm{B}\) (\(|\chi_i|=2919\,\mathrm{B}\)), where \(x=\lceil t_{\mathrm{build}}/Q\rceil Q+X_0\) (\(Q=30\,\mathrm{s}\), \(X_0=120\,\mathrm{s}\), \(V=150\,\mathrm{s}\)) and \(\kappa_i=(\sigma_{\mathrm{in}},\sigma_{\mathrm{out}})\in\{0,1\}^{256}\times\{0,1\}^{256}\) partitions the 64-byte carry field into a 32-byte inbound carry seed \(\sigma_{\mathrm{in}}\) and a 32-byte outbound segment seed \(\sigma_{\mathrm{out}}\) (filled with uniform dummy bytes at pure transit relays). Each loop selects a cell bucket class \(b\in[16\,\mathrm{KiB},12\,\mathrm{MiB}]\) with uniform carry slot width \(C_b=b-2919\,\mathrm{B}\) (\(C_{16\,\mathrm{KiB}}=13\,465\,\mathrm{B}\), \(82\%\) payload efficiency, Law L3) and deterministic release time \(t^{\mathrm{dep}}_i=t^{\mathrm{arr}}_i+L(f_i)\) (Law L4).

Definition 34 (AEZ v5 Wide-Block Body Carry (OnionBodyCipher)).#

For each segment \(k\), the client draws a 32-byte seed \(\sigma_k\) (delivered as \(\sigma_{\mathrm{out}}\) to symbol producer \(p_k=h_k\) for intermediate segments \(k\ge 1\)) and derives 48-byte AEZ v5 keys [36, 42] \(k_{r_{k,j}}\) and \(k_{c_k}\) via HKDF-SHA256. Producer \(p_k\) applies one authenticated wide-block encipherment \(\mathrm{E}^{\tau}_{k_{c_k}}\) (\(\tau=16\) zero-byte authenticator) over canonical serialization \(\operatorname{enc}(v_k)\) followed by \(s=2\) length-preserving wide-block encipherments \(\mathrm{E}^0_{k_{r_{k,j}}}\) (\(\tau=0\)):

\[\begin{aligned} y_{k,0} &= \mathrm{E}^0_{k_{r_{k,1}}}\circ\mathrm{E}^0_{k_{r_{k,2}}}\circ\mathrm{E}^{16}_{k_{c_k}}\bigl(\operatorname{pad}(\operatorname{enc}(v_k))\bigr),\\ y_{k,j} &= \mathrm{D}^0_{k_{r_{k,j}}}(y_{k,j-1}),\qquad b_k = \mathrm{D}^{16}_{k_{c_k}}(y_{k,2}). \end{aligned}\]

VIII-DSURB Batching, Cover Loops, Replay Admission, and Security Laws#

Law 20 (SURB Batching, Constant-Rate Cover, and Sliced-Bloom Replay (Law L9)).#
  1. SURB batching: A Single-Use Reply Block for world-facing session \(\varsigma\) is the \(2\,979\)-byte (\(20+2\,919+32+8=2\,979\,\mathrm{B}\)) client-sealed suffix \(\upsilon=(\mathrm{next},\chi_\upsilon,\sigma_\upsilon, x_\upsilon)\) [43, 44]. After deducting the \(16\,\mathrm{B}\) AEZ authenticator (\(C_0=C_{16\,\mathrm{KiB}}-16=13\,449\,\mathrm{B}\)) and \(6\,\mathrm{B}\) credit-frame overhead, a \(16\,\mathrm{KiB}\) credit loop leaves \(13\,443\,\mathrm{B}\) for SURBs—batching \(k=\lfloor 13\,443/2979\rfloor=4\) SURBs plus its own suffix (\(k+1=5\) reply credits per forward loop, \(Q_{\max}=256\))—whereas a \(7\,\mathrm{B}\)-framed stream data cell carries up to \(C_0-7=13\,442\,\mathrm{B}\) of application payload.

  2. Dormant-by-default constant-rate cover loops: Outbound onion lanes open in dormant mode (open_dormant, emitting zero unsolicited cover cells on non-participating DHT links) and wake automatically when real onion cells arrive or depart. Across active bursts and their bounded dwell window \([t,t+D)\) (\(D=Q=30\,\mathrm{s}\)), links emit at constant rate \(r=\rho B/V\approx 98.3\,\mathrm{units/s}\) (\(\rho=0.9\), substituting cover cells when no real cell is queued), parking at zero idle overhead outside active dwell windows by default (OnionIdleFloor::OFF, with optional configurable background cover up to \(r_{\mathrm{idle}}=1\,\mathrm{unit/s}\) via OnionIdleFloor::DEFAULT). This yields an analytical single-link paced emission ceiling of \(98.3\times 13\,442\,\mathrm{B}\approx 1.32\,\mathrm{MB/s}\) at \(b=16\,\mathrm{KiB}\) (sustaining \(1.045\pm 0.003\,\mathrm{MB/s}\) end-to-end across a 5-node live WebRTC loopback, above the \(1.00\,\mathrm{MB/s}\) CI throughput floor; Section X).

  3. SlotRoster-backed sliced-Bloom replay admission (Law L9): Every received cell is charged \(u(b)=b/16\,\mathrm{KiB}\) units against the sender DID's ledger \(\Lambda_i(d)\) (\(|\operatorname{dom}\Lambda_i|\le 2\mathcal{R}\), per-sender budget \(B=16\,384\) units, global budget \(G=64B\) over \(V/Q=5\) quanta) before SEC1 decoding and ECDH. Valid tags \(\nu_i\) are recorded in expiry-quantized sliced Bloom filters [45, 46] \(R_i[x]\), structured as a scalable chain of \(76\,960\,\mathrm{B}\) blocks (\(K=26\) slices of \(M=23\,680\) bits, sealing \(B=16\,384\) tags per block up to \(64\) global blocks) queried via process-secret-keyed \(\mathrm{Keccak\text{-}256}(\kappa\Vert\nu_i\Vert j)\) probes (per-block false-positive rate \(\le 2^{-26}\), union FP \(\le 2^{-20}\), max memory \(\approx 4.70\,\mathrm{MiB}\) at 64 blocks), ensuring every AEZ key is used at most once across restarts and clock rollbacks.

Theorem 4 (Onion Pipeline Security Laws (Laws L5, L5\('\), L6, L8)).#

Under the Gap-DDH assumption over secp256k1 in the Random Oracle Model (modeling HKDF as a random oracle against active header-peeling queries [34]), together with ChaCha20 PRG, HMAC-SHA256 EUF-CMA, and AEZ v5 strong PRP / robust AEAD assumptions [36, 47], let \(\pi_i(P)\) denote hop \(i\)'s local interface projection (role, adjacent links, symbol \(f_i\), arguments \(\bar{a}_i\), expiry \(x\), and cell class \(b\)), \(\pi^\circ_i\) its position-erased projection (identical to \(\pi_i(P)\) with hop index \(i\) omitted), \(\sigma(P)\) the visible loop class, and \(D_i\) the cumulative deterministic delay from client build time \(t_{\mathrm{build}}\) to arrival \(t^{\mathrm{arr}}_i=t_{\mathrm{build}}+D_i\) modulo \(Q\). Every loop built by Definitions 32–34 satisfies:

  1. Law L5 (Noninterference): \(\pi_i(P)=\pi_i(P')\land\sigma(P)=\sigma(P')\implies\operatorname{view}_i(P)\approx_c\operatorname{view}_i(P')\): no hop learns another hop's arguments \(\bar{a}_j\), invoke backend name \(\omega_j\), or segment value \(v_k\neq\hat{v}_i\) [48].

  2. Law L5MATH0 (Position Hiding): For loops \(P,P'\) of arbitrary lengths \(H,H'\le\hat{H}=14\), a hop's distinguishing advantage between positions \(i\) and \(i'\) with matching local projection \(\pi^\circ_i\) under uniform build-phase quantization modulo \(Q\) is bounded by

    \[\begin{aligned} \mathrm{Adv}_i\;\le{}&\hat{H}\bigl(\epsilon_{\mathrm{Gap\text{-}DDH}}+\epsilon_{\mathrm{PRG}}+\epsilon_{\mathrm{MAC}}\bigr)\\ &+\min\bigl(1,\,|D_i-D'_{i'}|/Q\bigr). \end{aligned}\]
  3. Law L6 (Client Path Authority): \(\mathrm{next}_i\) is sealed in \(\lambda_i\) by \(\diamond\) independently of runtime values \(v_k\), admitting the Arrow composition fragment (\(\mathbin{\ggg}\)) while excluding promiscuous monadic bind (\(\gg\!\!=\)) [40].

  4. Law L8 (Byte Unlinkability and Tagging Resistance): Consecutive edges carry independent uniform ciphertexts against external link observers and pure transit relays (\(\chi_i\neq\chi_{i+1}\), \(y_{i-1}\neq y_i\); on intermediate segments \(k\ge 1\), a corrupted symbol producer \(p_k=h_k\) holds segment seed \(\sigma_{\mathrm{out}}\) and can correlate ciphertexts on segment \(k\) only if colluding with a downstream link observer), class relabeling fails \(\gamma_i=\mathrm{MAC}_{K_i}(b\Vert\beta_i)\), and any modification \(\tilde{y}\neq y_{k,j}\) is rejected by consumer \(\mathrm{D}^{16}_{k_{c_k}}\) with probability \(\ge 1-q\cdot 2^{-128}-\epsilon_{\mathrm{AEZ}}\) across \(q\) active forgery queries (\(\ge 1-2^{-128}-\epsilon_{\mathrm{AEZ}}\) per single attempt) [47].

Proof Sketch.

We outline the hybrid sequence across an \(H\)-hop loop (\(H\le\hat{H}=14\)), adapting the Sphinx and AEZ reductions of Danezis–Goldberg [34], Hoang et al. [36], and Degabriele–Stam [47]: Game MATH2 (Gap-DDH Blinding & Random-Oracle Key Schedule): Under Gap-DDH over secp256k1 and random-oracle HKDF, even an active adversary submitting chosen group elements \(\alpha\) to honest header-peeling relays cannot distinguish an uncorrupted hop \(j\)'s ephemeral shared secret and derived keys \((k^{\mathrm{enc}}_j,k^{\mathrm{mac}}_j,k^{\mathrm{blind}}_j)\) from uniform independent keys except with advantage \(\hat{H}\epsilon_{\mathrm{Gap\text{-}DDH}}\), ensuring fresh unlinkable \(\alpha_j\neq\alpha_{j+1}\) across re-blinded segments. Game MATH8 (PRG Pad & Fixed-Width Position Hiding): Replacing ChaCha20 keystream expansions over \(|\beta|=\hat{H}\ell=2\,870\,\mathrm{B}\) at each uncorrupted hop incurs advantage at most \(\hat{H}\epsilon_{\mathrm{PRG}}\) over \(\hat{H}\) peeling steps. Because all three HopRole variants pack identical \(205\)-byte slots shifted and padded to constant width \(2\,870\,\mathrm{B}\), the decrypted header tail after hop \(i\) is uniform noise for both \(H\) and \(H'\), isolating only the local arrival-to-expiry offset \((x-t^{\mathrm{arr}}_i)\) under uniform build phase \(t_{\mathrm{build}}\bmod Q\) (absent external inter-hop timing observation of deterministic releases \(L(f_i)\)): with \(t^{\mathrm{arr}}_i=t_{\mathrm{build}}+D_i\), this offset at positions \((i,D_i)\) and \((i',D'_{i'})\) has statistical distance at most \(\min(1,|D_i-D'_{i'}|/Q)\), establishing Law L5\('\). Game MATH25 (Header MAC & Path Authority): Under EUF-CMA security of HMAC-SHA256 (\(\hat{H}\epsilon_{\mathrm{MAC}}\)), no adversary without \(k^{\mathrm{mac}}_j\) can forge \(\gamma_j=\mathrm{MAC}_{k^{\mathrm{mac}}_j}(b\Vert\beta_j)\) or substitute another hop class \(b\) or routing descriptor \(\lambda_j\); thus \(\mathrm{next}_j\) and \(\bar{a}_j\) remain fixed by client \(\diamond\) independently of intermediate payload values \(v_k\) (Law L6), while hops \(j\neq i\) see only uniform XORed/encrypted slots for \(\pi_i(P)=\pi_i(P')\) (Law L5). Game MATH37 (Wide-Block Body Carry): For any segment \(k\), the producer wraps fixed-width padded plaintext \(\operatorname{pad}(\operatorname{enc}(v_k))\) through \(\mathrm{E}^{16}_{k_{c_k}}\) and \(s=2\) passes of \(\mathrm{E}^0_{k_{r_{k,j}}}\), with keys derived from fresh nonce-protected seed \(\sigma_k\) and replay protection enforced once via \(R_i[x]\) (Law 20). By AEZ v5 strong PRP security (\(\tau=0\)) at relays and robust AEAD security (\(\tau=16\)) at the consumer [36, 47], intermediate ciphertexts \(y_{k,j}\) are pseudorandom permutations over \(\{0,1\}^{8C_b}\) (yielding segment-\(k\) byte unlinkability \(y_{i-1}\neq y_i\) against external observers and transit relays that lack \(\sigma_k\)), and any bit-flip, truncation, or tagging \(\tilde{y}\neq y_{k,j}\) anywhere on the segment causes consumer \(\mathrm{D}^{16}_{k_{c_k}}\) to fail its \(0^{128}\) authenticator check with advantage at most \(q\cdot 2^{-128}+\epsilon_{\mathrm{AEZ}}\) across \(q\) forgery queries (Law L8).

IX.Decentralized Trust and Ranking — DRanking Bridge#

IX-ASidecar Witness Ordering#

Definition 35 (Sidecar witness and partial order).#
\[\begin{aligned} w &= (domain,root,height,time,finality),\\ \operatorname{Witness}(msg,w) &\iff \operatorname{Include}(H(msg),w.root)=\top\\ &\qquad\land\operatorname{Final}(w)=\top,\\ a\prec b &\iff domain(w_a)=domain(w_b)\\ &\qquad\land time(w_a)<time(w_b),\\ \chi &: Domain_a\times Domain_b\to Order, \end{aligned}\]

where \(\operatorname{Include}(H(msg),w.root)\) checks a canonical inclusion proof against a finalized sidecar state root and \(\chi\) provides a deterministic cross-domain ordering comparator reconciling witnesses from distinct domains.

IX-BCounterparty-Signed Service Receipts and the DRanking 2.0 Bridge#

In an open network where identity creation is free (\(\mathsf{cost}(\mathsf{did})=0\)), unsigned local behavior counters or naive median/trimmed-mean votes over unverified peer reports are vulnerable to Sybil amplification [49]. Rings 1.0 therefore establishes a cryptographic evidence primitive on the wire—the counterparty-signed Service Receipt (ServiceReceipt)—which bridges directly into the companion DRanking 2.0 verifiable distributed ranking and admission protocol [10].

Definition 36 (Rings 1.0 Service Receipt (ServiceReceipt)).#

A service receipt is a dual-authenticated tuple

\[\rho=\bigl\langle\mathsf{ver},\,\mathsf{srv},\,a,\,b,\,k,\,n,\,d_{\mathrm{req}},\,d_{\mathrm{rsp}},\,\sigma_a,\,\sigma_b\bigr\rangle,\]

implemented on live probe transcripts with distinct provider/beneficiary tags (rings-core: service-receipt: provisional:{provider, beneficiary}) and bridging into DRanking 2.0 under the finalized epoch separator \(\mathtt{rings\text{-}service\text{-}receipt\text{-}v1\backslash 0}\), where:

  • \(\mathsf{srv}\in\{\mathsf{relay},\mathsf{store},\mathsf{probe}\}\) names the metered service kind;

  • \(a\in R\) is the service provider DID and \(b\in R\) (\(b\neq a\)) is the served beneficiary DID;

  • \(k\in\mathbb{N}\) is the epoch index and \(n\) is a fresh per-epoch nonce;

  • \(d_{\mathrm{req}},d_{\mathrm{rsp}}\) are the cryptographic digests of the exact signed request and completion transactions; and

  • \(\sigma_a,\sigma_b\) verify under the distinct account keys of \(a\) and \(b\) over \(\mathtt{rings\text{-}service\text{-}receipt\text{-}v1\backslash 0}\Vert\mathsf{ver}\Vert\mathsf{srv}\Vert a\Vert b\Vert k\Vert n\Vert d_{\mathrm{req}}\Vert d_{\mathrm{rsp}}\).

Proposition 5 (DRanking 2.0 Bridge Morphism [10]).#

Because forging \(\sigma_b\) for an honest beneficiary \(b\notin\mathsf{Adv}\) is cryptographically infeasible, manufacturable receipts are restricted to adversarial self-dealing (\(b\in\mathsf{Adv}\)). In the companion DRanking 2.0 protocol [10], distinct-nonce receipts \((k,n)\) for pair \((a,b)\) fold into a cap-budgeted receipt matrix \(W_k[b,a]\le w_{\max}\) with normalized stochastic flow \(C_k[b,a]=W_k[b,a]/\max(w_{\max},W_k[b,\cdot]\mathbf{1})\). Assuming honest seed support (\(\operatorname{supp}(s)\subseteq H\)), uniformly bounded attenuation (\(\sup_k\alpha_k\le\alpha<1\)), and initial adversarial weight \(T_0(\mathsf{Adv})\le\frac{\alpha g}{1-\alpha}\), the seed-anchored attenuated PageRank/EigenTrust [50, 51] epoch evolution preserves

\[t_{k+1}=\alpha_k\,C_k^{\mathsf{T}}t_k+(1-\alpha_k)\,s,\]
\[T_k(\mathsf{Adv})=\sum_{v\in\mathsf{Adv}}t_k(v)\;\le\;\frac{\alpha g}{1-\alpha}\]

for all \(k\ge 0\), where \(g=\sup_k\sum_{b\in H,a\in\mathsf{Adv}}C_k[b,a]t_k(b)\) is the honest endorsement leakage. Soulbound rank \(\hat{t}_k(v)\) then weights VRF committee sortition and is folded across epochs via Nova-family Incrementally Verifiable Computation (IVC) [52] so browser nodes verify global admission state in \(O(1)\) time.

IX-CSecurity Predicates and Controls#

Table 3 maps each primary threat class in Rings 1.0 to its failure predicate and cross-layer enforcement mechanism.

Table 3: Security predicates and controls across Rings layers #
AttackPredicateRings 1.0 + 2.0 Control
Sybilmany DIDs, one actorSlotRoster cleanest-first floors + fair pool (Section VII); DRanking receipts [10]
Replaystale valid \(\sigma\)durable \((\mathcal{W}_s,\mathcal{K}_s)\), link-local \(\mathcal{W}_{s,g}\), onion sliced-Bloom \(R_i[x]\)
MITMwrong key for DIDDID proof, rings-delegation-v1, rings-core: data-entry: mutation
DoSunbounded resource use5-table slot accounting, credit reclaim \(\mathsf{Shrink}\), credit-time \(\hat{\tau}\) floor
Taggingonion byte correlationSphinx 2870\,B header + AEZ v5 wide-block carry (\(\tau=16\))
Obligation 2 (Replay rejection).#
\[\begin{array}{rcl} \operatorname{accept}(s,\eta,t) &\Rightarrow& \eta\notin Seen_s\land t<exp(s),\\ Seen'_s&=&Seen_s\cup\{\eta\},\\ \mathsf{emitDelivery}&<&Seen'_s. \end{array}\]

X.Evaluations and Formal Verification#

X-AExperimental Setup and Reproducibility#

All empirical benchmarks and formal-verification explorers in this section were executed directly against the shipped Rust transition reducers and networking crates of Rings 1.0 (workspace version 1.0.0-pre.8, commit 6b5a3434; source and reproduction commands in papers/README.md at https://github.com/RingsNetwork/rings) on an Apple M1 Max workstation (10 ARM64 cores, \(64\,\text{GiB}\) RAM, Darwin 27.0.0) using rustc 1.97.0 and hardware ARMv8 AES/POLYVAL instructions enabled via .cargo/config.toml (--cfg aes_armv8 --cfg polyval_armv8). Pure overlay/CRDT/storage benchmarks and all 16 Stateright/BFS model-checking reporters ran under --profile ci (opt-level=3, release assertion semantics preserved), whereas AEZ v5 cipher microbenchmarks (rings-aez), multi-flow gateway harnesses (rings-gateway), and Sphinx/Bloom/live 5-node WebRTC loopback tests (rings-node) ran sequentially (--test-threads=1) under full --release (opt-level=3, fat LTO).

X-BStateright State Relation and Quantitative Formal Verification#

Definition 37 (State relation and Stateright exploration).#
\[\begin{gathered} C=(S,Q),\\ \frac{ Q=a::Q_0,\ \ I_A(a)=i,\ \ \tau(S,i)=(S',O,\beta) }{ (S,Q)\to(S',Q_0\cdot\beta) },\\ \mathsf{Explore}=\mathsf{TLAStyle}(\to), \end{gathered}\]
\[\begin{aligned} \operatorname{Impl}_A(s,i) &\preceq I_A^\sharp(\tau(s,i)),\\ \pi_{state}(\operatorname{Impl}_A) &= \pi_{state}(I_A^\sharp\circ\tau). \end{aligned}\]

The exploration relation follows TLA+ style and Stateright finite-state model checking [53, 8] directly over the pure transition functions of rings-core, rings-transport, rings-node, and rings-turn-service.

Across all four model-checked workspace crates, exhaustive BFS state-space exploration verified 9,496,521 reachable finite states (plus 102,400 seeded Horizon simulation transitions and \(1\,931\) official AEZ v5 known-answer test vectors [42]) and refuted 54 deliberately injected safety mutants via replayable counterexample traces (Table 4). Critically, all 16 suites directly execute the shipped production Rust state types and transition reducers (PeerRing, topology::step, EntryCrdt, RecordAuthority, AdmissionLedger, CreditWindow, IceGatherState, OnionReorder, TurnAllocationCore, OnionUdpPinholeTable), abstracting only the asynchronous network scheduler, frame drop/duplication, and storage crash prefixes. In core::dht_stateright, Stage 2 verifies Always safety and Sometimes reachable convergence while intentionally recording a negative bounded-convergence counterexample (no-conv CE: 519,886 states), reproducing Zave's impossibility result [6] that asynchronous Chord lacks worst-case bounded-step convergence under unconstrained adversarial scheduling. Table 5 details the six Stage-6 Rejoin BFS configurations covering simultaneous link flaps, suffix restarts, and churn chains across \(2\,474\,679\) states up to depth 60, while every Rejoin mutant triggers a minimal counterexample within \(10\)–\(788\) states (\(9.41\,\mathrm{ms}\) total).

Table 4: Quantitative Stateright / BFS formal verification and mutant refutation across Rings 1.0 crates (--profile ci) #
Crate / HarnessScope / ConfigurationsStatesMutantsTime (ms)Verified Invariants & Bounds
core::dht_staterightStages 1–4 (Notify \(N{=}3,4\); Disc.; CRDT SEC; ABA)618,155—19,359.27CorrectChord, SEC merge, ABA safety (no-conv CE: 519,886 states)
core::finger_retryStage 5 resource-law explorer (depth 9)134,371—839.98Single owner, monotone epochs, \(\le K{+}1\) stab fan-out (479,544 trans.)
core::rejoin_modelStage 6 (6 overlays; Table 5)2,474,6794 / 453,091.65Inert retired gens, unavailable-head swap, repair on vacate (CE: 10–788)
core::relay_custodyStage 7 storage-less run192—37.32Single-use query token, 2,496 transitions, ack-gated leave handoff
core::repair_modelVirtual (1c) + Handoff (1c, 2c crashes)21,1054 / 4880.39Replicated mail handoff safety, \(r\)-member convergence
core::horizon_model512 seeds \(\times\) 200 interleaved steps(102,400 trans.)7 / 75,042.84Theorem 2 (No Resurrection) under \(t\ge\tau(r)+H+\sigma\)
core::durability4 auth. modes \(\times\) put/rem/batch53 pfx (80 out.)—0.015Lattice \(C\times M\), .p presence witness, \(\mathrm{put}^*\) undo rollback
core::resource_orderUnbounded (49,542) + Capped-2 (58,506)108,0487 / 71,482.72Bounded priority fair scheduling across control/interactive/bulk
transport::credit24 configs (dup, honest, windows)5,916,6455 / 518,973.67Generational Credit/Shrink/Returned zero-drop hard frame bound
transport::ice_gather3 ICE tiers (Host, Reflexive, Relay)3305 / 50.921-RTT SDP/ICE completion & tier-monotonic candidate freeze
transport::turn_tcpNative WebRTC TURN/TCP bridge167 / 71.09Framed TURN-TCP relay admission & close-order safety
node::onion_admissionReplay/unit ledger BFS (depth 3)3,6163 / 392.12Law L9 pre-ECDH unit charge, \(K{=}26\) Bloom & epoch-reset safety
node::exit_and_lanesExitQuota (2,540) + OutboxLanes (10,559)13,0992 / 2123.97Per-link exit budget isolation & outbox lane ordering
node::session_orderReorder (16,481) + SurbPool (2,540)19,0212 / 2737.42Exact forward/reply sequence delivery & least-expiry SURB drain
node::lease_readinessLeaseFresh (179,574) + ReadinessLatch (4,897)184,4712 / 2460.41Admissible SignedDescriptor bounds & startup readiness latch
turn_service::bridgeTURN-Onion UDP bridge BFS (depth 6)2,7736 / 610.97UDP session binding, allocation expiry, & byte-cap safety
Total / Aggregate16 model suites + 1,931 AEZ v5 KATs9,496,52154 / 54101,134.76Zero invariant violations across production reducers
Note: Total States (\(9{,}496{,}521\)) sums the 14 finite-state BFS state counts (excluding horizon_model's \(102{,}400\) seeded simulation transitions and durability's \(53\) crash prefixes with \(80\) outcomes); BFS models instantiate scaled-down finite bounds (\(N\in\{3,4\}\), small credit/queue windows) directly over the shipped production Rust reducers.
Table 5: Stage-6 Rejoin BFS breakdown across six topology regimes (test_rejoin_model) #
ConfigurationStatesDepthPremise (Unstable)Time (ms)
departure4,86221—51.33
replacement109,8403591,312 (25,472)2,821.23
truncation237,32836219,664 (174,048)5,972.63
restart542,58947464,848 (408,404)9,860.47
chain545,79660545,796 (531,172)12,694.39
lossy_flap1,034,26442890,762 (653,760)21,682.19
4 Rejoin MutantsRefuted at 788, 43, 10, and 21 states9.41

X-COverlay Convergence and Non-Transitive WebRTC Routing#

Figure 8 evaluates range-proved finger convergence across uniformly distributed random \(160\)-bit DID rings of size \(N\in\{16,32,64,128,256,512,1024\}\) (\(30\) seeded trials per size; \(15\) at \(N=1024\)). By Lemma 2, stabilization with the immediate clockwise head automatically confirms an average of \(156.20\) slots at \(N=16\) (still \(149.40\) slots at \(N=1024\)) with zero lookups. Across all remaining outer slots, Rings converges cleanly in \(\mathbf{3.13}\)–\(\mathbf{9.20}\) routed lookups on average (\(\text{p95}=5\)–\(10\), worst-case \(12\) at \(N=1024\)), yielding a MATH15 to MATH16 speedup over a classical \(160\)-slot Chord refresh scan while preserving exact sparse-finger table equality and \(\approx\frac{1}{2}\log_2 N\) multi-hop routing (\(1.70\)–\(4.59\) mean hops across \(500\) random source-destination pairs per size, max \(8\)).

163264128256512102425102050100200Ring size NLookups per full passClassical 160-slot scanRings routed (mean)Rings routed (p95)log₂ N reference163264128256512102413.568.511Ring size NLookup path length (hops)Converged mean hopsObserved max hops (500 pairs)0.5 log₂ N Chord law
Figure 8: Finger convergence overhead and converged lookup hops across \(N\in[16,1024]\) random DIDs (bench_paper_finger_convergence_scaling). Left: Rings range proofs cut routed lookups by \(51.06\times\) (\(N=16\)) to \(17.39\times\) (\(N=1024\)). Right: Converged sparse-finger delivery tracks the theoretical \(\tfrac{1}{2}\log_2 N\) Chord curve. #

Table 6 tests non-transitive WebRTC routing across 50 random interleaved two-clique overlays per size (\(C_{\text{sub}}\in\{2,3,4,8,16\}\) non-bridge peers per clique, \(|V|=2C_{\text{sub}}+1\)), seeding Notify transitions at the bridge to exercise the full \(2K=8\) TopoInfo capacity regime (whereas passive minimal two-predecessor notifications without extra peer claims cover \(s+2=6\) non-bridge peers, i.e. \(C_{\text{sub}}\le 3\)). Within the full \(2K\) bridge capacity (\(C_{\text{sub}}\le K=4\), matching Theorem 1(4)), Rings bridge-delegated delivery achieves 100.00% cross-clique delivery in \(2.32\)–\(2.61\) mean hops (\(\max=3\)) with zero loops. By contrast, a Greedy-Only Chord router strands \(64.50\%\)–\(81.25\%\) of traffic at local minima, while an Unbounded Handoff router (without the single-crossing guard) enters routing loops on \(29.00\%\)–\(59.75\%\) of pairs. Beyond capacity (\(C_{\text{sub}}=8,16 > K=4\)), passive 1-hop TopoInfo hints cover at most \(2K=8\) articulation peers without gossip while keeping loops strictly at \(0.00\%\) (vs. \(74.22\%\)–\(83.57\%\) loops for Unbounded Handoff).

Table 6: Non-transitive two-clique routing comparison (\(50\) random overlays/size; \(K{=}4\)) #
Rings BridgeGreedyUnbnd. Hnd.
\(C_{\text{sub}}\)\(|V|\)RtsDel.%HopsMaxDel.%Del.%Loop%
25400100.002.32335.5071.0029.00
37900100.002.51324.0050.3349.67
491,600100.002.61318.7540.2559.75
8176,40047.032.83413.4525.7874.22
163325,60026.133.11610.1016.4383.57

X-DCRDT Carrier Operations, Provenance, and LeaseHeartbeats#

Table 7 reports real microbenchmarks for CRDT normalization/retirement (Entry::join and Entry::retired_at), Merkle batch DataProvenance signing and verification (rings-core:data-entry:mutation, where provenance payload bytes cover the full signed CRDT carrier serialization and verification checks one ECDSA signature plus all \(B\) individual \(O(B\log B)\) Merkle leaf inclusion proofs), and a 1-hour (\(3\,600\,\text{s}\)) registry simulation (\(I=30\,\text{s}\), \(T=90\,\text{s}\), \(\Lambda=600\,\text{s}\)). Single-batch ECDSA provenance verifies in \(135.18\,\mu\text{s}\) (\(495\,\text{B}\) wire proof), whereas a 64-element batch amortizes to MATH8 sign and MATH9 verify per element (\(20.17\,\text{KiB}\)). Over one hour with \(N_{\mathrm{reg}}=100\) active registrants, LeaseHeartbeat cuts legacy Overwrite churn from \(12\,000\) tombstones and \(12\,100\) reads down to MATH14 tombstones and MATH15 reads while reducing total registry wire bytes by 46.6% (\(8\,922.17\to 4\,762.01\,\text{KiB}\)).

Table 7: CRDT lattice operations, Merkle provenance, and 1-hour LeaseHeartbeat savings #
Part A: CRDT join / retire & Provenance (rings-core)
Operation\(n/B\)Lat. (\(\mu\text{s}\))Size / Config
CRDT join / retire1617.7 / 0.3450% ovl, 25% tomb
CRDT join / retire64113.7 / 0.84Normalized join
CRDT join / retire256431.9 / 3.59Factored retire
CRDT join / retire10242,173.7 / 10.2Max carrier elements
DataProv. sign / vfy153.7 / 135.2\(495\,\text{B}\) proof
DataProv. sign / vfy1668.7 / 189.9\(4,320\,\text{B}\) Merkle
DataProv. sign / vfy64113.4 / 778.4\(20,653\,\text{B}\) Merkle
Part B: 1-Hour Registry (MATH0)
\(N_{\mathrm{reg}}\)Leg. Tmb / RdHB Tmb / RdWire KiB (Leg. \(\to\) HB)
101,200 / 1,2100 / 0892.2 \(\to\) 476.2 (-46.6%)
506,000 / 6,0500 / 04,461.1 \(\to\) 2,381.0 (-46.6%)
10012,000 / 12,1000 / 08,922.2 \(\to\) 4,762.0 (-46.6%)

X-EDurable Local Store and Group Commit (put*)#

Figure 9 measures real APFS storage durability (FileStorage issuing macOS fcntl(F_FULLFSYNC) drive-cache barriers). Unsynced Disposable::put completes in \(0.213\,\text{ms}\) (\(4\,692.4\,\text{rec/s}\)), whereas strict per-record durability costs \(23.398\,\text{ms}\) for DurableCache::put and \(35.386\,\text{ms}\) (\(28.3\,\text{rec/s}\)) for Authoritative::put with .p witness markers. Group-commit Authoritative::put_batch amortizes a single drive barrier across \(B\in\{1,4,16,64,128\}\) records, cutting amortized commit cost from \(34.609\,\text{ms/rec}\) (\(B=1\)) to MATH8 (MATH9) at \(B=128\)—MATH11 faster than standalone Authoritative::put (\(35.386\,\text{ms/rec}\)) and MATH13 over put_batch at \(B=1\).

1416641280538107516122150Group-commit batch size BThroughput (records/s)Authoritative::put_batch (F_FULLFSYNC)Single Authoritative::put (28.3 rec/s)DurableCache::put (42.7 rec/s)
Figure 9: APFS F_FULLFSYNC durability throughput across group-commit batch sizes \(B\in[1,128]\) (FileStorage). Coalescing amortizes F_FULLFSYNC from \(35.386\,\text{ms/rec}\) (\(28.3\,\text{rec/s}\)) to \(0.601\,\text{ms/rec}\) (\(1\,663.5\,\text{rec/s}\), \(58.86\times\)). #

X-FSybil-Resistant Slot Accounting and Admission Latency#

Figure 10 demonstrates Theorem 3(4) at default roster capacity \(\mathcal{R}(4)=330\) with \(30\) honest occupied slots (\(300\) free slots, floor \(f_T=32\)). Under a baseline LeastFree allocator, a single adversary rotating through just \(k=1\) departure-and-rejoin reuses the lowest free slot and immediately drops the next honest newcomer's clean floor survival to 0.0%. Rings' cleanest-first SlotRoster isolates newcomers at 100.0% clean-floor survival across all \(k=1\dots 299\) attacker rotations—raising the pollution budget \(300\times\) above LeastFree before every free slot is touched (\(k\ge 300\)), while high-rate Sybil floods across a full horizon are mitigated alongside DRanking 2.0 admission filtering (Section IX). Table 8 further confirms that SlotAccounting enforces per-slot bounds in \(10.8\)–\(11.3\,\text{ns/op}\) for floor admission and \(118.3\)–\(188.0\,\text{ns/op}\) for charge/discharge across \(|T|\in\{100,1\,000,5\,000\}\) live items.

011050100200299300-12205283115Adversarial Sybil rotations k (R(4)=330, 300 free slots)Newcomer clean floor (%)Rings Cleanest-First SlotRosterLeast-Free-Index baseline
Figure 10: Newcomer clean-floor survival under Sybil slot rotation (bench_paper_slot_roster_and_accounting). #
Table 8: SlotAccounting microbenchmark latency #
Items \(|T|\)Admit (ns/op)Chg/Dischg (ns/op)floor_use (\(\mu\text{s}\))
10011.3118.32.04
1,00010.8163.25.95
5,00011.0188.05.87

X-GSphinx/AEZ v5 Onion Pipeline, Sliced-Bloom, and Gateway Throughput#

Table 9 summarizes native --release measurements for the Sphinx onion pipeline, AEZ v5 wide-block body cipher, sliced-Bloom replay admission, and live 5-node WebRTC loopback. A relay processes a full \(16\,\text{KiB}\) cell (parse, ECDH, re-blind, PRG/MAC peel, \(C_{16\,\text{KiB}}\) AEZ decipher, and re-encode) in MATH2 (MATH3), dominated by secp256k1 ECDH (\(42.5\,\mu\text{s}\)) and blinding (\(32.7\,\mu\text{s}\)) (\(82.0\,\mu\text{s}\) constituent crypto sum vs. \(94.6\,\mu\text{s}\) header peel after \(+12.6\,\mu\text{s}\) SEC1 point parse/encode and copy overhead, plus \(+5.5\,\mu\text{s}\) packet framing on top of \(7.9\,\mu\text{s}\) KDF/AEZ for whole-cell relay processing), whereas client construction scales linearly from \(451.4\,\mu\text{s}\) header (\(489.1\,\mu\text{s}\) cell) at \(n=1\) (\(H=5\)) to \(1\,265.1\,\mu\text{s}\) (\(1\,294.6\,\mu\text{s}\) cell) at \(n=4\) (\(H=14\)). Using ARMv8 hardware AES/POLYVAL, AEZ v5 sustains MATH19–MATH20 across all carry classes (\(16\,\text{KiB}\)–\(1\,\text{MiB}\)), outperforming standard ChaCha20-Poly1305 (\(379.5\)–\(395.9\,\text{MiB/s}\)) by \(\approx\mathbf{4.2\times}\) while simultaneously guaranteeing wide-block unlinkability at \(\tau=0\) and \(\ge 1-2^{-128}\) untaggability at \(\tau=16\).

Across \(1\)–\(64\) allocated blocks (\(16\,384\)–\(1\,048\,576\) tags, \(0.07\)–\(4.70\,\text{MiB}\)), the sliced-Bloom replay filter inserts in \(1.06\)–\(1.55\,\mu\text{s}\), queries in \(1.05\)–\(2.03\,\mu\text{s}\), and exhibits only \(0,0,0,\) and \(2\) empirical false positives over \(10^6\) fresh probes across the \(1,4,16,\) and \(64\)-block configurations (\(2.0\times 10^{-6}\) empirical rate at \(64\) blocks vs. analytical \(64\)-block union bound \(9.24\times 10^{-7}\le 2^{-20}\)). Over a live 5-node WebRTC/SCTP loopback circuit, \(8\,\text{MiB}\) TCP downloads average MATH20 (\(8.03\pm 0.03\,\text{s}\), \(3\) runs) at \(16\,\text{KiB}\) and MATH24 (\(11.32\pm 0.75\,\text{s}\), \(6\) runs) at \(64\,\text{KiB}\), where each cell consumes \(4\times\) the unit admission budget under constant link pacing and incurs multi-chunk SCTP hysteresis. Finally, rings-gateway scales cleanly from \(64\) to \(1\,024\) concurrent multiplexed flows (Table 10), delivering \(10.68\)–\(14.69\,\text{MiB/s}\) with sub-millisecond first-flow setup (\(0.029\)–\(0.113\,\text{ms}\)) and \(8.03\)–\(87.88\,\text{MB}\) peak RSS.

Table 9: Sphinx/AEZ v5 onion pipeline, ChaCha20-Poly1305 comparison, sliced-Bloom replay, and 5-node WebRTC loopback (--release) #
Relay Peel (MATH0)AEZ v5 vs. ChaCha20-Poly1305 (MiB/s) & BuildSliced-Bloom (MATH0 probes)
Op\(\mu\text{s}\)Class (Carry B)AEZ \(\tau{=}16\) E/DAEZ \(\tau{=}0\) E/DChaCha E/D\(H\)Build (\(\mu\text{s}\))Blks (Tags)MiBIns/Qry (ns)FP
ECDH \(d\cdot\alpha\)42.516\,KiB (13,465)1348.1 / 1441.31529.8 / 1612.0395.9 / 390.45451.4 / 489.11 (16k)0.071058.6 / 1049.60
Blind \(z\cdot\alpha\)32.764\,KiB (62,617)1651.8 / 1658.31665.6 / 1666.0393.1 / 393.08731.0 / 750.14 (65k)0.291081.8 / 1082.90
HKDF sched.0.7256\,KiB (259,225)1650.7 / 1584.61651.0 / 1655.5390.7 / 379.511997.1 / 1027.016 (262k)1.171177.8 / 1288.80
PRG ChaCha4.71\,MiB (1,045,657)1614.7 / 1601.71632.5 / 1631.2386.0 / 387.3141265.1 / 1294.664 (1.05M)4.701548.4 / 2029.42
MAC HMAC1.4Header Peel (real): \(94.6\,\mu\text{s}\) (\(10,568\text{/s}\)); Whole Cell: \(108.0\,\mu\text{s}\) (\(9,257\text{/s}\)); Build: hdr / full cell (\(n=1..4\))
KDF + AEZ7.95-Node WebRTC 8\,MiB Download: \(b{=}16\,\text{KiB}\): \(\mathbf{1.045\pm 0.003\,\text{MB/s}}\) (\(8.03\text{ s}\), 3 runs); \(b{=}64\,\text{KiB}\): \(0.744\pm 0.047\,\text{MB/s}\) (\(11.32\text{ s}\), 6 runs)
Table 10: Gateway concurrent flow scaling (rings-gateway, \(1024\,\text{B/flow}\)) #
FlowsFirst Setup (ms)Transfer (ms)App. MiB/sPeak RSS (MB)
640.1134.4314.1068.03
2560.05118.1813.75124.07
5120.02934.0514.68645.38
1,0240.03293.6610.67787.88

X-HAnalytical and Operational Complexity Bounds#

Table 11 summarizes the closed-form analytical and operational bounds verified across the Rings 1.0 implementation.

Table 11: Analytical and operational bounds of Rings 1.0 #
Metric / Subsystem QuantityRings 1.0 Bound
Routed finger lookups per full pass\(\le m_{\mathrm{runs}}\le\min(L,|V|),\ \mathbb{E}[m_{\mathrm{runs}}]=O(\log |V|)\)
Local finger range \([0,\min(L{-}1,\lfloor\log_2\delta_n(h)\rfloor)]\)\(0\) routed lookups (stabilization proof)
Report connection fan-out (stab / sync)\(\le K+1\) / \(\le K\) per claimed report
Non-transitive bridge-delegated route\(\le 2|V|\) hops worst-case; \(\le 3\) hops (\(C_{\text{sub}}\le K\))
CRDT carrier tombstones / wire size\(T_{\max}=1024\); \(W=33.73\,\text{MB}\le 60\,\text{MB}\)
Registry heartbeat tombstones / reads\(0\) tombstones, \(0\) reads (Extend lease)
Group commit put* flushes / latency\(1\) drive barrier per batch; \(0.601\,\text{ms/rec}\) (\(B{=}128\))
Replicated relay chain repair delay\(D\le T_d+r\delta\) (\(T_d\le 10\,\text{s}\) silent, \(0\,\text{s}\) graceful)
Connection slot roster capacity \(\mathcal{R}(s)\)\(2(F+s+1)=330\) (\(s=4\)) or \(328\) (\(s=3\))
Node-wide frame liability \(B_F(s)\)\(\mathcal{R}(s)(W+3)+\mathcal{P}_F=6\,526\) (\(s=4\)); \(6\,488\) (\(s=3\))
Open chunk reassembly buffer \(B_O(4)\)\(330\times 256\,\text{KiB}+128\,\text{MiB}=210.5\,\text{MiB}\le 256\,\text{MiB}\)
Onion loop hops \(H(n,s)\) / header \(|\chi|\)\(H=(s+1)n+s\le 14\); \(|\chi|=2919\,\text{B}\) (\(\ell=205\,\text{B}\))
Onion replay Bloom filter FP / memory\(\le 2^{-20}\) (\(K=26, M=23\,680\)); \(4.70\,\text{MiB}\) (\(64\) blks)
Onion \(16\,\text{KiB}\) SURB batch / rate\(k=4\) (\(5\) credits/loop); \(1.32\,\text{MB/s}\) link ceiling (\(1.045\,\text{MB/s}\) live)

X-ILimitations and Threats to Validity#

Four methodological boundaries qualify the empirical and verification results reported in this section:

  • Single-host local execution environment: Throughput and durability benchmarks ran on one Apple M1 Max workstation using in-memory overlay simulations, local APFS F_FULLFSYNC barriers, and a 5-node loopback WebRTC/SCTP harness; geo-distributed WAN latency, asymmetric packet loss, hairpinned NAT traversal, and multi-browser Wasm/IndexedDB variance are deferred to multi-host testbed evaluation.

  • Static-ring scaling vs. continuous live churn: Figure 8 quantifies range-proved convergence on fixed \(N\)-node rings up to \(N=1\,024\); under sustained high churn, overlapping epoch invalidations require range revalidation (Section IV-B) alongside the bridge delegation fallback (Theorem 1).

  • Non-transitive clique capacity: Passive 1-hop TopoInfo hints guarantee \(100\%\) cross-clique delivery without loops for \(C_{\mathrm{sub}}\le K=4\), remaining strictly loop-free (\(0\%\) loops) beyond \(2K=8\) articulation peers (Table 6); larger Symmetric-NAT or UDP-blocked cliques form direct WebRTC edges without centralized servers via Rings' DHT-discovered stateless cryptographic UDP/TCP TURN (rings-turn) and split-trust multi-hop onion::udp Onion TURN (rings-turn-service).

  • Finite-state model-checking bounds: Stateright/BFS verification exhaustively checks bounded configurations and finite queue depths (Table 4), whereas unbounded majority Sybil capture and economic equilibrium fall outside Rings 1.0 and rely on the companion DRanking 2.0 admission layer (Section IX).

Structured Overlays and Non-Transitive NAT Routing. Distributed hash tables give Rings its closest technical ancestry. IPFS and libp2p adopt Kademlia-derived XOR routing [2, 4, 54], while Veilid [9] and I2P unify XOR DHTs with encrypted safety/private routes or garlic tunnels across desktop and browser/Wasm runtimes; all excel at content-addressed or tunneled lookup but lack Chord's clockwise interval owner law required for affine replica sets, age-gated chain custody, and contiguous successor-list maintenance. Rings adopts Chord's circular geometry and range lemma [1, 5], builds directly on Zave's CorrectChord safety substrate [11, 6], applies Bamboo-style exponential timeout backoff [14] to stabilize slow WebRTC peers, and solves non-transitive NAT/firewall cliques [7, 15] without unstructured gossip or virtual fingers [16, 17] via bounded multi-predecessors and single-crossing bridge delegation.

Relay Mixnets, Wide-Block Ciphers, and Typed Pipelines. Existing anonymous networks decouple routing from structured ownership: Tor provides low-latency telescoping circuits without fixed packet padding [3, 47], whereas Mixminion, Loopix, and Nym introduce Sphinx packets, SURBs, and Poisson/constant cover loops over dedicated mix directories [43, 44, 34, 35, 55]. Rings unifies Sphinx fixed-length headers, client-sealed Loopix loops, and AEZ v5 wide-block encryption [36, 42, 56] into its DHT as an Arrow/Kleisli effect pipeline [37, 38, 41, 39, 40, 57] whose hops discover \(\Sigma\)-algebraic service descriptors via the ring itself.

Conflict-Free Storage, Crash Consistency, and Browser Runtimes. On storage and durability, Rings extends state-based and delta-state CRDTs [18, 20, 21] and Hybrid Logical Clocks [19, 13] with factored removal separation, per-writer Merkle provenance, linearizable pure-read caches [22], and platform-verified crash barriers [23, 24, 25, 26] tailored to asymmetric browser churn [32, 58, 59]. Table 12 contrasts Rings 1.0 across all six architectural dimensions.

XII.Conclusion#

Rings is an algebraic structured peer-to-peer network: structured because ownership, range-proved finger convergence, non-transitive WebRTC bridge routing, affine CRDT storage replication, and age-gated relay custody are defined over CorrectChord's circular overlay, and algebraic because each layer preserves an explicit carrier, authority lattice, slot-accounting law, or Kleisli morphism rather than hiding semantics inside ad hoc network procedures.

\[\mathsf{Rings}= (R,\mathcal{R}_N,\mathbf{Set}/R,\Omega_N, \mathsf{T}^{\mathcal{E}}_A,\Pi,\mathbb{G},\mathcal{X}).\]
\[\begin{aligned} \mathsf{Overlay} &= \mathsf{CorrectChord}+\mathsf{RangeFinger}+\mathsf{BridgeRoute},\\ \mathsf{Storage} &= \mathsf{E}(x)\sqcup\mathsf{R}(x),\ \tau_{\mathrm{HLC}}=(w,c,o),\ T_{\max}=1024,\\ \mathsf{Durability} &= (c,m)\in C\times M,\ \mathrm{put}^*,\ (\mathcal{W}_s,\mathcal{K}_s),\\ \mathsf{Admission} &= \mathsf{SlotRoster}(\mathcal{R}),\ f_T+\lfloor\mathcal{P}_T/\mathcal{R}(s)\rfloor,\\ \mathsf{Privacy} &= \mathbf{Kl}(M)\ \text{Sphinx/AEZ-v5}\ (\Sigma,\ H\le 14),\\ \mathsf{Trust} &= \mathsf{ServiceReceipt}\to\mathsf{DRanking\ 2.0}. \end{aligned}\]

References#

  1. [1]
    Ion Stoica and Robert Morris and David Karger and M. Frans Kaashoek and Hari Balakrishnan, “Chord: A Scalable Peer-to-Peer Lookup Service for Internet Applications,” Proceedings of the 2001 Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications (SIGCOMM '01), ACM, pp. 149–160, 2001, DOI: 10.1145/383059.383071.
  2. [2]
    Petar Maymounkov and David Mazières, “Kademlia: A Peer-to-Peer Information System Based on the XOR Metric,” Peer-to-Peer Systems, Springer, vol. 2429, pp. 53–65, 2002, DOI: 10.1007/3-540-45748-8_5.
  3. [3]
    Roger Dingledine and Nick Mathewson and Paul Syverson, “Tor: The Second-Generation Onion Router,” 13th USENIX Security Symposium (USENIX Security 04), USENIX Association, 2004, https://www.usenix.org/conference/13th-usenix-security-symposium/tor-second-generation-onion-router.
  4. [4]
    Juan Benet, “IPFS - Content Addressed, Versioned, P2P File System,” arXiv:1407.3561 [cs.NI], 2014, https://arxiv.org/abs/1407.3561.
  5. [5]
    Ion Stoica and Robert Morris and David Liben-Nowell and David R. Karger and M. Frans Kaashoek and Frank Dabek and Hari Balakrishnan, “Chord: A Scalable Peer-to-Peer Lookup Protocol for Internet Applications,” IEEE/ACM Transactions on Networking, vol. 11, no. 1, pp. 17–32, 2003, DOI: 10.1109/TNET.2002.808407.
  6. [6]
    Pamela Zave, “Reasoning About Identifier Spaces: How to Make Chord Correct,” IEEE Transactions on Software Engineering, vol. 43, no. 12, pp. 1144–1156, 2017, https://arxiv.org/abs/1610.01140, DOI: 10.1109/TSE.2017.2655056.
  7. [7]
    Michael J. Freedman and Karthik Lakshminarayanan and Sean Rhea and Ion Stoica, “Non-Transitive Connectivity and DHTs,” Proceedings of the 2nd Conference on Real, Large Distributed Systems (WORLDS '05), USENIX Association, pp. 55–60, 2005.
  8. [8]
    Jonathan Nadal, “Stateright: Model Checking for Implementing Distributed Systems,” https://www.stateright.rs/, 2026, accessed 2026-07-04.
  9. [9]
    Christien Rioux and Katelyn Bowden, “The Internals of Veilid, a New Decentralized Application Framework,” DEF CON 31 Technical Release & Documentation, https://veilid.com/, 2023, Source repository: https://gitlab.com/veilid/veilid; accessed 2026-11-25.
  10. [10]
    Ryan J. Kung, “The DRanking Protocol: Verifiable Distributed Ranking and Sybil-Bounded Admission for Structured Peer-to-Peer Networks,” Rings Network Technical Report (Companion Specification), 2026, https://rings.rs/papers/dranking/.
  11. [11]
    Pamela Zave, “How to Make Chord Correct (Using a Stable Base),” arXiv:1502.06461 [cs.DC], 2015, https://arxiv.org/abs/1502.06461.
  12. [12]
    Kyzer R. Davis and Brad Peabody and Paul J. Leach, “Universally Unique Identifiers (UUIDs),” Internet Engineering Task Force, 2024, DOI: 10.17487/RFC9562.
  13. [13]
    Colin J. Fidge, “Timestamps in Message-Passing Systems That Preserve the Partial Ordering,” Proceedings of the 11th Australian Computer Science Conference, pp. 56–66, 1988.
  14. [14]
    Sean Rhea and Dennis Geels and Timothy Roscoe and John Kubiatowicz, “Handling Churn in a DHT,” Proceedings of the 2004 USENIX Annual Technical Conference, USENIX Association, pp. 127–140, 2004.
  15. [15]
    Bryan Ford and Pyda Srisuresh and Dan Kegel, “Peer-to-Peer Communication Across Network Address Translators,” Proceedings of the 2005 USENIX Annual Technical Conference, USENIX Association, pp. 179–192, 2005.
  16. [16]
    David A. Bryan and Bruce B. Lowekamp and Cullen Jennings, “SOSIMPLE: A Serverless, Standards-based, P2P SIP Communication System,” Proceedings of the First International Workshop on Advanced Architectures and Algorithms for Internet Delivery and Applications (AAA-IDEA '05), IEEE, pp. 42–49, 2005, DOI: 10.1109/AAA-IDEA.2005.15.
  17. [17]
    Cullen Jennings and Bruce Lowekamp and Eric Rescorla and Salman Baset and Henning Schulzrinne, “Resource Location And Discovery (RELOAD) Base Protocol,” Internet Engineering Task Force, 2014, DOI: 10.17487/RFC6940.
  18. [18]
    Marc Shapiro and Nuno Preguiça and Carlos Baquero and Marek Zawirski, “Conflict-Free Replicated Data Types,” Stabilization, Safety, and Security of Distributed Systems, Springer, vol. 6976, pp. 386–400, 2011, DOI: 10.1007/978-3-642-24550-3_29.
  19. [19]
    Sandeep S. Kulkarni and Murat Demirbas and Deepak Madeppa and Bharadwaj Avva and Marcelo Leone, “Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases,” Principles of Distributed Systems (OPODIS 2014), Springer, vol. 8878, pp. 17–32, 2014, DOI: 10.1007/978-3-319-14472-6_2.
  20. [20]
    Paulo Sérgio Almeida and Ali Shoker and Carlos Baquero, “Delta State Replicated Data Types,” Journal of Parallel and Distributed Computing, vol. 111, pp. 162–173, 2018, DOI: 10.1016/j.jpdc.2017.08.003.
  21. [21]
    Nuno Preguiça, “Conflict-free Replicated Data Types: An Overview,” arXiv:1806.10254 [cs.DC], 2018, https://arxiv.org/abs/1806.10254.
  22. [22]
    Maurice P. Herlihy and Jeannette M. Wing, “Linearizability: A Correctness Condition for Concurrent Objects,” ACM Transactions on Programming Languages and Systems, vol. 12, no. 3, pp. 463–492, 1990, DOI: 10.1145/78969.78972.
  23. [23]
    Thanumalayan Sankaranarayana Pillai and Vijay Chidambaram and Ramnatthan Alagappan and Samer Al-Kiswany and Andrea C. Arpaci-Dusseau and Remzi H. Arpaci-Dusseau, “All File Systems Are Not Created Equal: On the Complexity of Crafting Crash-Consistent Applications,” 11th USENIX Symposium on Operating Systems Design and Implementation (OSDI '14), USENIX Association, pp. 433–448, 2014.
  24. [24]
    Apple, “fsync(2) and fcntl(2): F_FULLFSYNC,” macOS manual pages, 2026, accessed 2026-10-23.
  25. [25]
    Microsoft, “MoveFileExW function (winbase.h): MOVEFILE_WRITE_THROUGH,” https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefileexw, 2026, accessed 2026-10-23.
  26. [26]
    W3C Web Applications Working Group, “Indexed Database API 3.0,” W3C Editor's Draft, https://w3c.github.io/IndexedDB/, 2026, Section ``Transaction durability''; accessed 2026-10-23.
  27. [27]
    Chrome for Developers, “A change to the default durability mode in IndexedDB,” https://developer.chrome.com/blog/indexeddb-durability-mode-now-defaults-to-relaxed, 2024, Default changes from strict to relaxed in Chrome 121; accessed 2026-10-23.
  28. [28]
    Mozilla, “IndexedDB parent actors (ActorsParent.cpp),” https://github.com/mozilla-firefox/firefox/blob/main/dom/indexedDB/ActorsParent.cpp, 2026, BeginWriteTransaction and GetDefaultSynchronousMode; accessed 2026-10-23.
  29. [29]
    WebKit, “IndexedDB SQLite backing store (SQLiteIDBBackingStore.cpp),” https://github.com/WebKit/WebKit/blob/main/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp, 2026, commitTransaction; accessed 2026-10-23.
  30. [30]
    SQLite, “Write-Ahead Logging, and PRAGMA synchronous,” https://www.sqlite.org/wal.html, 2026, accessed 2026-10-23.
  31. [31]
    MDN Web Docs, “Storage quotas and eviction criteria,” https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria, 2026, accessed 2026-10-23.
  32. [32]
    Charles Blake and Rodrigo Rodrigues, “High Availability, Scalable Storage, Dynamic Peer Networks: Pick Two,” Proceedings of the 9th Workshop on Hot Topics in Operating Systems (HotOS IX), pp. 1–6, 2003.
  33. [33]
    Adi Shamir, “How to Share a Secret,” Communications of the ACM, vol. 22, no. 11, pp. 612–613, 1979, DOI: 10.1145/359168.359176.
  34. [34]
    George Danezis and Ian Goldberg, “Sphinx: A Compact and Provably Secure Mix Format,” Proceedings of the 30th IEEE Symposium on Security and Privacy, IEEE, pp. 269–282, 2009, DOI: 10.1109/SP.2009.15.
  35. [35]
    Ania M. Piotrowska and Jamie Hayes and Tariq Elahi and Sebastian Meiser and George Danezis, “The Loopix Anonymity System,” Proceedings of the 26th USENIX Security Symposium, USENIX Association, pp. 1199–1216, 2017.
  36. [36]
    Viet Tung Hoang and Ted Krovetz and Phillip Rogaway, “Robust Authenticated-Encryption: AEZ and the Problem That It Solves,” Advances in Cryptology – EUROCRYPT 2015, Springer, vol. 9056, pp. 15–44, 2015, DOI: 10.1007/978-3-662-46800-5_2.
  37. [37]
    Eugenio Moggi, “Notions of Computation and Monads,” Information and Computation, vol. 93, no. 1, pp. 55–92, 1991, DOI: 10.1016/0890-5401(91)90052-4.
  38. [38]
    Gordon Plotkin and John Power, “Algebraic Operations and Generic Effects,” Applied Categorical Structures, vol. 11, no. 1, pp. 69–94, 2003, DOI: 10.1023/A:1023064908962.
  39. [39]
    John Hughes, “Generalising Monads to Arrows,” Science of Computer Programming, vol. 37, no. 1–3, pp. 67–111, 2000, DOI: 10.1016/S0167-6423(99)00023-4.
  40. [40]
    Sam Lindley and Philip Wadler and Jeremy Yallop, “Idioms Are Oblivious, Arrows Are Meticulous, Monads Are Promiscuous,” Electronic Notes in Theoretical Computer Science, vol. 229, no. 5, pp. 97–117, 2011, DOI: 10.1016/j.entcs.2011.02.018.
  41. [41]
    Gordon Plotkin and Matija Pretnar, “Handlers of Algebraic Effects,” Programming Languages and Systems (ESOP 2009), Springer, vol. 5502, pp. 80–94, 2009, DOI: 10.1007/978-3-642-00590-9_7.
  42. [42]
    Viet Tung Hoang and Ted Krovetz and Phillip Rogaway, “AEZ v5: Authenticated Encryption by Enciphering,” CAESAR competition submission, third round, 2017.
  43. [43]
    David L. Chaum, “Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms,” Communications of the ACM, vol. 24, no. 2, pp. 84–90, 1981, DOI: 10.1145/358549.358563.
  44. [44]
    George Danezis and Roger Dingledine and Nick Mathewson, “Mixminion: Design of a Type III Anonymous Remailer Protocol,” Proceedings of the 2003 IEEE Symposium on Security and Privacy, IEEE, pp. 2–15, 2003, DOI: 10.1109/SECPRI.2003.1199323.
  45. [45]
    Burton H. Bloom, “Space/Time Trade-offs in Hash Coding with Allowable Errors,” Communications of the ACM, vol. 13, no. 7, pp. 422–426, 1970, DOI: 10.1145/362686.362692.
  46. [46]
    Paulo Sérgio Almeida and Carlos Baquero and Nuno Preguiça and David Hutchison, “Scalable Bloom Filters,” Information Processing Letters, vol. 101, no. 6, pp. 255–261, 2007, DOI: 10.1016/j.ipl.2006.10.007.
  47. [47]
    Jean Paul Degabriele and Martijn Stam, “Untagging Tor: A Formal Treatment of Onion Encryption,” Advances in Cryptology – EUROCRYPT 2018, Springer, vol. 10822, pp. 259–293, 2018, DOI: 10.1007/978-3-319-78372-7_9.
  48. [48]
    Joseph A. Goguen and José Meseguer, “Security Policies and Security Models,” Proceedings of the 1982 IEEE Symposium on Security and Privacy, IEEE, pp. 11–20, 1982, DOI: 10.1109/SP.1982.10014.
  49. [49]
    John R. Douceur, “The Sybil Attack,” Peer-to-Peer Systems, First International Workshop (IPTPS 2002), Springer, vol. 2429, pp. 251–260, 2002, DOI: 10.1007/3-540-45748-8_24.
  50. [50]
    Lawrence Page and Sergey Brin and Rajeev Motwani and Terry Winograd, “The PageRank Citation Ranking: Bringing Order to the Web,” Stanford InfoLab, 1999, http://ilpubs.stanford.edu:8090/422/.
  51. [51]
    Sepandar D. Kamvar and Mario T. Schlosser and Hector Garcia-Molina, “The EigenTrust Algorithm for Reputation Management in P2P Networks,” Proceedings of the 12th International Conference on World Wide Web (WWW 2003), ACM, pp. 640–651, 2003, DOI: 10.1145/775152.775242.
  52. [52]
    Abhiram Kothapalli and Srinath Setty and Ioanna Tzialla, “Nova: Recursive Zero-Knowledge Arguments from Folding Schemes,” Advances in Cryptology – CRYPTO 2022, Springer, vol. 13510, pp. 359–388, 2022, DOI: 10.1007/978-3-031-15985-5_13.
  53. [53]
    Leslie Lamport, “Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers,” Addison-Wesley, 2002.
  54. [54]
    Protocol Labs, “libp2p: A Modular Network Stack,” 2026, https://libp2p.io/.
  55. [55]
    Claudia Diaz and Harry Halpin and Aggelos Kiayias, “The Nym Network: The Next Generation of Privacy Infrastructure,” Whitepaper, 2021, https://nym.com/nym-whitepaper.pdf.
  56. [56]
    Ross Anderson and Eli Biham, “Two Practical and Provably Secure Block Ciphers: BEAR and LION,” Fast Software Encryption (FSE 1996), Springer, vol. 1039, pp. 113–120, 1996, DOI: 10.1007/3-540-60865-6_48.
  57. [57]
    Andrey Mokhov and Georgy Lukyanov and Simon Marlow and Jeremie Dimino, “Selective Applicative Functors,” Proceedings of the ACM on Programming Languages, vol. 3, no. ICFP, pp. 90:1–90:29, 2019, DOI: 10.1145/3341694.
  58. [58]
    H. Alvestrand, “Overview: Real-Time Protocols for Browser-Based Applications,” RFC 8825, 2021, https://www.rfc-editor.org/rfc/rfc8825, DOI: 10.17487/RFC8825.
  59. [59]
    WebAssembly Working Group, “WebAssembly Core Specification,” W3C Recommendation, 2019, https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/.