Skip to Content
API referenceSIWX EVMSrcComponentsverifyEip191()

API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)


verifyEip191()

verifyEip191(message, signature, options?): Promise<EvmVerifyResult>

Defined in: packages/siwx-evm/src/verify.ts:65 

Verifies an EVM (eip155) CAIP-122 signature using EIP-191 (personal_sign). This method is used for standard EOA (Externally Owned Account) wallets.

Parameters

message

string

The raw CAIP-122 message string that was signed.

signature

`0x${string}`

The hex-encoded EIP-191 signature from the wallet.

options?

EvmVerifyOptions = {}

Returns

Promise<EvmVerifyResult>

An EvmVerifyResult with success: true and the parsed message, or an error result.

Example

const result = await verifyEip191(rawMessage, '0xdeadbeef...'); if (result.success) console.log('Authenticated as:', result.data?.address);
Last updated on