signMessage
signMessage
supports signing messages from the PortalSigner
.
This method must be called after authenticate
. Otherwise, this method will throw an error with the message Not Authenticated
.
Usage
example.ts
import { createPortalSigner } from "./portal";
const portalSigner = await createPortalSigner();
const signedMessage = await portalSigner.signMessage("test");
Returns
Promise<Hex>
A Promise
containing the signature of the message.