Skip to content

Commit 7a3d1a0

Browse files
committed
BIP-0322: clarify scriptSig on to_sign for legacy transactions
Before this commit it was not clear that non-native SegWit outputs (e.g. P2PKH or P2SH-P2WPKH) only work if the correct scriptSig is provided. This then also makes it more clear why P2SH-P2WPKH outputs are NOT supported by the "simple" variant.
1 parent 2594065 commit 7a3d1a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bip-0322.mediawiki

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The <code>to_sign</code> transaction is:
9191
vin[0].prevout.hash = to_spend.txid
9292
vin[0].prevout.n = 0
9393
vin[0].nSequence = 0 or (FULL format only) as appropriate (for time locks)
94+
vin[0].scriptSig = [] or (FULL format only) as appropriate (for non segwit-native transactions)
9495
vin[0].scriptWitness = message_signature
9596
vout[0].nValue = 0
9697
vout[0].scriptPubKey = OP_RETURN

0 commit comments

Comments
 (0)