verifyEOASignature

Verifies the signature of a message using an Ethereum account's EOA (Externally Owned Account).

Example

import { verifyEOASignature } from "thirdweb/auth";
const isValid = await verifyEOASignature({
message: "0x1234567890123456789012345678901234567890",
signature: "0x1234567890123456789012345678901234567890",
address: "0x1234567890123456789012345678901234567890",
});
function verifyEOASignature(
): Promise<boolean>;

Parameters

The options for verifying the signature.

Type

let options: {
address: string;
message: string;
signature: string | Uint8Array | Signature;
};

Returns

let returnType: Promise<boolean>;

A boolean indicating whether the signature is valid.