0

I am creating some test code which can create transactions and sign then, I already could do it with NON-Segwit multisig address, they were signed using my code and broadcasted. But when I tried with Segwit multisig, I got problems, it was not signing it right. Can someone walk me through the steps of creating and signing a multisig segwit transaction?

2
  • Can you post how you were trying to sign segwit multisig?
    – Andrew Chow
    Mar 16, 2020 at 22:45
  • I was trying to sign the same way as I was signing the traditional multisig wallet, I have the private key and the redeem script. Mar 17, 2020 at 1:53

1 Answer 1

1

It sounds like you are using the non-segwit sighash algorithm. This is not correct. Segwit uses a different sighash algorithm as defined in BIP 143.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.