Skip to content
bwk-bitcoinPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Reckless

Privacy-focused desktop Bitcoin wallet using the Silent Payments protocol.

Light Dark
History History, light History, dark
Send Send, light Send, dark
Keys Keys, light Keys, dark
Add a key Add a key, light Add a key, dark

Architecture

Qt6 GUI (C++)  --CXX FFI-->  Rust Backend (bwk-sp)
                                   |
                              Scanner Thread
                                   |
                              BlindBit Server
  • C++ / Qt6 — Desktop GUI using the qontrol framework
  • Rust — Wallet logic via bwk-sp (Bitcoin Wallet Kit - Silent Payments)
  • CXX — FFI bridge between the two languages

The Silent Payments wallet now lives under src/modules/sp/, and the app loads functionality as plugins (built-in and external) rather than as a flat src/ layout. See docs/MODULES.md for the plugin system.

Prerequisites

  • Nix with flakes enabled (for release builds)
  • just command runner

Build and Development

  • Use the project's just recipes for build, run, test, lint, and release flows.
  • Local development uses system Qt; release builds use Nix flakes.
  • Release binaries are produced in ./result/bin/.

External Plugin Example

i18n Quick Rules

  • Use TR("id") for stable ID-based singular UI text.
  • Use TRN("id", n) for stable ID-based plural UI text.
  • Keep IDs lowercase and hyphenated (example: delete-wallet).
  • Ensure every used ID exists in generated English TS (CI enforces this).
  • Strongly prefer TR/TRN; use Qt tr(...) only with a clear, documented reason.

Catalog editing:

  • reckless_en.lang: id => "English".
  • Other locales: id => "English" => "Translation".
  • Use NONE as locale translation placeholder to force English fallback and track pending translation.
  • .ts files are generated by the build and should not be committed.

Vendored Dependencies

Crates.io dependencies are vendored in reckless/vendor/ for offline/reproducible builds. Git dependencies are not vendored and are still fetched from GitHub:

Git dependency Repository Crates pulled
bwk pythcoiner/bwk.git bwk-sp
spdk pythcoiner/spdk.git spdk-core, backend-blindbit-native-non-async, bitcoin (spdk's internal wrapper)
rust-silentpayments pythcoiner/rust-silentpayments.git silentpayments
ureq fork pythcoiner/ureq.git ureq (3.x with gzip branch)

The configuration lives in reckless/.cargo/config.toml.

When re-vendoring crates.io dependencies, keep git dependencies non-vendored. Do not replace the existing cargo source configuration.

ureq note: vendor/ureq (no version suffix) is the git fork — remove it. vendor/ureq-2.12.1 is from crates.io — keep it.

Identifying git crates: if the list above is outdated, check reckless/Cargo.lock for entries with source = "git+https://...": those are the git-sourced crates. The vendored directory name matches the crate name (with a version suffix when there are duplicates, e.g. bitcoin-0.1.0 vs bitcoin).

Moving a dependency between vendored and non-vendored

Vendor a git dependency (stop fetching from GitHub):

  1. Add a [source."git+<url>"] section to reckless/.cargo/config.toml with replace-with = "vendored-sources" (see the output of cargo vendor for the exact syntax).
  2. Re-run cargo vendor and keep that crate in vendor/.

Stop vendoring entirely (fetch everything from the network):

Delete reckless/vendor/ and reckless/.cargo/config.toml. Cargo will fetch from crates.io and git as usual.

Vendoring Policy

  • Do not vendor git dependencies unless explicitly decided for the project.
  • If vendoring strategy changes, update reckless/.cargo/config.toml and reckless/vendor/ together.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages