• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • vc-export/src
  • verification
  • verifyCredentialDigestProof

Function verifyCredentialDigestProof

  • verifyCredentialDigestProof(credential: VerifiableCredential, proof: CredentialDigestProof, options?: {
        hasher?: Hasher;
    }): Promise<VerificationResult>
  • Verifies a proof that reveals the content of selected properties to a verifier. This enables selective disclosure. Values and nonces contained within this proof will be hashed, the result of which is expected to equal hashes on the credential.

    Returns

    Object indicating whether proof could be verified.

    Parameters

    • credential: VerifiableCredential

      Verifiable Credential to verify proof against.

    • proof: CredentialDigestProof

      KILT self-signed proof object.

    • options: {
          hasher?: Hasher;
      } = {}

      Allows passing custom hasher.

      • Optional hasher?: Hasher

        A custom hasher. Defaults to hex(blake2-256('nonce'+'value')).

    Returns Promise<VerificationResult>

    • Defined in packages/vc-export/src/verificationUtils.ts:229

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
  • CredentialMalformedError
  • ProofMalformedError
  • AttestationVerificationResult
  • VerificationResult
  • AttestationStatus
  • validateSchema
  • verifyAttestedProof
  • verifyCredentialDigestProof
  • verifySelfSignedProof