• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • credentials/src
  • Presentation
  • assertHolderCanPresentCredentials

Function assertHolderCanPresentCredentials

  • assertHolderCanPresentCredentials(presentation): void
  • Checks that an identity can act as a legitimate holder of a set of credentials and thus include them in a presentation they sign. Credentials where nonTransferable === true and credentialSubject.id !== holder are disallowed and will cause this to fail.

    Parameters

    • presentation: {
          holder: Did;
          verifiableCredential: VerifiableCredential | VerifiableCredential[];
      }

      A Verifiable Presentation.

      • holder: Did

        The presentation holder's identifier.

      • verifiableCredential: VerifiableCredential | VerifiableCredential[]

        A VC or an array of VCs.

    Returns void

    • Defined in packages/credentials/src/presentation/Presentation.ts:143

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
    • Attestation
    • CType
    • DataIntegrity
    • DelegationNodeUtils
    • Holder
    • Issuer
    • KiltAttestationProofV1
    • KiltCredentialV1
    • KiltRevocationStatusV1
    • Presentation
      • presentationSchema
      • assertHolderCanPresentCredentials
      • create
      • validateStructure
      • verifyPresentationProof
    • 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