Repository navigation
docs: allow provider-initiated zero-voucher channel close in ADR 003 - #105
Conversation
Providers had no way to close channels where no vouchers were signed without waiting for the 90-day expiry. This adds a zero-voucher close path: provider calls closeChannel with amount=0/nonce=0, skipping signature verification when claimedNonce == 0. The dispute window still applies, so clients/watchtowers can dispute with a real voucher. Also resolves the channel griefing attack vector. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates ADR 003’s payment-channel close specification to add a provider-initiated “zero-voucher” close path, intended to mitigate channel-griefing by allowing providers to promptly move never-used channels into the close→dispute→settle lifecycle.
Changes:
- Specify a zero-voucher
closeChannelpath (provider-only) that skips signature verification whenamount=0,nonce=0, andclaimedNonce==0. - Update the “Channel griefing” attack vector section to mark the issue as resolved by provider-initiated zero-voucher close and adjust remaining mitigation options.
- Extend the “Channel close lifecycle” section to document the zero-voucher close behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request updates the ADR 003 documentation to detail the new provider-initiated zero-voucher close mechanism, which allows providers to close channels without a client-signed voucher when no payments have been made. The review feedback suggests improving consistency across the document by explicitly mentioning the requirement for an empty signature in the zero-voucher close descriptions to ensure clarity for implementers.
…, reclaimExpired clarity - Define voucher nonces as starting at 1 (nonce 0 = sentinel for "no voucher") in a new Voucher Nonce Convention section, preventing the nonce=0 collision identified in review - Define "empty signature" precisely as signature.length == 0; clarify that all other closeChannel calls require normal EIP-712 verification - Clarify that "no inactivity timer needed" means no *additional* mechanism beyond the existing reclaimExpired path - Add "and an empty signature" to griefing and lifecycle sections for consistency across all three zero-voucher close descriptions Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
closeChannel: provider can call withamount=0, nonce=0whenclaimedNonce == 0, skipping signature verificationTest plan
architecture.md(payment lifecycle described at high level only)🤖 Generated with Claude Code