Expand description
Code authentication manager (RFC-013).
CodeAuth composes the primitives from code, hashing, rng,
store, audit, and clock into the safe redemption flow described in
RFC-013 §10.3:
- rate-limit check;
- input normalization + validation;
- code lookup (
find_redeemable); - atomic claim (
claim_code); - host callback (creates / resolves subject);
- audit event;
- return
RedeemSuccess.
Steps 1–3 can fail without consuming the code. Only step 4 is
irreversible. Session issuance requires the RedeemSuccess proof, which
is only constructible when the claim returns Won.
Structs§
- Code
Auth - Manages one-time code issuance, validation, and redemption (RFC-013 §3).