What a pack contains, and what it proves.
A pack is a view over the append-only ledger, rebuilt at read time, wrapped in an attestation over the sequence range it covers.
Attestation
Every export carries the same attestation block. It names the exact sequence range, the terminal hash, whether the range is contiguous, and which external anchors cover it.
"attestation": {
"client": "Northwind Supply",
"client_slug": "northwind",
"first_seq": 1,
"last_seq": 1842,
"record_count": 1842,
"terminal_hash": "9f2c4d1e...",
"contiguous": true,
"gaps": [],
"algorithm": "sha-256 hash chain, sorted-key canonical JSON",
"anchors": [{ "merkle_root": "4c1a9b6e...", "record_count": 512, "first_seq": 1331, "last_seq": 1842 }],
"generated_at": "2026-11-23T09:14:02Z"
}Delivery
Higher-assurance signing
With signing_mode: hmac_sha256, every decision response carries an x-aprve-signature header computed over a fixed canonical string. The body also reports the algorithm and key prefix, so a caller can tell immediately whether a response was signed.
aprve.v1
dec_7f3a91c4b2
1842
9f2c4d1e8b77a41e6c0d3a9b5e8f2d4c7a1b6e9d0c3f5a8b2e7d4c1a9b6e3f2d
signature = hex(HMAC-SHA256(client_secret, the four lines above))// The caller already holds the secret, so verification needs nothing from Aprve.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyAprveResponse(secret, body, receivedSignature) {
const input = ["aprve.v1", body.decision_id, String(body.record.seq), body.record.hash].join("\n");
const expected = createHmac("sha256", secret).update(input).digest("hex");
const a = Buffer.from(expected, "hex");
const b = Buffer.from(receivedSignature, "hex");
return a.length === b.length && timingSafeEqual(a, b);
}The secret is issued once and shown once from the client page in the console; rotate it there and the previous one stops verifying immediately. The path to a stronger mode is Ed25519 with a published JWKS endpoint, then keys held in an HSM. The canonical string stays the same, which is why it is versioned.
Anchoring
Anchoring sends a Merkle root and a sequence range to an endpoint you configure. Records never leave. It runs on a sweep, never on the decision path, so an unreachable anchor service delays nothing and denies nothing. Records are marked not_required until an endpoint exists rather than sitting in a pending state forever.
