Open lucasm-iRonin opened 6 years ago
I had the same problem today, I think it comes from the fact that the Transaction.from method sort automatically the public keys passed as parameters. As the keys order is relevant in multisig transaction, the generated script does not match the locking script from the transaction and throw.
IMO, the Transaction.from should accept an option object with noSorting, like the buildMultiSigOut function.
Hi! I have a problem with transaction from multi-sig address that I created through coinb on testnet.
Here is the multi-sig address: https://live.blockcypher.com/btc-testnet/address/2NAayqTXNN9Qs6VDjyLm89sfDjCRFhJdqLs/
Now when I try to create a new transaction like this:
I'm getting error:
If you take a look at the redeem script of this multi-sig address on coinb you will see that
bartPubKey
andhomerPubKey
are listed inSignatures Required from
.