# Persistent Replay Protection for Bitcoin Agent Messages Claim authenticated message identifiers once using a durable ledger. Run `python3 stage14-replay-ledger.py` locally. Assertions use synthetic data; no network or wallet calls. Call the ledger only after authentication, strict parsing and recipient checks. The unique constraint coordinates concurrent claims on one SQLite database. A claim is not proof of payment: a crash after insertion requires a durable workflow state and reconciliation. This example never deletes identifiers, so storage grows; production retention must account for expiry, clock skew and identifier reuse. It does not coordinate separate database replicas.