Implementation prototype

Premium Haztrak — Manifest Integrity

A scoped proof of concept for manifest hashing and chain-of-custody, built against the four points from your Aug 6 message: mock manifest entry, the listed fields, a SHA-256 hashing function, and an event timeline.

⚠ Mock data only — not connected to RCRAInfo or your production repository

New manifest

01
Manifest record & proof
Stored proof hash
Current data hash
Match — record is intact
Edit waste type or status above to simulate a post-signature change and watch the hash diverge.

Chain of custody

02
Create a manifest to start the chain.
Each event's hash is computed over its own data plus the hash of the event before it. Altering any past event — or reordering these — would break every hash that follows, which is what makes the chain tamper-evident rather than just a list of timestamps.

Reference implementation

backend

The demo above runs this exact canonicalize-then-hash logic client-side via the Web Crypto API — it's the same algorithm, not a mockup of it. Below is the Django-side equivalent, sized to sit next to your existing core/services/get_task_status in server/core/services/integrity.py.