• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • legacy-credentials/src
  • Credential
  • fromClaim

Function fromClaim

  • fromClaim(claim, option?): ICredential
  • Builds a new ICredential object, from a complete set of required parameters.

    Parameters

    • claim: IClaim

      An IClaim object to build the credential for.

    • option: Credential.Options = {}

      Container for different options that can be passed to this method.

    Returns ICredential

    A new ICredential object.

    • Defined in packages/legacy-credentials/src/Credential.ts:254

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
  • did/src
  • jsonld-suites/src
  • legacy-credentials/src
    • Attestation
    • Claim
    • Credential
      • VerifiedCredential
      • Options
      • calculateRootHash
      • createPresentation
      • fromClaim
      • getHash
      • isICredential
      • isPresentation
      • makeSigningData
      • refreshRevocationStatus
      • removeClaimProperties
      • verifyAgainstAttestation
      • verifyAttested
      • verifyCredential
      • verifyDataIntegrity
      • verifyDataStructure
      • verifyPresentation
      • verifyRootHash
      • verifySignature
      • verifyWellFormed
    • fromVC
    • toVc
  • sdk-js/src
  • types/src
  • utils/src