Every entropy draw generates a signed provenance record. Records form a cryptographic hash chain and are persisted to R2 for replay-ready retention.
One record per draw. The same record is written to the operational layer (KV, 90-day TTL) and the persistent layer (R2 JSONL, 7-year retention).
{
"provenance_id": "prov_2026_06_23_abc123",
"issued_at": "2026-06-23T14:22:08.117Z",
"api_key_id": "qsg_live_…",
"source_id": "qrng-hardware-001",
"source_class": "hardware-derived-premium",
"entropy_score": 0.999,
"size_bytes": 32,
"entropy_hash": "sha256:…",
"key_exchange": "X25519+ML-KEM-1024",
"health_check": {
"rct_passed": true,
"apt_passed": true
},
"fallback": {
"is_fallback": false,
"reason": null,
"original_source": null
},
"prev_hash": "sha256:…",
"signature": "ml-dsa-65:…"
}
Every record carries the cryptographic linkage to the prior record (prev_hash) and the ML-DSA-65 signature over the full payload.
The hash chain makes retroactive tampering detectable. A replay procedure can be run against the full R2 JSONL stream to verify every record in sequence.
SHA-256 over the canonicalized JSON of every field except prev_hash and signature.
prev_hash is set to the hash of the immediately preceding record's payload. Any modification of any prior record breaks the chain from that point forward.
The hash-linked payload is signed with ML-DSA-65. The signature is stored alongside the record and can be verified by anyone with the verification public key.
For a given window, the replay procedure reads records from R2, recomputes the hash chain, and verifies each signature. Mismatches are flagged with the record index and the offending field.
Verified and Enterprise tiers can run the replay procedure on demand via POST /v1/verify.
Records live in two places with the same provenance_id. The two layers serve different operational needs.
Cloudflare KV · 90-day rolling TTL
Cloudflare R2 JSONL · 7-year retention
{
"provenance_id": "prov_2026_06_23_abc123",
"issued_at": "2026-06-23T14:22:08.117Z",
"source_id": "qrng-hardware-001",
"source_class": "hardware-derived-premium",
"entropy_score": 0.999,
"size_bytes": 32,
"entropy_hash": "sha256:…",
"key_exchange": "X25519+ML-KEM-1024",
"health_check": { "rct_passed": true, "apt_passed": true },
"fallback": { "is_fallback": false, "reason": null, "original_source": null },
"prev_hash": "sha256:…",
"signature": "ml-dsa-65:…"
}
Available on Verified and Enterprise tiers. Lookup latency < 50 ms P95 globally.
For regulated customers, a Compliance Pack is available under NDA. The pack contains: full schema reference, replay procedure documentation, retention policy, cryptographic posture, and pen-test summary.
Request: info@quantumsecuregateway.com
Verified and Enterprise tiers unlock the lookup endpoint and on-demand replay.