Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 982 Bytes

File metadata and controls

50 lines (43 loc) · 982 Bytes

Lisk: sign message

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

ES6

const result = await TrezorConnect.liskSignMessage(params);

CommonJS

TrezorConnect.liskSignMessage(params).then(function(result) {

});

Params

Optional common params

  • pathobligatory string | Array<number> minimum length is 3. read more
  • message - obligatory string message to sign in plain text

Example

TrezorConnect.liskSignMessage({
    path: "m/44'/134'/0'",
    message: "example message"
});

Result

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

Error

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