Files
cdk/crates/cdk-sqlite
Cesar Rodas a681c6e054 Fix SQLite race condition
Bug: https://github.com/crodas/cdk/actions/runs/15732950296/job/44339804072#step:5:1853

Reason: When melting in parallel, many update the melt status and attempt to
add proofs and they fail when adding the proof and the rollback code kicks in.
The loser process removes all the proofs, and the winner process has no proof
later on.

Fix: Modify `update_melt_quote_state` requirements and implementation to allow
only one winner.

This will be solved by design with a transaction writer trait
2025-06-18 16:20:24 -03:00
..
2025-06-18 16:20:24 -03:00
2025-06-14 12:49:50 +01:00
2025-05-29 09:38:10 -04:00

CDK SQLite

crates.io Documentation MIT licensed

ALPHA This library is in early development, the API will change and should be used with caution.

SQLite storage backend implementation for the Cashu Development Kit (CDK).

Features

The following crate feature flags are available:

Feature Default Description
wallet Yes Enable cashu wallet features
mint Yes Enable cashu mint wallet features
sqlcipher No Enable encrypted database

Installation

Add this to your Cargo.toml:

[dependencies]
cdk-sqlite = "*"

Minimum Supported Rust Version (MSRV)

This crate supports Rust version 1.75.0 or higher.

To build and test with the MSRV you will need to pin the below dependency versions:

cargo update -p half --precise 2.2.1
cargo update -p home --precise 0.5.5
cargo update -p tokio --precise 1.38.1
cargo update -p serde_with --precise 3.1.0
cargo update -p reqwest --precise 0.12.4

License

This project is licensed under the MIT License.