Depots
Source: Depots: Theft-Proof, Self-Custodial Bitcoin For Billions Of Users by John Law (Delving Bitcoin, Sept 2026). Paper and code: github.com/JohnLaw2/ln-depots.
Depots try to give billions of people self-custodial Lightning channels without needing billions of on-chain transactions, and without falling back on custodians.
How it works
An operator puts one transaction on-chain that funds a “depot.” That single output can back Lightning channels for thousands to millions of users.
The trick is a lottery. Say a user wants a channel worth 6 sats. They pay the operator 6 sats over Lightning, and in return they get a ticket that pays something like 12 million sats on-chain, with a 1-in-1.86-million chance of winning. The expected value is the same 6 sats. The user picks a secret guess, and the operator signs it without seeing it.
Each depot has a fixed expiry, around 2 years in the example. Before expiry, users are supposed to “drain”: spend their balance or move it into a new depot. Draining means revealing their guess to the operator. The operator then picks a winning number that avoids every revealed guess. After expiry:
- If nobody holds an unrevealed winning guess, the operator takes everything back. Nothing else hits the chain.
- If exactly one user holds an unrevealed winning guess, that user can put their channel on-chain and splits the depot with the operator.
- If two or more users hit, the whole depot is burned.
What it makes possible
- Self-custody for tiny balances. Today, a Lightning balance smaller than the on-chain fee can’t really be defended, because enforcing it costs more than it’s worth. Depots turn a small balance into a small chance at a large, defendable output. Users can even hold fractions of a sat.
- Fixed on-chain cost per depot. The worst case is a handful of transactions per depot, no matter how many users it has. That removes the “thundering herd” problem in timeout trees, Ark and SuperScalar, where a mass exit could need more block space than exists before the timeouts hit. Law argues this is the real flaw in the other designs: they get less safe as they get more popular. That’s a fair point, and the strongest part of the post.
- No theft by either side. Neither the operator nor users can steal. They can only make each other lose money, and doing so costs the attacker money too.
- Large scale on paper. Law claims one depot per block could give 10 billion users 10 channels each and support over 900,000 payments per second.
- Off-chain payment resolution. Payments settle off-chain, using “burn outputs” where both sides put up money they lose if they misbehave.
Tradeoffs and weak spots
-
It needs a soft fork. CTV and CSFS are required. PairCommit, OP_MUL and OP_MOD make it much more efficient. None of these are active today.
-
Security comes from incentives, not cryptography. The design relies on “griefer penalization”: if one side hurts the other, it also loses money. The penalty ratios are tunable and can be lopsided. The example sets GrO = 0.05, which means an operator who makes users lose 100 sats only has to expect a 5-sat loss itself. Law argues that any penalty above zero stops a self-interested party, and points to Lightning, where griefing is rare even with no penalty at all. That argument holds for operators who care about their reputation. It’s weaker against an operator who is spiteful, coerced, or about to shut down anyway.
-
If you don’t drain, you’re left with a lottery ticket. The expected value matches what you paid only if yours is the only undrained channel. If others also fail to drain, there’s a chance of multiple hits, and multiple hits burn everything. So a user who misses the deadline almost certainly gets nothing and has a tiny chance of a big payout. “Your money” turns into “the expected value of your money,” which is a real change in what self-custody means.
-
Hard deadlines and active upkeep. Users have to show up and drain before expiry. The operator can’t roll funds into a new depot for them, because revoking a channel needs a secret only the user holds. Wallets could automate this, but the device has to be online. If you go on-chain, you also need to check the chain at least every ~2.5 months (the example’s
to_self_delay). -
Backups are hard. A seed phrase isn’t enough. You also need the depot ID, its parameters, every guess with its salt and signatures, the random factors, and the latest state of every channel. Law confirmed this in the thread. Lose that data and you lose the funds. For a design aimed at “billions of users,” many of them new to Bitcoin, I think this is the most serious practical problem.
- Capital costs.
- The operator funds the whole depot up front. The example puts in about 107.7M sats to cover 100M sats of user balances.
- Only about 93% of a depot’s value can be sold to users.
- Payments tie up extra “matching funds” in burn outputs.
- Limits and minimums.
- Each channel has a minimum balance: about 6.7 sats for the user and 1.4 sats for the operator in the example.
- Each user’s balance has a cap tied to how many channels they hold.
- Large atomic payments are bounded.
- Users get a fixed channel allocation, though Law says the paper covers how to change allocations dynamically.
- Complexity. The real protocol adds several things on top of the simple version: up to 54 targets per depot, 25-element random vectors that hide whether your guess matches a revoked one, adaptor signatures that make channel purchases atomic, and joint signatures used as salts. That’s a lot of new code for wallets to get right.
The thread so far
Most early replies were complaints about broken formatting, which Law fixed in post #9. The one substantive exchange came from Gem Wallet, who asked about lost phones, long offline stretches and missed deadlines. Law agreed that automatic rollover would be better but said it isn’t possible for depots. He liked the idea of wallets automating the drain together with the operator, and confirmed that recovery needs much more than a private key. No protocol developers have challenged the security model yet.
My read
The scaling argument is clever, and it points at a real problem in the other off-chain designs. The cost is that users trade a hard guarantee for an expected-value guarantee and take on deadline and backup burdens that are heavier than regular Lightning. Whether that’s acceptable comes down to how much you trust griefing penalties as weak as 5% to keep operators honest.