You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We add new commitment format and TLV extensions to include musig2 nonces.
We update the single-funging,dual-funding and splicing workflows:
We extends the interactive tx session to include:
- an optional funding nonce for the shared input (i.e. the funding tx that is being spent)
- a nonce for the commit tx that is being created, and another nonce that will become the channel's "next remote nonce" once the session completes
The funding nonce is random and its lifecycle is bound to the interactive session.
revoke_and_ack is extended to include a list of funding_tx_id -> nonce tuples (one for each active commitment).
channel_restablish is extended to include the same list of funding_tx_id -> nonce tuples, as well as an optional "current commit nonce" if we got disconnected
while a splice was in progress before both nodes exchanged their commit signatures: if that is the case, we need to re-send our peer's current signature
and will use this nonce to compute it.
We also update the simple close protocol to include closing nonces.
And we allow upgrading channels to taproot during splices, with an optional channel_type TLV added to splice_init/splice_ack.
* Activate this feature to provide on-the-fly funding to remote nodes, as specified in bLIP 36: https://github.com/lightning/blips/blob/master/blip-0036.md.
caseclassMissingNonce (overridevalchannelId:ByteVector32, fundingTxId: TxId) extendsChannelException(channelId, s"next nonce for funding tx $fundingTxId is missing")
157
+
caseclassInvalidNonce (overridevalchannelId:ByteVector32, fundingTxId: TxId) extendsChannelException(channelId, s"next nonce for funding tx $fundingTxId is not valid")
0 commit comments