]> Untitled Git - bdk-cli/commit
Add SQLite backing store for payjoin sessions
authorMshehu5 <musheu@gmail.com>
Mon, 16 Feb 2026 13:31:08 +0000 (14:31 +0100)
committerMshehu5 <musheu@gmail.com>
Thu, 2 Jul 2026 11:30:16 +0000 (12:30 +0100)
commitc2bdb3d53f503d9ce58cb2c43771320a89aefdf4
tree2d2e29939e758a6447cf71c935a0682df094f057
parentf02bd2f20af02f0d527e892212f8ab3fe0f68285
Add SQLite backing store for payjoin sessions

Persist payjoin sender and receiver state in SQLite so interrupted
payjoin sessions can be resumed after the CLI exits. Add dedicated
tables for send and receive sessions, append-only event logs for
state replay, receiver pubkey lookup for sender sessions, and
seen-input tracking for replay protection.

This follows the intended async payjoin design by persisting session
state across interruptions. SQLite keeps the initial persistence
backend simple and builds on existing rusqlite support, at the cost
of a small payjoin-specific schema and serialization layer.
src/error.rs
src/payjoin/db.rs [new file with mode: 0644]