# Bitcoin Service Usage: Persistent Idempotent Metering Deduplicate usage events in a local SQLite ledger. Use a persistent database in deployment; the in-memory fixture only demonstrates transaction semantics. Authenticate the producer and scope event identifiers to a tenant and service before recording. Repeated identical events are harmless; conflicting replays must be investigated. A usage ledger is not a Bitcoin transaction ledger. Run `python3 stage15-usage-metering.py` for offline synthetic assertions. No wallet access.