WebAuthnValidationModule
Source:Verified
Contract Overview

The WebAuthnValidationModule contract is designed to manage the validation of signatures associated with WebAuthn authentication, facilitating secure operations for entities. It provides functionalities for installing and uninstalling signers, transferring public key coordinates, and validating user operations and signatures. Key features include the ability to generate replay-safe hashes and emit events to log changes in signer information.

Calls (7D)
Wallets (7D)
Token Balances
Main Functionalities
  1. Signer Management:

    • onInstall: Processes installation data to update the signer's public key coordinates and emits the SignerTransferred event to log the change.
    • onUninstall: Handles the uninstallation process by updating the signer's public key to default values (0, 0) and emits the SignerTransferred event.
    • transferSigner: Updates the public key coordinates for a specified entity ID and emits the SignerTransferred event to log the update.
  2. Signature Validation:

    • validateSignature: Validates the authenticity of a signature for a specific account and entity ID, returning a magic value if valid or an invalid value otherwise.
    • validateUserOp: Verifies a user operation's signature against a specified entity, returning a status code indicating the result of the validation.
  3. Utility Functions:

    • replaySafeHash: Generates a replay-safe hash by wrapping a given hash in an EIP-712 structure, ensuring protection against replay attacks.
    • moduleId: Returns a string identifier for the module, indicating its version and type.
  4. Interface Support:

    • supportsInterface: Checks if the contract implements a specific interface, including the IValidationModule interface.