Verify message
Asks device to verify a message using the signer address and signature.
const result = await TrezorConnect.verifyMessage(params);
Params
address
- requiredstring
signer address,message
- requiredstring
signed message,signature
- requiredstring
signature in base64 format,coin
- requiredstring
Determines network definition specified in coins.json file. Coinshortcut
,name
orlabel
can be used.hex
- optionalboolean
convert message from hex
Example
TrezorConnect.verifyMessage({
address: '3BD8TL6iShVzizQzvo789SuynEKGpLTms9',
message: 'example message',
signature:
'JO7vL3tOB1qQyfSeIVLvdEw9G1tCvL+lNj78XDAVM4t6UptADs3kXDTO2+2ZeEOLFL4/+wm+BBdSpo3kb3Cnsas=',
coin: 'btc',
});
Result
Success type
{
success: true,
payload: {
message: "Message verified"
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}