[!Warning] This project is in early development, it does however work with real sats! Always use amounts you don't mind losing.
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.
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.
The project is split up into several crates in the crates/ directory:
| NUT # | Description |
|---|---|
| 00 | Cryptography and Models |
| 01 | Mint public keys |
| 02 | Keysets and fees |
| 03 | Swapping tokens |
| 04 | Minting tokens |
| 05 | Melting tokens |
| 06 | Mint info |
| # | Description | Status |
|---|---|---|
| 07 | Token state check | :heavy_check_mark: |
| 08 | Overpaid Lightning fees | :heavy_check_mark: |
| 09 | Signature restore | :heavy_check_mark: |
| 10 | Spending conditions | :heavy_check_mark: |
| 11 | Pay-To-Pubkey (P2PK) | :heavy_check_mark: |
| 12 | DLEQ proofs | :heavy_check_mark: |
| 13 | Deterministic secrets | :heavy_check_mark: |
| 14 | Hashed Timelock Contracts (HTLCs) | :heavy_check_mark: |
| 15 | Partial multi-path payments (MPP) | :heavy_check_mark: |
| 16 | Animated QR codes | :x: |
| 17 | WebSocket subscriptions | :heavy_check_mark: |
| 18 | Payment Requests | :heavy_check_mark: |
| 19 | Cached responses | :heavy_check_mark: |
| 20 | Signature on Mint Quote | :heavy_check_mark: |
| 21 | Clear Authentication | :heavy_check_mark: |
| 22 | Blind Authentication | :heavy_check_mark: |
| 23 | Payment Method: BOLT11 | :heavy_check_mark: |
| 25 | Payment Method: BOLT12 | :heavy_check_mark: |
| 26 | Payment Request Bech32m Encoding | :heavy_check_mark: |
| 27 | Nostr Mint Backup | :heavy_check_mark: |
| 28 | Pay to Blinded Key (P2BK) | :heavy_check_mark: |
| 29 | Batch Mint Tokens | :heavy_check_mark: |
| 30 | Payment Method: onchain | :heavy_check_mark: |
Code is under the MIT License
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.