• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • credentials/src
  • KiltCredentialV1
  • validateStructure

Function validateStructure

  • validateStructure(credential): void
  • Validates an object against the KiltCredentialV1 data model. Throws if object violates the credentialSchema.

    Parameters

    • credential: Omit<KiltCredentialV1, "proof">

      Credential or object to be validated.

    Returns void

    • Defined in packages/credentials/src/V1/KiltCredentialV1.ts:198

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
    • Attestation
    • CType
    • DataIntegrity
    • DelegationNodeUtils
    • Holder
    • Issuer
    • KiltAttestationProofV1
    • KiltCredentialV1
      • Interface
      • CONTEXT_URL
      • CREDENTIAL_SCHEMA_TYPE
      • CREDENTIAL_TYPE
      • DEFAULT_CREDENTIAL_CONTEXTS
      • DEFAULT_CREDENTIAL_TYPES
      • DELEGATION_TYPE
      • LEGITIMATION_TYPE
      • credentialSchema
      • fromInput
      • idFromRootHash
      • idToRootHash
      • validateStructure
      • validateSubject
    • 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