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

LeonYanghaha picture LeonYanghaha  路  3Comments

silence-may picture silence-may  路  3Comments

ishwarchandratiwari picture ishwarchandratiwari  路  3Comments

Beardcoding picture Beardcoding  路  3Comments

dcousens picture dcousens  路  3Comments