- Firmware version required
- Touch: 3.0.0
- Classic/Mini: 2.6.0
Asks device to sign a message using the private key derived by given BIP32 path.
const result = await HardwareSDK.aptosSignMessage(connectId, deviceId, params);
path
— requiredstring | Array<number>
minimum length is3
. read morepayload
-AptosMessagePayload
typeaddress
- optionalstring
of path Derived addresschainId
- optionalstring
of the id of the chainapplication
- optionalstring
of DApp web site urlnonce
- requiredstring
of random numbermessage
- requiredstring
message to sign text
HardwareSDK.aptosSignMessage(connectId, deviceId, {
path: "m/44'/637'/0'/0'/0'",
payload: {
nonce: "1",
message: "hello world"
}
});
Result
{
success: true,
payload: {
path: string;
fullMessage: string;
signature: string;
address: string;
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}