mina_verifyMessage

This method is used to verify the validity of the signature info.

Params

interface VerifyMessageArgs{
    // sign account address.
    publicKey: string;
    // sign message.
    data: string;
    // sign result.
    signature: {
        field: string;
        scalar: string;
    }
}

Result

interface ProviderError extends Error {
    message: string; // error message.
    code: number; // error code.
    data?: unknown; // error body. 
}

Promise<boolean | ProviderError>

Errors

20002

Signature verification failed.

This error is returned because an exception was thrown, please check the signature format.

23001

Origin dismatch.

Check origin safe.

Example

Request

Result

Last updated