WebAuthnValidationModule
Source:Verified
Read Functions / validateSignature
Overview

The validateSignature function in the WebAuthnValidationModule contract verifies the authenticity of a signature associated with a specific account and entity ID. It does this by creating a replay-safe hash of the provided digest and checking the signature against the expected values, returning a magic value if valid or an invalid value otherwise.

Inputs
  • account (address): The address of the account whose signature is being validated.
  • entityId (uint32): An identifier for the entity associated with the signature.
  • digest (bytes32): The hash of the message that was signed.
  • signature (bytes calldata): The signature to be validated.
Outputs
  • Returns (bytes4): Returns a magic value (_1271_MAGIC_VALUE) if the signature is valid, or an invalid value (_1271_INVALID) if it is not.
Emits Zero Events
Functions will often emit events during execution, often signifying key changes in state. There are no events emited by this function
Recent Transactions Calling This Function
This returns the latest 20 times that this function was called directly by a wallet or internally by another contract.
Looking for transactions where this function was called...