$41,689.59 -0.57%
BTC 209w

BitPay/bitcore-lib has been discontinued, segwit support not merged

Adding coverage by pulling test cases from: (nested witness p2sh is only tested currently). There could be additional changes necessary to get the tests to pass.

FWIW: this might also be useful if you don't test against it already. It's mainly for verification purposes, but may turn up bugs outside of this PR.

When working on signing, it's best to define your standard types (p2pk/p2pkh/multisig) and be able to deal with them anywhere P2SH, P2WSH comes in, since both of these can be used in tandem. An example of things maybe going awry is this file: & the multisig.js that was added after. P2SH & P2WSH require general modifications to a plain script-in-txout-script style transaction. AFAICT Bitcoin Core does this as well.

I would submit a patch, but it's not a trivial refactoring.. just my two cents worth! See serializeSimpleSig / serializeSignatures The if branches for P2SH, then witness, are repeated anywhere in that file that deals with possible combinations of P2SH | P2WSH.

Go to
Recent news
BTC -0.57% 20h


冒聼聭聡My Twitter冒聼聭聡冒聼聭聡My Telegram冒聼聭聡芒聳潞Listen to me on Apple Podcasts
BTC -0.57% 23h

MicroStrategy Pledges to Keep Buying Bitcoin (BTC)

MicroStrategy has revealed via its Q2 2021 Financial Results report released on July 29, 2021, that it plans to keep investing in its digital asset strategy even as its bitcoin (BTC) holdings are now ...