Class Verifier

Basic representation of a signature verifier compatible contract. If additional functionality is required, this contract can be extended via inheritance

Hierarchy

Constructors

Accessors

  • get address(): string
  • Returns the contract address

    Returns string

  • get contract(): Contract
  • Returns the underlying contract interface

    Returns Contract

Methods

  • Returns an interface allowing for us with the multicall method of a provider

    Parameters

    • name: string
    • Rest ...params: any[]

    Returns ContractCall

  • Protected

    Automatically keeps trying the call unless we get a revert exception

    Type Parameters

    • T

    Parameters

    • func: ((...args) => Promise<T>)
        • (...args): Promise<T>
        • Parameters

          • Rest ...args: any[]

          Returns Promise<T>

    • Rest ...params: any[]

    Returns Promise<T>

  • Returns whether the specified interface is supported by the contract

    Parameters

    • interfaceId: string

    Returns Promise<boolean>

  • Verifies the signature of a specific hash value

    Parameters

    • hash: string
    • v: number
    • r: string
    • s: string

    Returns Promise<string>

  • Verifies the signature of a specific message

    Parameters

    • message: string
    • v: number
    • r: string
    • s: string

    Returns Promise<string>