Appearance
@tamga-network/verifier
The canonical verification pipeline (T0 + A–E) with three outcomes — ACCEPTED, REJECTED (with the failing step), INDETERMINATE ("could not check right now"). Signed OpenID4VP requests, encrypted answers, revocation-list pre-fetching, and the assertion a site uses with the hosted verifier. The /web subpath is the page kit (QR code, "open in wallet", passkeys).
Install
sh
npm install @tamga-network/verifierUsage
ts
import { createPresentationRequest, decryptResponse, verifyPresentation } from "@tamga-network/verifier";
const req = await createPresentationRequest({ signer, dcql, responseUri, requestUriBase }); // req.qrPayload → QR
const answer = await decryptResponse(jweFromWallet, req.encPrivateKey);
const { result, claims } = await verifyPresentation({ presentation: answer.vp_token.diploma[0], aud: signer.clientId,
nonce: req.nonce, policy, policyCredentialId: "diploma", trust, statusCache, rootCertsDer });A complete, tested version: examples/02-verify-own-server.
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