Skip to content

Exporting & Verifying Bundles

End-to-End Audit & Verification Sequence
Sequence
  1. 1.Your ServiceBipkit API
    POST/api/v1/evaluate
    Evaluate state
  2. 2.Bipkit APIYour Service
    Decision + request_id
    Signed & appended to DPL
  3. 3.Your ServiceBipkit API
    POST/api/v1/provenance/export
    request_id
  4. 4.Bipkit APIYour Service
    dpl-bundle/1
    Ed25519 signed · SHA-256 state hash
  5. 5.Your ServiceExternal Auditor
    Share selective-disclosure dpl-bundle/1
  6. 6.External AuditorBipkit API
    GET/api/v1/provenance/keys & /manifest
    Fetch public keys
  7. 7.External AuditorBipkit API
    POST/api/v1/provenance/verify
    or offline verify
  8. 8.Bipkit APIExternal Auditor
    21 Invariants Verified
    Signature, manifest digest, chain linkage & calibration
Selective-disclosure dpl-bundle/1 artifacts can be verified against api.bipkit.io or completely offline using published Ed25519 keys.

Export & Verify with Official SDKs or cURL

Section titled “Export & Verify with Official SDKs or cURL”
POST/api/v1/provenance/export
POST/api/v1/provenance/verify

Export a self-contained dpl-bundle/1 JSON artifact for a given request_id and optional output_name, then submit it to /api/v1/provenance/verify to validate its Ed25519 signature, manifest digest, chain linkage, and calibration invariants. Supply presented_state only if you want on-demand SHA-256 state commitment proof included in the verification (it is never persisted).

import { Bipkit, type DplBundle } from "@bipware-org/bipkit";
const bipkit = new Bipkit();
const bundle = (await bipkit.provenance.export({
request_id: "eval_01K8FA1234567890ABCDEFGH",
output_name: "is_destructive",
})) as unknown as DplBundle;
const verification = await bipkit.provenance.verify(bundle);
console.log("Verified:", verification);