Module: X402::BSV::PrefixStore
- Defined in:
- lib/x402/bsv/prefix_store.rb
Overview
Pluggable replay protection for BRC-105 derivation prefixes.
The store tracks prefixes through three states: nil → :issued → :consumed
Duck-type contract — any backend must implement: store!(prefix) — records a prefix as issued; raises StoreFullError if at capacity valid?(prefix) — non-binding read: true if prefix was issued and not yet consumed. Not called in the production settle! path — consume! is used directly and must be atomic and self-validating. consume!(prefix) — atomically marks prefix as used; returns false if already consumed or unknown. Must not rely on a prior valid? call.
Defined Under Namespace
Classes: Memory, StoreFullError