Documentation
¶
Overview ¶
Package idem is what tells one request from another under one idempotency key (R17, R35): the key's form and the request's fingerprint.
A fingerprint is of the request as protobuf writes it deterministically, with its key left out, so that a repeat of one request has the fingerprint of its first. Most are SHA-256. One of a request that carries a PIN or an age is argon2id with a salt of its own: a PIN has 10⁶ values and an age 18, so a fast hash of either would give it back, and the age is kept nowhere (privacy 3.3 spec).
Index ¶
Constants ¶
const MaxKey = 128
MaxKey is the longest key, in bytes, that a record keeps.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
Fingerprint is the fingerprint of req: argon2id when slow, SHA-256 otherwise.
Types ¶
This section is empty.