Module X402::BSV::PrefixStore ¶
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.