Skip to content

Cryptographic evidence ledger & exports

Every consent grant, update, and withdrawal recorded by PolicyGrain is written by an insert-only PostgreSQL role, linked in a per-site SHA-256 hash chain, and anchored daily with an Ed25519 signed Merkle root.

View .mdOpen llms.txt

Hash chain and Ed25519 daily Merkle roots

HMAC-SHA256 IP key
Raw visitor IP addresses are never stored. Incoming IPs are keyed-hashed with a server-side HMAC-SHA256 secret for rate-limiting and abuse classification only.
Insert-only database role
The receipt ingest writer holds only INSERT and SELECT privileges on evidence.consent_events, preventing silent mutation or deletion.
Per-site SHA-256 chain
Each receipt hashes its canonical payload together with the previous sequence's hash for that site.
Ed25519 daily Merkle roots
A scheduled worker computes a Merkle root over each site's daily receipts, signs the root with the server Ed25519 key, and stores it in evidence.evidence_roots.

10,000 monthly free-tier receipts (never blocks ingest)

Each site includes 10,000 trusted consent receipts per calendar month on the free plan. Reaching 10,000 never turns off your banner and never drops incoming receipts: every choice continues to be stored and hash-chained, while evidence packs clearly report any gated_from date past the free allowance.

Paid plans raise the export allowance and site count: Free ₹0 (1 site, 10,000 receipts a month) · Pro ₹1,499 a month or ₹14,999 a year (3 sites, 100,000 a month) · Agency ₹6,999 a month or ₹69,999 a year (25 sites, 500,000 a month) · Vendor Trust Pack ₹14,999 plus ₹2,999 a year. Prices exclude 18% GST (SAC 998314). See /reference/billing.

Export limit-aware JSON & CSV evidence packs

CSV exports apply strict formula neutralization (prefixing leading =, +, -, @, tab, or carriage-return characters) so spreadsheet tools cannot execute injected formulas.

bash
# Check latest daily Ed25519 Merkle root
curl https://api.policygrain.com/v1/sites/site_01.../seal \
  -H "Authorization: Bearer $POLICYGRAIN_API_KEY"

# Request a date-bounded evidence pack (requires verified account + evidence:read)
curl -X POST https://api.policygrain.com/v1/sites/site_01.../evidence-packs \
  -H "Authorization: Bearer $POLICYGRAIN_API_KEY" \
  -H "Idempotency-Key: pack-nov-2026" \
  -H "Content-Type: application/json" \
  -d '{"from": "2026-11-01", "to": "2026-11-22"}'