bitcoinjs-lib icon indicating copy to clipboard operation
bitcoinjs-lib copied to clipboard

Use case request: Signature verification

Open AusDavo opened this issue 1 year ago • 2 comments
trafficstars

Could you verify a signature using a public key and specified message content? Your help with this would be immensely appreciated.

AusDavo avatar Dec 28 '23 20:12 AusDavo

What is the content?

There are a few "protocols" for signing and verifying signatures of arbitrary messages. But if the usage is for a specific protocol, it might be better to tailor a specific protocol for that protocol you are trying to use it with.

  1. https://github.com/bitcoinjs/bitcoinjs-message (This is the method used in Bitcoin Core and Trezor wallets etc)
  2. BIP322 is a protocol for signing and verifying messages... but it's not widely used. I have made a toy implementation https://github.com/bitcoinjs/bitcoinjs-lib/issues/1918#issuecomment-1555229330 here. Please verify the code on your own if you wish to use it. I take no responsibility for it.

junderw avatar Dec 28 '23 21:12 junderw

Thanks for the advice. Purpose is to provide an interface for testing multi-sig wallet participants. I made progress eventually. My problem was related to scope following bundling.

AusDavo avatar Dec 30 '23 02:12 AusDavo