Accept caller-managed trusted Cashu wallets #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The library currently constructs its trusted Cashu receiving wallets and chooses their seed storage and SQLite databases. Applications that already own a CDK wallet cannot pass that wallet into satsettle, resulting in additional wallet lifecycle and storage management.
Proposed improvement
Add an Engine configuration path that accepts a caller-owned
Arc<Wallet>for a configured trusted mint. The caller chooses the wallet database, seed, and other wallet configuration. Retain the managed-wallet setup as a convenient default.A CDK wallet is configured for a particular mint and unit. Validate that a supplied wallet matches the requested trusted destination and sat-denominated payment terms. If multiple trusted mints are configured, define explicit routing rather than treating one wallet as covering every mint.
Acceptance criteria
Payment coordination storage is addressed separately by the storage-interface issue. Arbitrary untrusted source mints require the separate wallet-provider improvement; a single trusted wallet does not cover them.
This is a post-first-release improvement; no change to the current first-release persistence model is required now.
thesimplekid referenced this issue2026-10-09 11:20:33 +00:00