1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-03-10 17:18:44 +01:00

BOLT 3: Fix funding output script

remove `0` from the funding output script as it is not part of a normal 2-of-2 multisig script
This commit is contained in:
fivepiece 2016-12-18 02:06:49 +02:00 committed by Rusty Russell
parent eebbd617bd
commit 66ffc6c624

View file

@ -13,7 +13,7 @@ Most transaction outputs used here are P2WSH outputs, the segwit version of P2SH
## Funding Transaction Output
* The funding output script is a pay-to-witness-script-hash<sup>[BIP141](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#witness-program)</sup> to:
* `0 2 <key1> <key2> 2 OP_CHECKMULTISIG`
* `2 <key1> <key2> 2 OP_CHECKMULTISIG`
* Where `key1` is the numerically lesser of the two DER-encoded `funding-pubkey` and `key2` is the greater.
## Commitment Transaction