signMessage
You can request a message to be signed by the wallet simply by calling the signMessage
function from sats-connect.
When signing a message using Xverse there are two types of signatures you should expect:
ECDSA signatures over the secp256k1 curve when signing with the BTC payment (
p2sh(p2wpkh)
) addressBIP322 signatures when signing with the Ordinals (
p2tr
) address
payload | Description |
---|---|
network | an object specifying the target Bitcoin chain (Mainnet / Testnet) |
address | address used to sign the message |
message | message to be signed by the wallet |
Last updated