• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • core/src
  • Attestation
  • verifyAgainstCredential

Function verifyAgainstCredential

  • verifyAgainstCredential(attestation: IAttestation, credential: ICredential): void
  • Verifies whether the data of the given attestation matches the one from the corresponding credential. It is valid if:

    • the Credential object has valid data (see Credential.verifyDataIntegrity); and
    • the hash of the Credential object, and the hash of the Attestation.

    Parameters

    • attestation: IAttestation

      The attestation to verify.

    • credential: ICredential

      The credential to verify against.

    Returns void

    • Defined in packages/core/src/attestation/Attestation.ts:135

Settings

Member Visibility

Theme

Modules

  • API Documentation
    • asset-did/src
    • augment-api/src
    • chain-helpers/src
      • Blockchain
      • ErrorHandler
      • SubscriptionPromise
    • config/src
      • ConfigService
    • core/src
      • Attestation
      • BalanceUtils
      • CType
        • Schemas
      • Claim
      • Credential
      • DelegationNodeUtils
      • PublicCredential
      • Quote
    • did/src
    • messaging/src
    • sdk-js/src
    • type-definitions/src
    • types/src
      • SubscriptionPromise
    • utils/src
      • Crypto
      • DataUtils
      • JsonSchema
      • SDKErrors
      • UUID
      • jsonabc
    • vc-export/src
      • constants
      • presentation
      • vcjsSuites
        • suites
          • KiltAttestedSuite
          • KiltIntegritySuite
          • KiltSignatureSuite
      • verification
  • fromChain
  • fromCredentialAndDid
  • getDelegationDetails
  • isIAttestation
  • verifyAgainstCredential
  • verifyDataStructure