• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • credentials/src
  • KiltAttestationProofV1
  • calculateRootHash

Function calculateRootHash

  • calculateRootHash(credential, proof): Uint8Array
  • (Re-)computes the root hash / credential hash from a credential and proof.

    Parameters

    • credential: Pick<KiltCredentialV1, "federatedTrustModel"> & Partial<KiltCredentialV1>

      A KiltCredentialV1 type credential.

    • proof: Pick<KiltAttestationProofV1, "commitments"> & Partial<KiltAttestationProofV1>

      A KiltAttestationProofV1 type proof for this credential.

    Returns Uint8Array

    The root hash.

    • Defined in packages/credentials/src/V1/KiltAttestationProofV1.ts:191

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
    • Attestation
    • CType
    • DataIntegrity
    • DelegationNodeUtils
    • Holder
    • Issuer
    • KiltAttestationProofV1
      • Interface
      • UnissuedCredential
      • PROOF_TYPE
      • proofSchema
      • applySelectiveDisclosure
      • calculateRootHash
      • finalizeProof
      • initializeProof
      • issue
      • validateStructure
      • verify
    • KiltCredentialV1
    • KiltRevocationStatusV1
    • Presentation
    • Types
    • Verifier
    • DelegationNode
    • W3C_CREDENTIAL_CONTEXT_URL
    • W3C_CREDENTIAL_TYPE
    • W3C_PRESENTATION_TYPE
  • did/src
  • jsonld-suites/src
  • legacy-credentials/src
  • sdk-js/src
  • types/src
  • utils/src