• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • credentials/src
  • CType
  • toChain

Function toChain

  • toChain(cType): string
  • Encodes the provided CType for use in api.tx.ctype.add().

    Parameters

    • cType: ICType

      The CType to write on the blockchain.

    Returns string

    Encoded CType.

    • Defined in packages/credentials/src/ctype/CType.chain.ts:34

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
    • Attestation
    • CType
      • Schemas
      • CTypeChainDetails
      • CTypeLoader
      • ICTypeDetails
      • fetchFromChain
      • fromChain
      • fromProperties
      • getHashForSchema
      • getIdForSchema
      • hashToId
      • idToChain
      • idToHash
      • isICType
      • newCachingCTypeLoader
      • serializeForHash
      • toChain
      • verifyCTypeMetadata
      • verifyClaimAgainstNestedSchemas
      • verifyClaimAgainstSchema
      • verifyDataStructure
      • verifyObjectAgainstSchema
      • verifyStored
    • DataIntegrity
    • DelegationNodeUtils
    • Holder
    • Issuer
    • KiltAttestationProofV1
    • 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