mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-03 04:55:39 +01:00
* feat: optimize SQL balance calculation replace proof-fetching approach with SUM aggregation - add get_balance() method to Database trait - implement SQL SUM aggregation in cdk-sql-common - update total_balance() to use get_balance() instead of get_unspent_proofs() - redb impl maintains existing behavior --------- Co-authored-by: thesimplekid <tsk@thesimplekid.com> Co-authored-by: Cesar Rodas <cesar@rodasm.com.py>
CDK Redb
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) wallet.
Features
This crate provides a Redb-based storage implementation for wallet functionality, including:
- Wallet storage
- Proof tracking
- Transaction history
Installation
Add this to your Cargo.toml:
[dependencies]
cdk-redb = "*"
License
This project is licensed under the MIT License.