Expand description
Loop Agent SDK - Privacy Layer
Blind indexing for card fingerprints. Loop never stores raw card IDs — only one-way cryptographic tags.
§Security Model
- Pepper: System-wide secret stored in AWS Secrets Manager
- Algorithm: HMAC-SHA256
- Output:
loop_fp_{hex_hash} - Irreversible: Even with DB access, card IDs cannot be recovered
§Double-Blind Vaulting
- Webhook arrives with
card_id - Immediately hash to
loop_fp_* - Purge raw
card_idfrom memory - All subsequent operations use only the fingerprint
This means:
- Logs never contain card IDs
- DynamoDB never sees card IDs
- Even Loop engineers cannot reverse fingerprints
Structs§
- Loop
Fingerprint - A Loop fingerprint (one-way hash of card_id)
- Privacy
Config - Privacy configuration
- Privacy
Layer - Privacy layer for card fingerprint hashing
Enums§
- Privacy
Error - Privacy layer errors
Functions§
- create_
pepper_ secret - Create the pepper secret in AWS Secrets Manager Run this during initial setup
- generate_
pepper - Generate a new random pepper (32 bytes) Run this once to create the initial secret