No description
  • Rust 97.2%
  • Shell 1%
  • Nix 0.8%
  • Just 0.4%
  • Python 0.4%
Find a file
freeyao 41504a2607
Some checks failed
Nutshell integration / Nutshell Mint Integration Tests (push) Failing after 30s
Nutshell integration / Nutshell Wallet Integration Tests (push) Failing after 28s
CI / Discover examples (push) Successful in 1m45s
CI / Cargo fmt, typos (push) Successful in 1m49s
CI / Discover checks (push) Successful in 1m2s
CI / Discover MSRV checks (push) Successful in 1m39s
CI / Discover WASM checks (push) Successful in 1m23s
CI / Build integration test binaries (push) Has been cancelled
CI / PostgreSQL Tests (push) Has been cancelled
CI / Quick Check (lint, clippy, unit tests) (push) Has been cancelled
CI / Supabase Tests (push) Has been cancelled
CI / Integration regtest tests (push) Has been cancelled
CI / Integration regtest tests-1 (push) Has been cancelled
CI / Integration regtest Onchain tests (push) Has been cancelled
CI / Integration regtest Onchain tests-1 (push) Has been cancelled
CI / Integration fake mint tests (push) Has been cancelled
CI / Integration fake mint tests-1 (push) Has been cancelled
CI / Integration fake wallet tests (push) Has been cancelled
CI / Integration fake wallet tests-1 (push) Has been cancelled
CI / Integration fake wallet tests-2 (push) Has been cancelled
CI / Payment processor tests (push) Has been cancelled
CI / Payment processor tests-1 (push) Has been cancelled
CI / Payment processor tests-2 (push) Has been cancelled
CI / Integration fake mint auth tests (push) Has been cancelled
CI / Documentation tests (push) Has been cancelled
CI / Strict Documentation Check (push) Has been cancelled
CI / FFI Python tests (push) Has been cancelled
CI / Code Coverage (push) Has been cancelled
CI / Dart binding tests (push) Has been cancelled
CI / Kotlin binding tests (push) Has been cancelled
CI / Go binding tests (push) Has been cancelled
CI / Swift binding tests (push) Has been cancelled
CI / Example: example-melt-token (example-melt-token) (push) Has been cancelled
CI / Example: example-mint-token (example-mint-token) (push) Has been cancelled
CI / Example: example-p2pk (example-p2pk) (push) Has been cancelled
CI / Example: example-proof-selection (example-proof-selection) (push) Has been cancelled
CI / Example: example-wallet (example-wallet) (push) Has been cancelled
CI / Check: core-lib (core-lib) (push) Has been cancelled
CI / Check: lightning-and-api (lightning-and-api) (push) Has been cancelled
CI / Check: mintd-backends-postgres (mintd-backends-postgres) (push) Has been cancelled
CI / Check: mintd-backends-sqlite (mintd-backends-sqlite) (push) Has been cancelled
CI / Check: mintd-main (mintd-main) (push) Has been cancelled
CI / Check: storage-and-cli (storage-and-cli) (push) Has been cancelled
CI / MSRV: msrv-cdk-all-features (msrv-cdk-all-features) (push) Has been cancelled
CI / MSRV: msrv-cdk-cli (msrv-cdk-cli) (push) Has been cancelled
CI / MSRV: msrv-cdk-mintd-all (msrv-cdk-mintd-all) (push) Has been cancelled
CI / MSRV: msrv-cdk-wallet-only (msrv-cdk-wallet-only) (push) Has been cancelled
CI / WASM: wasm-cdk (wasm-cdk) (push) Has been cancelled
CI / WASM: wasm-cdk-no-default (wasm-cdk-no-default) (push) Has been cancelled
CI / WASM: wasm-cdk-wallet (wasm-cdk-wallet) (push) Has been cancelled
fix(cdk-sqlite): use pragma_update for PRAGMA key to enable safe string handling
2026-06-19 12:51:03 +01:00
.cargo chore: mutation testing apr 10 2026-04-10 12:48:10 +01:00
.github fix: disable checkout credential persistence in nightly rustfmt 2026-06-18 18:47:16 +01:00
.helix feat: mint management rpc server and client cli 2025-02-06 12:05:13 +00:00
bindings feat: update version to rc.3 2026-06-03 11:23:39 +02:00
crates fix(cdk-sqlite): use pragma_update for PRAGMA key to enable safe string handling 2026-06-19 12:51:03 +01:00
docs/migrations Prepare v0.15 (#1623) 2026-02-12 16:19:58 +00:00
fuzz chore: bump cdk version 0.17.0 2026-06-12 23:40:32 +01:00
meetings chore: add weekly meeting agenda for 2026-06-17 2026-06-18 17:47:58 +01:00
misc ci: run bolt12 regtest suite against the LDK mint 2026-06-12 15:00:47 +01: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 test(supabase): add local integration test harness 2026-06-05 21:50:15 +01:00
.typos.toml feat(cdk-axum): support redis-cluster for caching 2026-05-21 17:35:48 +02:00
AGENTS.md feat: add cdk review for agents 2026-05-11 22:26:55 -04:00
Cargo.lock chore: bump fedimint-tonic-lnd from 0.2.0 to 0.4.0 2026-06-18 12:25:08 +02:00
Cargo.lock.msrv chore: bump fedimint-tonic-lnd from 0.2.0 to 0.4.0 2026-06-18 12:25:08 +02:00
Cargo.toml chore: bump cdk version 0.17.0 2026-06-12 23:40:32 +01:00
CHANGELOG.md docs: changelog 0.17 2026-06-12 23:40:32 +01:00
clippy.toml fix: just quick-check (#1580) 2026-03-06 16:13:28 +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 chore: add rebase to development.md 2026-04-10 12:43:20 +01:00
docker-compose.ldk-node.yaml fix: bind docker ldk dashboard to localhost 2026-05-27 09:27:11 +02:00
docker-compose.postgres.yaml feat: add support for custom methods in fake wallet 2026-05-27 14:13:16 +02: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 feat: add support for custom methods in fake wallet 2026-05-27 14:13:16 +02:00
docker-compose.yaml feat: add support for custom methods in fake wallet 2026-05-27 14:13:16 +02: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 chore: bump nix version to 26.05 2026-06-05 22:29:49 +01:00
flake.nix fix: flake 2026-06-13 00:20:13 +01:00
justfile chore: cache Go binding generation with Nix 2026-06-06 07:39:55 +01:00
LICENSE chore: rename for CDK 2024-04-15 15:36:15 +01:00
README.md chore: update readme 2026-06-06 08:37:26 +01:00
REGTEST_GUIDE.md chore: update agents.md for regtest 2026-04-18 14:16:35 +01:00
rust-toolchain.toml chore: update stable rust to 1.96 2026-06-03 18:16:37 +02: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:

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 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.