Documentation
    Preparing search index...

    Function isValidSignature

    • Whether signature is a valid signature over bytes (and, if options.address is given, was produced by that address). Returns false for a malformed or cryptographically invalid signature, or one that doesn't match the address; only an environmental failure (e.g. a zkLogin JWK/epoch lookup) throws, so a network blip is never reported as an invalid signature.

      Parameters

      • bytes: Uint8Array
      • signature: string
      • options: { address?: string } = {}

      Returns Promise<boolean>