BitonicNL / verify-signed-message

Verify signed messages of various bitcoin wallets
ISC License
13 stars 13 forks source link

cannot use P2TR for recovery flag 'compressed' #5

Closed leotons closed 7 months ago

leotons commented 7 months ago

tests := map[string]verifier.SignedMessage{ "p2tr": { Address: "bc1p5wwxjuvaxp5jcpg82ys7kupg0gtnavp5u3fje8c7vs3a2dvzpjqs2xtq4h", Message: "111111", Signature: "IBs2/wEHrUMdayrR+eQKCwfDCDu7FRVvZBkDi6NODP4mTvpIppdut6mIbmF8Ph6YS+v2cp0LpsLq59tHiaAPYqQ=", }, } // Bitcoin Testnet3 fmt.Println(verifier.Verify(tests["p2tr"]))

ArbitronNL commented 7 months ago

After double checking with Sparrow this is indeed a valid BIP322 signed message. However, BIP322 is not yet supported by this library (as mentioned in the README and in a another issue).

If you need it right now, feel free to make a pull request to add support.

ArbitronNL commented 4 months ago

We now support compressed P2TR and added very basic BIP-322 support. Contributions to expand it further are welcome.