confluxSignMessage

Use requirement

  • Firmware version required

    • Touch: 3.0.0

    • Classic/Mini: 2.4.0

Conflux: sign message

Asks device to sign a message using the private key derived by given BIP32 path.

const result = await HardwareSDK.confluxSignMessage(connectId, deviceId, params);

Params

Optional common params

  • path — required string | Array<number> minimum length is 3. read more

  • messageHex - required string message to sign in hex text

Example

HardwareSDK.confluxSignMessage(connectId, deviceId, {
    path: "m/44'/503'/0'/0/0",
    message: "68656c6c6f776f726c64"
});

Result

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

Error

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

Last updated