Skip to content

Commit bd1460d

Browse files
committed
dual-fund, wording: move sighash_all into existing verbiage
Suggested-By: @morehouse
1 parent d9c571d commit bd1460d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

02-peer-protocol.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ The sending node:
407407
- MUST order the `witnesses` by the `serial_id` of the input they
408408
correspond to
409409
- `num_witnesses`s MUST equal the number of inputs they added
410+
- MUST use the `SIGHASH_ALL` (0x01) flag on each signature
410411

411412
The receiving node:
412413
- MUST fail the negotiation if:
@@ -415,12 +416,10 @@ The receiving node:
415416
added by the sending node
416417
- the `txid` does not match the txid of the transaction
417418
- the `witnesses` are non-standard
419+
- a signature uses a flag that is not `SIGHASH_ALL` (0x01)
418420
- SHOULD apply the `witnesses` to the transaction and broadcast it
419421
- MUST reply with their `tx_signatures` if not already transmitted
420422

421-
Both nodes:
422-
- MUST sign the transaction using SIGHASH_ALL
423-
424423
#### Rationale
425424

426425
A strict ordering is used to decide which peer sends `tx_signatures` first.

0 commit comments

Comments
 (0)