scdoSignMessage

Use requirement

  • Firmware version required

    • Touch: 4.10.0

SCDO: sign message

Signs a message using the private key derived by given BIP32 path.

const response = await HardwareSDK.scdoSignMessage(connectId, deviceId, {
    path: "m/44'/541'/0'/0/0",
    messageHex: "68656c6c6f" // "Hello" in hex
});

Params

Optional common params

  • pathrequired string | Array<number> minimum length is 3. read more

  • messageHexrequired string message to sign in hex format

Example

const response = await HardwareSDK.scdoSignMessage(connectId, deviceId, {
    path: "m/44'/541'/0'/0/0",
    messageHex: "68656c6c6f"
});

Result

{
    success: true,
    payload: {
        signature: string,
        address: string
    }
}

Error

{
    success: false,
    payload: {
        error: string, // error message
        code: number  // error code
    }
}

Last updated