@zanii/admissibility
v0.1.1
Published
Turn a Zanii audit bundle into a court-ready bilingual (Arabic/English) evidence pack for UAE Electronic Transactions Law 46/2021 - verification steps for a judge/expert + offline reproduce commands.
Readme
@zanii/admissibility
Turn a Zanii audit bundle into a court-ready evidence pack. We say "receipts are admissible evidence in UAE courts" — this makes it real. Given a verifiable bundle, it produces a bilingual (Arabic/English) pack stating what the record asserts, the exact verification steps a judge or appointed expert follows, the commands to reproduce the check offline, and the legal basis (Federal Decree-Law No. 46 of 2021 on Electronic Transactions & Trust Services).
npm install @zanii/admissibility @zanii/coreUsage
import { buildEvidencePack, renderEvidencePackMarkdown } from '@zanii/admissibility';
// bundle = GET /v1/export/<did> (or from @zanii/a2a-directory / erc8004 resolution)
const pack = buildEvidencePack(bundle);
console.log(pack.verified); // proven offline, zero trust in Zanii
fs.writeFileSync('evidence.md', renderEvidencePackMarkdown(pack, 'both')); // AR + ENbuildEvidencePack verifies the bundle with @zanii/core first — verified reflects
the bundle's own cryptographic proofs. The rendered pack is what you hand to counsel or
the court; renderEvidencePackMarkdown(pack, 'en' | 'ar' | 'both').
Changelog
- 0.1.0 — initial release:
buildEvidencePack,renderEvidencePackMarkdown(bilingual).
License
Apache-2.0.
