Appearance
@tamga-network/core
Shared building blocks for Tamga: SHA-256 / keccak-256, base64url and PEM helpers, and the identifier derivations every other package uses (issuer_id, ca_id, schema_id).
Install
sh
npm install @tamga-network/coreUsage
ts
import { computeIssuerId, computeSchemaId, certFingerprintSha256Hex, pemToDer } from "@tamga-network/core";
const der = pemToDer(institutionCertPem);
const issuerId = computeIssuerId("TR", der); // keccak256(state ‖ SHA-256(certificate))
const schemaId = computeSchemaId("urn:tamga:edu:DiplomaCredential:1");
const fingerprint = certFingerprintSha256Hex(der);Status
Pre-release (0.1.0) on npm — written and tested; the API may still change before 1.0. Every release is built from this repository by GitHub Actions and carries npm provenance (verifiable link to the source commit).
Links
- 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