<p>It sounds like you are using the non-segwit sighash algorithm. This is not correct. Segwit uses a different sighash algorithm as defined in <a href="https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki" rel="nofollow noreferrer">BIP 143</a>.</p>

CC BY-SA 4.0
2020-03-17T20:23:40.267Z
2020-03-17T20:23:40.267Z
Ava Chow
<p>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?</p>

CC BY-SA 4.0
2020-03-16T22:45:37.793Z
Can you post how you were trying to sign segwit multisig?
Ava Chow
CC BY-SA 4.0
2020-03-17T01:53:51.913Z
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.
Allan Romanato
<wallet><segregated-witness><multi-signature>
Signing a Segwit Multisig Transaction
Allan Romanato
# Signing a Segwit Multisig Transaction

(Asked by: username_0 on 2020-03-16)

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?

**Tags:** wallet, segregated-witness, multi-signature

> **Comments:**
> **username_1**: Can you post how you were trying to sign segwit multisig?  
> **username_0**: 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.  

---

## 1 answers

### Answer by username_1 on 2020-03-17. Score: 1 | Accepted answer

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](https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki).


---

