feat(lightning): the group closes and force-closes its channels (Phase 13, part 1)

Two new authorisation actions on kind 30346, `close` and `force-close`,
each naming one channel and open for three days. The operator's node acts
on each once: a mutual close to the onchain wallet's first address, or
publishing our own commitment. Any member proposes one from the channel's
menu on the wallet screen.

Co-signers sign our own commitment only under a force-close
authorisation, only after rebuilding it, and never one more than a step
behind the counterparty commitment they last signed: anything older is
revoked. A four-device test force-closes with a signature that spends the
funding output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-23 18:40:32 +02:00
1 parent d69344fe1b
commit cb6934b806
16 files changed
+298 -20

No files matched your search

@@ -757,4 +757,7 @@
<string name="that_invoice_has_expired">That invoice has expired.</string>
<string name="that_invoice_names_no_amount">That invoice names no amount, so give one.</string>
<string name="that_invoice_pays_this_wallet">That invoice pays this wallet's own node.</string>
<string name="close_to_the_onchain_wallet">Close to the onchain wallet</string>
<string name="force_close">Force close</string>
<string name="channel_actions">Channel actions</string>
</resources>