Comment on page
📝
Sign messages
Request the signature of arbitrary messages with users' Bitcoin addresses
To sign a message, call the following method to prompt for signing:
const response = await window.btc.request('signMessage', {
message: 'my message',
paymentType: 'p2tr' // or 'p2wphk' (default)
});
Both Native SegWit and Taproot addresses are supported.

Be warned, that tooling is not widely available to verify BIP-322 messages.
Currently, the best way to verify a message is by
verifymessage
RPC request on a Bitcoin node, built from the source of the unreleased BIP-322 feature branch.Last modified 3mo ago