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