Expand description
Code storage trait (RFC-005).
Adapters must implement CodeStore and prove atomic single-winner claim
behaviour by running the conformance suite (RFC-023).
Structs§
- Claim
Request - Parameters for a claim attempt.
- Code
Record - Parameters for inserting a new code record.
- Redeemable
Code - Record returned by a successful
find_redeemablecall.
Traits§
- Code
Store - Atomic, single-winner code storage (RFC-005).
Functions§
- code_
lookup_ candidates - Derive all candidate lookup keys for a normalized code value.
- expires_
at_ from_ ttl - Compute an
expires_atUnix timestamp from a now value and a TTL.