🟠signMessage
You can request your user to sign a message with their wallet's Bitcoin addresses, by invoking the signMessage
method.
The signMessage
method returns a Promise that resolves to the SignMessageResult
object:
Last updated
You can request your user to sign a message with their wallet's Bitcoin addresses, by invoking the signMessage
method.
The signMessage
method returns a Promise that resolves to the SignMessageResult
object:
Last updated
Request parameters | Description |
---|---|
The user will see a Bitcoin message signing request prompt in the wallet. Xverse browser extension UI shown as example:
Property | Description |
---|---|
address
a string representing the address to use to sign the message
message
a string representing the message to be signed by the wallet
signature
a string representing the signed message.
The Xverse wallet uses two type of signatures depending on the Bitcoin address used for signing:
ECDSA signatures over the secp256k1 curve when signing with the BTC payment (p2sh
orp2wpkh
) address
BIP322 signatures when signing with the Ordinals (p2tr
) address
messageHash
a string representing the hash of the message
address
a string representing the address used for signing