Skip to content

Commit afac2ff

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 946bbeb commit afac2ff

File tree

6 files changed

+1089
-4
lines changed

6 files changed

+1089
-4
lines changed

.aspell.en.pws

Lines changed: 31 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,31 @@ delayedsig
115116
hopDataSize
116117
I'th
117118
segwit
119+
SegWit
120+
sizeof
121+
varint
122+
tlv
123+
rbf
124+
RBF
125+
accepter
126+
accepter's
127+
subtype
128+
subsubtype
129+
redeemScript
130+
UTXO
131+
utxo
132+
utxos
133+
scriptPubkey
134+
scriptPubKey
135+
scriptPubKeys
136+
RBFs
137+
ack'd
138+
scriptlen
139+
btc
140+
sats
141+
prevoutnum
142+
prevtxid
143+
ints
118144
htlc
119145
htlcs
120146
ChaCha
@@ -386,3 +412,8 @@ csv
386412
CHECKSIGVERIFY
387413
IFDUP
388414
sats
415+
workflow
416+
PUSHDATA
417+
perkw
418+
prev
419+
vout

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)