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
Copy file name to clipboardExpand all lines: 02-peer-protocol.md
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -199,11 +199,11 @@ signature, it will broadcast the funding transaction.
199
199
* [2:output_index]
200
200
* [64:signature]
201
201
202
-
FIXME: describe
203
-
204
202
#### Requirements
205
203
206
-
The recipient MUST fail the channel if the signature is invalid.
204
+
The sender MUST set `temporary-channel-id` the same as the `temporary-channel-id` in the `open_channel` message. The sender MUST set `txid` to the transaction ID to a non-malleably transaction, which it MUST NOT broadcast, and MUST set `output_index` to output number of that transaction which corresponds the funding transaction output as defined in [BOLT #3](03-transactions.md#funding-transaction-output), and MUST set `signature` to the valid signature using its `funding-pubkey` for the initial commitment transaction as defined in [BOLT #3](03-transactions.md#commitment-transaction).
205
+
206
+
The recipient MUST fail the channel if `signature` is incorrect.
207
207
208
208
### The `funding_signed` message
209
209
@@ -218,7 +218,9 @@ redeem their funds if they need to.
218
218
219
219
#### Requirements
220
220
221
-
FIXME: Describe
221
+
The sender MUST set `temporary-channel-id` the same as the `temporary-channel-id` in the `open_channel` message, and MUST set `signature` to the valid signature using its `funding-pubkey` for the initial commitment transaction as defined in [BOLT #3](03-transactions.md#commitment-transaction).
222
+
223
+
The recipient MUST fail the channel if `signature` is incorrect.
222
224
223
225
### The `funding_locked` message
224
226
@@ -241,7 +243,18 @@ from this point onwards.
241
243
242
244
#### Requirements
243
245
244
-
FIXME: Describe
246
+
The sender MUST wait until the funding transaction has reached
247
+
`minimum-depth` before sending this message. The sender MUST encode
248
+
the block position of the funding transaction into `channel-id`. If
249
+
the sender has already received `funding_locked` from the other node,
250
+
it MUST fail the channel if its own `channel-id` does not match that
251
+
received. The sender MUST set `next-per-commitment-point` to the
252
+
per-commitment point to be used for the following commitment
0 commit comments