<p>The only way to know which signers signed is to verify the signatures against the public keys. Each signature will only verify with one of the pubkeys.</p>

CC BY-SA 4.0
2020-10-07T08:18:32.550Z
Hi Andrew please see the edited question. I am not sure how to calculate sighash.
Sunny
CC BY-SA 4.0
2020-10-07T10:25:49.193Z
here is my new question https://bitcoin.stackexchange.com/questions/99368/veirfy-signature-against-public-key
Sunny
CC BY-SA 4.0
2020-10-06T23:10:59.657Z
2020-10-06T23:10:59.657Z
Ava Chow
<p>I have a raw 2of3 multisig transaction. In this transaction, one co-signer already signed. The signature is for only one input.</p>
<p><code>0100000001f479528049ee4b235548a7116f5ca31c607728af3d4ac8f102c5be13e93dcca900000000b40047304402201b83bd2209bc101736f60eeec3bcc1f79d45019d1829af97f5bd3210e8d8d786022020954c15372268d299b5463e1335595221e16222aee0291509a2098a0eb7fe80414c69522103556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c58822103917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a562103f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef4913676553aeffffffff02a08601000000000017a914fd80725877f902f4491a6dc733fe788c376aeff8875033f4050000000017a9149aba36d2c19b08781230a4301f364610a163fc2d8700000000</code></p>
<p>after decoding the transaction, I have the following public keys:</p>
<pre><code>03556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c5882
03917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a56
03f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef49136765
</code></pre>
<p>and this signature:</p>
<pre><code>['OP_0', '304402201b83bd2209bc101736f60eeec3bcc1f79d45019d1829af97f5bd3210e8d8d786022020954c15372268d299b5463e1335595221e16222aee0291509a2098a0eb7fe8041', 'OP_PUSHDATA1', 'OP_VERIFY', 'OP_2', '03556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c5882', '03917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a56', '03f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef49136765', 'OP_3', 'OP_CHECKMULTISIG']
</code></pre>
<p>I have xPubs of all co-signers. How do I know which co-signer signed the transaction?</p>

CC BY-SA 4.0
2020-10-08T15:06:37.483Z
I've rolled your post back to the original question. Please don't add more topics to a question after it was answered. New questions should be asked in a new post instead. In this specific case, Bitcoin Gold is not on-topic on this site. You could try the Bitcoin Gold forum instead.
Murch
<multi-signature><signature><xpub>
How do we know which co-signer signature is in raw hex in multisig?
Sunny
# How do we know which co-signer signature is in raw hex in multisig?

(Asked by: username_0 on 2020-10-06)

I have a raw 2of3 multisig transaction. In this transaction, one co-signer already signed. The signature is for only one input.

`0100000001f479528049ee4b235548a7116f5ca31c607728af3d4ac8f102c5be13e93dcca900000000b40047304402201b83bd2209bc101736f60eeec3bcc1f79d45019d1829af97f5bd3210e8d8d786022020954c15372268d299b5463e1335595221e16222aee0291509a2098a0eb7fe80414c69522103556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c58822103917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a562103f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef4913676553aeffffffff02a08601000000000017a914fd80725877f902f4491a6dc733fe788c376aeff8875033f4050000000017a9149aba36d2c19b08781230a4301f364610a163fc2d8700000000`

after decoding the transaction, I have the following public keys:

```
03556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c5882
03917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a56
03f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef49136765

```

and this signature:

```
['OP_0', '304402201b83bd2209bc101736f60eeec3bcc1f79d45019d1829af97f5bd3210e8d8d786022020954c15372268d299b5463e1335595221e16222aee0291509a2098a0eb7fe8041', 'OP_PUSHDATA1', 'OP_VERIFY', 'OP_2', '03556117b3f9a92f2997529af415c2c07185b872ddf1439995eca7f3acb65c5882', '03917f2527fc394ae2da48ce0148d29e5b756c4d9d180a6762bbe7abe215b29a56', '03f03364c624889c99059902524bcd8e2b24fb09cceb2e0f895d6475ef49136765', 'OP_3', 'OP_CHECKMULTISIG']

```

I have xPubs of all co-signers. How do I know which co-signer signed the transaction?

**Tags:** multi-signature, signature, xpub

> **Comments:**
> **username_1**: I've rolled your post back to the original question. Please don't add more topics to a question after it was answered. New questions should be asked in a new post instead. In this specific case, Bitcoin Gold is not on-topic on this site. You could try the Bitcoin Gold forum instead.  

---

## 1 answers

### Answer by username_2 on 2020-10-06. Score: 3

The only way to know which signers signed is to verify the signatures against the public keys. Each signature will only verify with one of the pubkeys.

> **Comments:**
> **username_0**: Hi Andrew please see the edited question. I am not sure how to calculate sighash.  
> **username_0**: here is my new question https://bitcoin.stackexchange.com/questions/99368/veirfy-signature-against-public-key  

---

