Ethereum: sign message
Asks device to sign a message using the private key derived by given BIP32 path.
const result = await TrezorConnect.ethereumSignMessage(params);
Params
Optional common params EthereumSignMessage type
path
— requiredstring | Array<number>
minimum length is3
. read moremessage
- requiredstring
message to sign in plain texthex
- optionalboolean
convert message from hex
Example
TrezorConnect.ethereumSignMessage({
path: "m/44'/60'/0'",
message: 'example message',
});
Result
{
success: true,
payload: {
address: string,
signature: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}