Skip to content
function verifyAuthorization(ctx, authorization, signature): Promise<boolean>;

Verifies either an EOA or ERC-1271 signature against a definition. Vault definitions retain the caller-selected verifyingContract; a valid signature does not attest that the selected vault is protocol-compatible.

Parameters

ParameterType
ctxSDKContext
authorizationAnvilAuthorization
signature`0x${string}`

Returns

Promise<boolean>

Throws

BaseError when the connected provider cannot perform verification; the underlying provider error remains available as cause.