How to test: Point your phone's camera at the screen running /scan, or click Download QR Image and upload it to the scanner's image dropzone.
1. Quantity Alteration (24.2 → 48.0 MT)
Simulates an operator modifying the quantity field from 24.2 MT to 48.0 MT without the private key.
Expected Result:
DIGITAL SIGNATURE FAILED / TAMPERED
2. Vehicle Reg Swap (JH10AB → JH10XX)
Simulates reusing a genuine pass on an unauthorized truck by changing registration to JH10XX9999.
Expected Result:
DIGITAL SIGNATURE FAILED / TAMPERED
3. Expired Transit Pass (2 Days Old)
Simulates a pass with timestamps 2 days in the past. Demonstrates that time validity is checked against the device clock.
Expected Result:
EXPIRED JOURNEY PASS
4. Journey Starts Tomorrow (Future)
Simulates a pass generated for dispatch tomorrow. Scanned before the journey window opens.
Expected Result:
NOT YET ACTIVE (FUTURE)
5. Untrusted Key ID (ROGUE_KEY_99)
Signed with an unauthorized private key not recognized by the official cached public key registry.
Expected Result:
UNTRUSTED SIGNING KEY ID
6. UPI Merchant Payment Code
Simulates an inspector accidentally scanning a payment counter UPI code instead of the mineral receipt.
Expected Result:
UNRELATED UPI PAYMENT QR DETECTED
7. Arbitrary Web Link / Phishing URL
Scanning a web link. The verifier safely catches it and never executes or automatically opens external links.
Expected Result:
UNRELATED WEB URL DETECTED
8. Genuine Legitimate Pass (Valid)
The control benchmark pass generated with valid Ed25519 digital signature and active validity window.
Expected Result:
✓ CRYPTOGRAPHICALLY VALID & ACTIVE
Edit any individual letter, timestamp, or digit in the canonical QR string below and click Re-render QR Code. Test how even a 1-character typo or alteration completely breaks cryptographic validation.