Cashu Development Kit

June 6, 2026 ยท View on GitHub

Warning

This project is in early development, it does however work with real sats! Always use amounts you don't mind losing.

crates.io Documentation License

Cashu Development Kit

CDK is a collection of rust crates for Cashu wallets and mints written in Rust.

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

Quick Start

CDK uses Nix flakes to manage development environments. We provide a lean default shell for standard development and a full-stack shell for integration testing.

# Enter the lean development shell (Rust + PostgreSQL)
nix develop

# OR enter the full regtest environment (Bitcoind + Lightning Nodes)
nix develop .#regtest

For more details on available environments, see the Development Guide.

Project structure

The project is split up into several crates in the crates/ directory:

Implemented NUTs:

Mandatory

NUT #Description
00Cryptography and Models
01Mint public keys
02Keysets and fees
03Swapping tokens
04Minting tokens
05Melting tokens
06Mint info

Optional

#DescriptionStatus
07Token state check:heavy_check_mark:
08Overpaid Lightning fees:heavy_check_mark:
09Signature restore:heavy_check_mark:
10Spending conditions:heavy_check_mark:
11Pay-To-Pubkey (P2PK):heavy_check_mark:
12DLEQ proofs:heavy_check_mark:
13Deterministic secrets:heavy_check_mark:
14Hashed Timelock Contracts (HTLCs):heavy_check_mark:
15Partial multi-path payments (MPP):heavy_check_mark:
16Animated QR codes:x:
17WebSocket subscriptions:heavy_check_mark:
18Payment Requests:heavy_check_mark:
19Cached responses:heavy_check_mark:
20Signature on Mint Quote:heavy_check_mark:
21Clear Authentication:heavy_check_mark:
22Blind Authentication:heavy_check_mark:
23Payment Method: BOLT11:heavy_check_mark:
25Payment Method: BOLT12:heavy_check_mark:
26Payment Request Bech32m Encoding:heavy_check_mark:
27Nostr Mint Backup:heavy_check_mark:
28Pay to Blinded Key (P2BK):heavy_check_mark:
29Batch Mint Tokens:heavy_check_mark:
30Payment Method: onchain:heavy_check_mark:

License

Code is under the MIT License

Contribution

All contributions are welcome.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Please see the development guide.