Skip to content

Commit f53ca23

Browse files
committed
interactive-tx: Add dual-funding flow, using the interactive tx protocol
This commit adds the interactive transaction construction protcol, as well as the first practical example of using it, v2 of channel establishment. Note that for v2 we also update the channel_id, which now uses the hash of the revocation_basepoints. We move away from using the funding transaction id, as the introduction of RBF* makes it such that a single channel may have many funding transaction id's over the course of its lifetime. *Later, also splicing
1 parent 80c1ae1 commit f53ca23

File tree

6 files changed

+1074
-4
lines changed

6 files changed

+1074
-4
lines changed

.aspell.en.pws

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ nhops
2323
retransmitted
2424
dev
2525
tradeoff
26+
kiloweight
2627
mixHeader
2728
uint
2829
hopsData
@@ -115,6 +116,17 @@ delayedsig
115116
hopDataSize
116117
I'th
117118
segwit
119+
RBF
120+
accepter
121+
accepter's
122+
subtype
123+
redeemScript
124+
scriptSig
125+
utxo
126+
scriptPubKey
127+
scriptPubKeys
128+
scriptlen
129+
sats
118130
htlc
119131
htlcs
120132
ChaCha
@@ -386,3 +398,12 @@ csv
386398
CHECKSIGVERIFY
387399
IFDUP
388400
sats
401+
workflow
402+
PUSHDATA
403+
prev
404+
vout
405+
rbf
406+
standardness
407+
perkw
408+
prevtx
409+
ints

01-messaging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,11 @@ The 2-byte `len` field indicates the number of bytes in the immediately followin
316316

317317
The channel is referred to by `channel_id`, unless `channel_id` is 0 (i.e. all bytes are 0), in which case it refers to all channels.
318318

319-
The funding node:
319+
The funding node using channel establishment `open_channel`:
320320
- for all error messages sent before (and including) the `funding_created` message:
321321
- MUST use `temporary_channel_id` in lieu of `channel_id`.
322322

323-
The fundee node:
323+
The fundee node using channel establishment v1 (`accept_channel`):
324324
- for all error messages sent before (and not including) the `funding_signed` message:
325325
- MUST use `temporary_channel_id` in lieu of `channel_id`.
326326

0 commit comments

Comments
 (0)