How to verify signature of multisig transaction

0

1

How to verify signature of multisig transaction (2-2) after it being signed by first owner? How can I understand if that owner used wrong private key => wrong signature?

newbie

Posted 2019-04-26T10:32:47.640

Reputation: 45

Answers

1

There is no way to check the transaction separately for each signature. Either the entire transaction is valid or it is invalid. When you receive the partially signed transaction, you would need to sign it with your own private key using the signrawtransaction command in bitcoind. It would give you two outputs (1) hex which is the serialized transaction and (2) complete. If the second output shows you "complete": true, then the transaction you received was signed with a valid private key. If it shows false then it wasn't.

Ugam Kamat

Posted 2019-04-26T10:32:47.640

Reputation: 5 180

Technically, there is. In fact that is exactly what happens under the hood, each signature is verified individually and when all signatures verify, the whole transaction becomes valid. So when you receive a partially signed transaction, you could take the same steps to first verify whether the provided signature is correct or not then sign it with your own key.Coding Enthusiast 2019-07-28T05:24:19.127