Cashu Development Kit
ALPHA This library is in early development, the api will change and should be used with caution.
CDK is the core crate implementing the cashu protocol for both the Wallet and Mint.
Crate Feature Flags
The following crate feature flags are available:
| Feature | Default | Description |
|---|---|---|
wallet |
Yes | Enable cashu wallet features |
mint |
Yes | Enable cashu mint wallet features |
Implemented NUTs:
See https://github.com/cashubtc/cdk/blob/main/README.md
Examples
//! Wallet example with memory store
use Arc;
use Duration;
use SplitTarget;
use memory;
use ;
use Wallet;
use Amount;
use Rng;
use sleep;
async
See more examples in the examples folder.
Minimum Supported Rust Version (MSRV)
The cdk library should always compile with any combination of features on Rust 1.63.0.
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 tokio --precise 1.38.1
cargo update -p reqwest --precise 0.12.4
cargo update -p serde_with --precise 3.1.0
cargo update -p regex --precise 1.9.6
cargo update -p backtrace --precise 0.3.58
# For wasm32-unknown-unknown target
cargo update -p bumpalo --precise 3.12.0
License
This project is distributed under the MIT software license - see the LICENSE file for details