Receipt Verify
Consent Manager generates a cryptographically signed receipt.
Receipt contains:
- Consent ID
- User ID (if applicable)
- Purpose
- Timestamp
- Signature
- Hash
Receipt Verification Steps
- Extract receipt payload
- Compute SHA-256 hash
- Validate digital signature using public key
- Compare stored hash
🔹 Sample Code Tabs
- Java
- Python
- NodeJS
- Go
// JAVA RECEIPT VERIFY CODE
# PYTHON RECEIPT VERIFY CODE
// NODE RECEIPT VERIFY CODE
// GO RECEIPT VERIFY CODE