New answers tagged

1 vote
Accepted

How much does the weight of 2-of-3 multisignature inputs differ between P2SH and P2SH-P2WSH?

P2SH The size of a P2SH-based 2-of-3 multisig input works out to be 293, 296 or 297 bytes as described in the question. PREVOUT: hash (32 bytes) index (4 bytes) SCRIPTSIG: length (varInt 1 or 3 ...
user avatar
  • 63.5k
2 votes
Accepted

How is a Bitcoin transaction signed using ECDSA?

You say you are familiar with how secp256k1 and ECDSA works but from what you say later I'm unsure whether you are. SegWit v0 didn't change the signing algorithm (ECDSA) nor the curve (secp256k1). ...
user avatar
3 votes
Accepted

How do you commit to the previous output's amount when signing a segwit input with rust-bitcoin?

There is a bitcoin::util::sighash module which has all of the sighashing stuff. I'm not certain that it is the correct way, but it is definitely a way to get the result that you want. It looks like ...
user avatar
  • 61.4k

Top 50 recent answers are included