No description
  • Rust 97.2%
  • Shell 0.9%
  • Nix 0.7%
  • Python 0.5%
  • Just 0.4%
Find a file
2026-09-02 07:29:28 +00:00
.cargo test(cashu): resolve payment request mutation survivors 2026-07-24 10:37:24 +00:00
.github fix: ci jobs 2026-08-28 14:53:07 +00:00
.helix feat: mint management rpc server and client cli 2025-02-06 12:05:13 +00:00
bindings chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
crates fix: nest bolt11 mint method description under options 2026-08-31 19:02:18 +00:00
docs fix(mintd): fail closed on missing BDK wallet state 2026-08-31 11:58:12 +00:00
fuzz chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
meetings Update 2026-08-26-agenda.md 2026-08-26 18:43:43 +00:00
misc fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
nix chore: cache Go binding generation with Nix 2026-06-06 07:39:55 +01:00
tor tor service default config (#1449) 2026-03-16 18:52:20 +00:00
.backportrc.json feat: backport bot (#1215) 2025-10-27 18:59:46 -04:00
.cargo-mutants.toml chore: add tests to kill mutations (#1611) 2026-02-09 15:02:45 +00:00
.envrc improve: nix flakebox fmt 2023-10-22 18:36:52 +01:00
.gitignore feat(mintd): consolidate configuration in the database 2026-08-11 22:42:22 +00:00
.typos.toml feat(cdk-axum): support redis-cluster for caching 2026-05-21 17:35:48 +02:00
AGENTS.md feat(cdk-nostr): consolidate Nostr integrations 2026-08-24 12:39:38 +00:00
Cargo.lock chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
Cargo.lock.msrv chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
Cargo.toml chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
CHANGELOG.md chore: update changelog for 0.18.0 2026-09-01 10:46:26 +00:00
clippy.toml fix: suppress axum clippy warnings 2026-07-26 13:44:09 +00:00
CODE_STYLE.md chore: update CODE_STYLE 2024-04-10 20:49:35 +01:00
codecov.yml feat: add code cov (#1778) 2026-03-27 12:54:12 +00:00
DEVELOPMENT.md fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
docker-compose.ldk-node.yaml fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
docker-compose.postgres.yaml fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
docker-compose.redis-cluster.yaml feat(cdk-axum): support redis-cluster for caching 2026-05-21 17:35:48 +02:00
docker-compose.tor.yaml fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
docker-compose.yaml fix(mintd)!: require explicit mint initialization mode 2026-08-31 08:50:54 +00:00
Dockerfile feat(docker): add LDK Node mint service with dedicated Docker setup (#1108) 2025-09-23 14:23:06 +01:00
Dockerfile.arm feat(docker): add LDK Node mint service with dedicated Docker setup (#1108) 2025-09-23 14:23:06 +01:00
Dockerfile.ldk-node feat(docker): add LDK Node mint service with dedicated Docker setup (#1108) 2025-09-23 14:23:06 +01:00
Dockerfile.ldk-node.arm feat(docker): add LDK Node mint service with dedicated Docker setup (#1108) 2025-09-23 14:23:06 +01:00
Dockerfile.static feat: docker builds using static builds (#1685) 2026-02-27 10:59:53 +00:00
flake.lock fix(nix-flake): remove unused fenix input from nix flake 2026-08-09 09:54:28 +00:00
flake.nix fix: ci jobs 2026-08-28 14:53:07 +00:00
justfile feat(cdk-nostr): consolidate Nostr integrations 2026-08-24 12:39:38 +00:00
LICENSE-APACHE chore: add apache license 2026-08-02 21:47:27 +00:00
LICENSE-MIT chore: add apache license 2026-08-02 21:47:27 +00:00
LICENSE.md chore: add apache license 2026-08-02 21:47:27 +00:00
README.md chore: bump 0.18.0 2026-09-02 07:29:28 +00:00
REGTEST_GUIDE.md ci: cdk cache 2026-08-10 14:13:29 +00:00
rust-toolchain.toml feat: update rust to 1.97.1 2026-07-21 23:55:19 +01:00
rustfmt.toml feat: nostr mint backup (#1459) 2026-01-11 12:09:48 +00:00
SECURITY.md release: v0.1.0 2024-06-29 11:55:19 +01:00

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:

  • Libraries:
    • cashu: Core Cashu protocol implementation.
    • cdk: Rust implementation of Cashu protocol.
    • cdk-http-client: HTTP client abstraction for wallet-to-mint communication.
    • cdk-sqlite: SQLite Storage backend.
    • cdk-postgres: PostgreSQL Storage backend.
    • cdk-redb: Redb Storage backend.
    • cdk-supabase: Supabase Storage backend.
    • cdk-axum: Axum webserver for mint.
    • cdk-cln: CLN Lightning backend for mint.
    • cdk-lnd: Lnd Lightning backend for mint.
    • cdk-ldk-node: LDK Node Lightning backend for mint.
    • cdk-bdk: Onchain Bitcoin backend using BDK.
    • cdk-fake-wallet: Fake payment backend for mint. To be used only for testing, quotes are automatically filled.
    • cdk-common: Common utilities and shared code.
    • cdk-sql-common: Common SQL utilities for storage backends.
    • cdk-signatory: Signing utilities and cryptographic operations.
    • cdk-payment-processor: Payment processing functionality; LNbits integrations should use an external payment processor.
    • cdk-prometheus: Prometheus metrics integration.
    • cdk-nostr: Nostr integration — keys, NIP-44 encryption, NIP-17 inbox listener, NIP-47 wallet service, npub.cash SDK.
    • cdk-ffi: Foreign Function Interface bindings for other languages.
    • cdk-integration-tests: Integration test suite.
    • cdk-mint-rpc: Mint management gRPC server and cli.
  • Binaries:

Implemented NUTs:

Mandatory

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

Optional

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

License

Code is licensed under either the Apache License 2.0 or the MIT License, at your option. See LICENSE.md for details.

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.