@zincapp/trust-shared-types
v1.0.1
Published
Shared Zod schemas + types for the ZincApp Trust portal provider contract (manifest, evidence, status, events).
Downloads
410
Readme
@zincapp/trust-shared-types
Canonical Zod schemas + TypeScript types for the ZincApp Trust provider
contract: the manifest, evidence snapshots, status, and events every Trust
evidence provider exchanges with the portal. Zero runtime deps beyond zod.
Install
npm i @zincapp/trust-shared-typesUsage
import { TrustManifestSchema, EvidenceSnapshotSchema, canonicalJson } from '@zincapp/trust-shared-types';
const manifest = TrustManifestSchema.parse(rawManifest);
const digest = canonicalJson(snapshot); // stable, key-sorted serialization for hashingDual CJS + ESM, ships .d.ts. Part of the @zincapp/trust-* SDK — see
@zincapp/trust-provider-sdk
to implement a provider.
