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

Function updateCredentialDigestProof

  • updateCredentialDigestProof(credential: VerifiableCredential, proof: CredentialDigestProof, options?: {
        hasher?: Hasher;
    }): Promise<CredentialDigestProof>
  • This proof is added to a credential to prove that revealed properties were attested in the original credential. For each property to be revealed, it contains an unsalted hash of the statement plus a nonce which is required to verify against the salted hash in the credential. Statements and nonces are mapped to each other through the unsalted hashes.

    Returns

    Proof object that can be included in a Verifiable Credential / Verifiable Presentation's proof section.

    Parameters

    • credential: VerifiableCredential

      VerifiableCredential object containing only the credentialSubject properties you want to reveal.

    • proof: CredentialDigestProof

      The CredentialDigestProof to update.

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

      Options.

      • Optional hasher?: Hasher

        The hashing function used to generate digests for nonce map. Should be the one used in creating the original credential.

    Returns Promise<CredentialDigestProof>

    • Defined in packages/vc-export/src/presentationUtils.ts:33

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
  • makePresentation
  • removeProperties
  • updateCredentialDigestProof