Skip to main content

Sign Message

In order to send a message for the user to sign, the web application must provide a UTF-8 encoded string as a Uint8Array.


Refer to tweetnacl-js for verifying the signature of a message.

signMessage

Method for signing message.

Example

    const msg = Buffer.from("Test Signing Message ", "utf8");
const signed_message = await torus.signMessage(msg);

Reference

    signMessage(data: Uint8Array): Promise<Uint8Array>;