libitx / txforge

Modern Bitcoin transaction builder, capable of supporting any non-standard and custom script type.
Apache License 2.0
63 stars 21 forks source link

Fix an error when specifying only M < N keypairs to sign a p2ms utxo #16

Closed bvqbao closed 3 years ago

bvqbao commented 3 years ago

P2MS should allow specifying M < N correct keypairs to sign. However, the following code results in an error:

redeemP2MSTXForge
  .build()
  .signTxIn(0, { keyPairs: [kp1, kp3] })    // suppose there are 3 possible keypairs kp1, kp2 and kp3.
libitx commented 3 years ago

Thank you