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