Skip to content

@tamga-network/schemas ​

The Tamga document-type catalogue: type metadata and JSON Schema for each vct (e.g. urn:tamga:edu:DiplomaCredential:1) and their content hashes, as published at schemas.tamga.network.

Install ​

sh
npm install @tamga-network/schemas

Usage ​

ts
import { ALL, CATALOGUE_BASE } from "@tamga-network/schemas"; // definitions (runs anywhere, incl. React Native)
import { build } from "@tamga-network/schemas/build"; // Node only: writes the static catalogue to dist/

New in 0.8.6 ​

  • Every credential type schema allows nbf. IdentityAttestation gains an optional date_of_expiry (administrative validity) and limits family_name / given_name to 150 characters. The type metadata hashes (vct#integrity) change; use the catalog's current values.

Status ​

Published on npm as the 0.8.6 test release; the stable 1.0.0 comes when everything is ready. In test releases the API may change. Every release is built from this repository by GitHub Actions and carries npm provenance (verifiable link to the source commit).

  • Working examples, run in CI against the real packages: examples/
  • Integration guides and specifications: docs.tamga.network
  • Code: Apache-2.0 · Documentation: CC BY 4.0