Skip to main content

Sign & Verify Message

Sign Message

const message; // The Message to Sign
const signature = await smartAccount.signMessage(message); // Sign message

Verify Message

import { verifyMessage } from "@unipasswallet/smart-account-validator";

const isValid = await verifyMessage({
// Verify Message
message,
signature,
provider,
address: await smartAccount.getAddress(),
});