Skip to content

signMessage

signMessage supports signing messages from the ParticleSigner.

This method must be called after authenticate. Otherwise, this method will throw an error with the message Not Authenticated.

Usage

example.ts
import { createParticleSigner } from "./particle";

const particleSigner = await createParticleSigner();
 
const signedMessage = await particleSigner.signMessage("test");

Returns

Promise<Hex>

A Promise containing the signature of the message.

Parameters

msg: string | Uint8Array) -- the message to sign