93 Test Cases for Lightning's Proof Gap, and Why Wallet Teams Should Care
Jean Pablo's new proposal gives Lightning developers 93 test cases for proof verification, built out of Electrum's work. The gap it targets is invisible to users until a payment claims to settle and the proof doesn't hold. Here's what it means for wallets, merchants, and anyone routing real money over Bitcoin's second layer.
What happens when your Lightning wallet tells you a payment settled, and the proof doesn't actually check out?
That's the question Jean Pablo's new proposal is aimed at. The answer, for now, is that most users would never know. And that's the problem.
The Raw Data
Pablo's work grows directly out of Electrum's Lightning implementation, and it delivers something concrete: 93 distinct test cases for proof verification. Not a whitepaper. Not a roadmap slide. A test suite, which is the unglamorous thing that actually separates software you can trust from software that merely compiles.
The number matters. Ninety-three cases is enough to cover the happy path plus the weird corners, the malformed preimages, the truncated proofs, the edge conditions that show up once in ten thousand payments and burn a merchant's support queue for a week. A handful of tests would prove the code runs. Ninety-three suggests somebody sat down and asked what breaks.
Electrum's pedigree helps here. The wallet has been shipping since 2011, which means the people behind this suite have watched light clients operate in production for over a decade. That's not nothing in a space where a lot of tooling gets written by someone with a lot of conviction and very little operational scar tissue.
Why Proofs Matter More Than Speed
Lightning sells itself on speed. Sub-second settlement, fractions of a cent in routing fees, all of it routed through channels that never touch the base chain until someone closes out. Great pitch. Except speed without verification is just trust wearing a technical costume.
Here's what the proof actually does. When a payment hops across three or four nodes to reach its destination, the payer gets a cryptographic receipt, the preimage that unlocks the payment hash. Verification means checking that receipt honestly, in the wallet, rather than taking a node's word for it. Skip that check, or implement it inconsistently, and you've built a system where the interface says "paid" and the underlying truth is a shrug.
I spend most of my working hours on title registries and fractional deeds, and the lesson from that world transfers cleanly: verification is the product. The recording is the easy part. Proving the record is right, that's where the money and the liability live. Title insurance doesn't disappear just because the registry is on-chain. It just changes who's on the hook when the record is wrong.
Lightning wallets are in the same position. They're handing users a receipt and calling it a payment. Most of them are probably doing it correctly. "Probably" isn't a standard you can take to a merchant processor.
What Builders Are Saying
According to developers who work close to the Lightning stack, the value in a suite like this isn't the tests themselves. It's the shared vocabulary. Once 93 cases exist in public, two wallet teams that have never met can compare notes on the ones they fail. That's how a fragmented implementation culture starts to converge.
And fragmentation is the real enemy here. There's no single Lightning wallet, no single node implementation, no single way of handling proofs. LND does it one way, Core Lightning another, Electrum another, and a dozen mobile wallets wrap all of that in their own logic. Every one of those layers is a place where a verification step can get skipped, stubbed out for performance, or quietly broken by a refactor.
Traders watching Lightning capacity, which has hovered in the rough neighborhood of 5,000 BTC for a while, aren't going to move a position on a test suite. Fair enough. But wallet teams should. And so should the payment processors quietly building Lightning checkout rails for merchants who don't want to think about any of this.
Here's a take I'll stand behind. The Lightning wallets that skip this kind of testing are the ones that will end up on a support call explaining why a merchant's invoice shows paid and the merchant's bank account disagrees. That's not a hypothetical. That's just what happens to software that only tests the sunny path.
What's Next
Watch for the 93 cases to show up as public test vectors that wallet vendors can drop into their own repos. That's the real adoption signal, not a blog post announcing support. If Electrum ships them first, expect at least one or two competing implementations to follow within a quarter, because nobody wants to be the wallet that fails a standard suite.
Also watch what happens at the merchant layer. Payment processors carry the liability when a checkout reports success and the settlement doesn't match. If proof verification becomes a checkbox on a vendor evaluation form, the wallets that can't demonstrate it will get quietly dropped from integrations. No announcement. Just a procurement decision.
The compliance layer is where most of these platforms will live or die. Not the routing graph, not the channel capacity, not the user interface. The part that decides whether the receipt means anything.
Bitcoin's base layer took years to earn the trust it has, and it earned it the boring way, through adversarial review and test suites and people trying to break it on purpose. Lightning is younger, faster, and considerably more complicated at the edges. Ninety-three cases won't fix that. But it's a start, and the teams paying attention now will be the ones still standing when the edge cases stop being theoretical.
Key Terms Explained
Coinbase's Layer 2 blockchain built on the OP Stack (Optimism's technology).
The first cryptocurrency, created in 2009 by the pseudonymous Satoshi Nakamoto.
Permanently removing tokens from circulation by sending them to an unusable wallet address.
Following the laws and regulations that apply to financial activities, including crypto.