cardanoSignMessage

Use requirement

  • Firmware version required

    • Touch: 4.1.0

    • Classic/Mini: 3.0.0

Cardano: sign message

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

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

Params

Optional common params

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

  • message - required string message to sign in hex text

  • networkId - required Integer 1 for Mainnet, 0 for Testnet

  • derivationTypeoptional CardanoDerivationType enum. determines used derivation type. Default is set to ICARUS=1

Example

HardwareSDK.cardanoSignMessage(connectId, deviceId, {
    path: "m/1852'/1815'/0'/0/0",
    message: "68656c6c6f776f726c64",
    networkId: 1
});

Result

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

Error

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

Last updated