Files
cdk/crates/cdk-redb
Cesar Rodas 7146cb8934 Fixed race condition
Bug: https://github.com/cashubtc/cdk/actions/runs/15683152414/job/44190084378?pr=822#step:5:19212

Reason: a race condition between removing proofs while melting and the quote states being updated.

Solution:

1. Error on duplicate proofs
2. Read quote when updating to avoid race conditions and rollbacks

Real solution: A transaction trait in the storage layer. That is coming next
2025-06-17 01:17:35 -03:00
..
2025-06-17 01:17:35 -03:00
2025-05-29 09:38:10 -04:00

CDK Redb

crates.io Documentation MIT licensed

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

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

Features

This crate provides a Redb-based storage implementation for:

  • Wallet storage
  • Mint storage
  • Proof tracking
  • Transaction history

Installation

Add this to your Cargo.toml:

[dependencies]
cdk-redb = "*"

License

This project is licensed under the MIT License.