Sign messages

Request the signature of arbitrary messages with users' Bitcoin addresses
Leather supports BIP-322 message signing.

Signing a message

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.

Verifying messages

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.