Bitcoinjs-lib: Signing P2SH inputs

Created on 27 Apr 2018  路  3Comments  路  Source: bitcoinjs/bitcoinjs-lib

Is there a way to sign non-SegWit P2SH inputs?

Observing src/transaction_builder.js the inputs to the sign function are
vin, keyPair, redeemScript, hashType, witnessValue, witnessScript

Does leaving the witnessValue and witnessScript undefined do what is described? Or is there another way to do this?
Thanks for any help!

how to / question / docs

All 3 comments

Does leaving the witnessValue and witnessScript undefined do what is described? Or is there another way to do this?

Yes, they are optional.

Great, Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

thrastarson picture thrastarson  路  3Comments

LeonYanghaha picture LeonYanghaha  路  3Comments

stefanhuber picture stefanhuber  路  4Comments

namnv04 picture namnv04  路  3Comments