0

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?

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.

  • 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 Jul 28 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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