Options
All
  • Public
  • Public/Protected
  • All
Menu

Provide utility methods to verify a presentation/credential

Hierarchy

  • PresentationVerifier

Index

Constructors

constructor

Properties

verifyAnchor

verifyAnchor: VerifyFunction

verifySignature

verifySignature: VerifyFunction

Methods

cryptographicallySecureVerify

  • cryptographicallySecureVerify(credential: Credential): Promise<any>
  • Cryptographically secure verify the Credential. Performs a non cryptographically secure verification, attestation check and signature validation.

    Parameters

    • credential: Credential

      A credential object with expirationDate, claim and proof

    Returns Promise<any>

    true if verified, false otherwise.

nonCryptographicallySecureVerify

  • nonCryptographicallySecureVerify(credential: Credential): any
  • Non cryptographically secure verify the Credential Performs a synchronous proof verification only.

    Parameters

    • credential: Credential

      A credential object with expirationDate, claim and proof

    Returns any

    true if verified, false otherwise.

verifyGrant

  • verifyGrant(credential: Credential, requesterId: string, requestId: string): any
  • Verify if a credential was granted for a specific requesterId and requestId.

    Parameters

    • credential: Credential

      A credential object

    • requesterId: string

      A request Id used to calculate the granted signature

    • requestId: string

    Returns any

    true if verified, false otherwise.

Generated using TypeDoc