Closed leotons closed 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.
We now support compressed P2TR and added very basic BIP-322 support. Contributions to expand it further are welcome.
tests := map[string]verifier.SignedMessage{ "p2tr": { Address: "bc1p5wwxjuvaxp5jcpg82ys7kupg0gtnavp5u3fje8c7vs3a2dvzpjqs2xtq4h", Message: "111111", Signature: "IBs2/wEHrUMdayrR+eQKCwfDCDu7FRVvZBkDi6NODP4mTvpIppdut6mIbmF8Ph6YS+v2cp0LpsLq59tHiaAPYqQ=", }, } // Bitcoin Testnet3 fmt.Println(verifier.Verify(tests["p2tr"]))