Repository navigation
Description
Status: PARKED — discussion only, not being implemented
This records the full reasoning behind a per-lane client-abuse defense we designed end-to-end and then deferred, so it isn't re-derived from scratch. Sibling of #1668 (client abuse/fairness posture) and #1654 (PaymentPool). In a world where gas is free this is a 10/10 solution; with real gas it earns a park, not a build.
The problem
The shared pool (#1654) intentionally drops per-signer identity cost to ~0: a throwaway signer needs no gas and no locked deposit, and self-signing is free. So the usual levers fail:
- Per-IP rate limiting collateral-damages CGNAT / campus / VPN / ISP aggregation. IP ≠ identity.
- Any global or per-node trust criterion — on-chain history, deposit amount, "did they download from me", node-local reputation — is amortizable: satisfy it once, fan out unlimited lanes. Damage is O(lanes); an O(1) criterion is not a defense.
Principle established: defense cost must scale on the same axis as the damage. Damage is per-lane, so the cost must be per-lane. And because identity is free, the per-lane cost can't be identity-derived — it must be payment / consumption-proportional. (Deposit-gating fails specifically because a shared pool deposit is over-committable across N non-coordinating nodes: one $100 deposit, N nodes each front believing they're covered, only $100 redeems FCFS, N−1 eat the loss.)
The designed solution — pre-payment
Reverse the credit model. Instead of the node fronting a credit window (node's risk), the client fronts — pays before receiving. Then:
- Extraction collapses into "buying data" = being a customer, not an attacker. Every lane is pre-paid (customer) or empty (no service). No unpaid data moves.
- Composes upward: the client's pre-pay gives the node money-in-hand, which it fronts upstream; the upstream node is pre-paid too. Money leads data up every hop; no node ever fronts its own funds. A non-paying flood dies at the first hop that must spend.
Reverse attack (node steals the pre-pay) — bounded, gas-independently
Not on-chain slashable (non-delivery / offline isn't provable; withholding is reputation-only). Bounded by two facts:
- Value ceiling (gas-independent): loot per lane ≤ one credit window (microdollars). Defrauding every human alive over deCDN's lifetime nets ≈ $20k at the $0.01/GB target — while burning a bonded, selection-priced identity. At 500M users: $2k (floor price) / $20k (target) / $2M (ceiling).
- Settlement-gas floor: to monetize stolen dust the node must redeem per voucher on-chain, and per-voucher gas ≫ per-voucher loot. To steal ~$40 you post ~1M redemptions.
Plus a coupling that closes it: to have many victims you must win selection (rate × rtt × reputation), which forces you cheap — so per-lane loot and victim-count are inversely coupled. You cannot be both expensive and popular.
Trustless framing
The whole thing needs no intent-distinguishing (ignorance vs negligence vs malice — which has no off-chain answer), no slashing of unprovable offenses, no gossip reputation. You make every un-settleable increment smaller than the gas to cheat on it, and intent becomes irrelevant.
Why we're parking it
- Gas isn't free. Pre-pay's cleanliness leans on the settlement-gas floor. It's a 10/10 solution in a gas-free world; with real gas it's less clean.
- It doesn't actually solve dust-settlement unless we raise pre-payment amounts — a knob that needs constant attention and that we can't cleanly defend when someone asks "why that number?" We don't want to engineer a solution we can't stand behind.
- Partially covered anyway by credit-slow-start (feat: credit-slow-start — fixed-ramp credit window (start slow, ramp quick) #1669) with a ~100 KB cadence: new lanes start slow and ramp on their own paid history, bounding the free-ride without pre-pay.
Decision: park pre-pay. Revisit only if slow-start proves insufficient under real load, or if gas economics change materially (e.g. a much cheaper L2).
Related
- Replaced-for-now by credit-slow-start feat: credit-slow-start — fixed-ramp credit window (start slow, ramp quick) #1669.
- Client-abuse posture umbrella: design: client abuse/fairness posture for shared pools — payment-priority scheduling (not per-IP) #1668.
- PayWord (independent): docs(adr): land just PayWord (hash-chained per-MB meter) into ADR 003 #1670.
- Dust-settlement is not security-load-bearing (already noted in ADRs); not tracked separately.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity