Skip to content
SatoshiPortalPublic
forked from bwk-bitcoin/bwk

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Bitcoin Wallet Kit

Experimental. Do not use in production or with real coins. API will break.

Modular Rust workspace for building Bitcoin wallets. Provides account management, UTXO tracking, transaction building, and signing, with backends for both standard descriptor wallets (via Electrum) and Silent Payments (BIP352 via Blindbit).

Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                              Application                                    │
└─────────────────────────────────────────────────────────────────────────────┘
        │                                    │
        ▼                                    ▼
┌───────────────────┐              ┌───────────────────┐
│       bwk         │              │      bwk-sp       │
│ (descriptor-based │              │ (silent payments) │
│     account)      │              │     account)      │
└───────────────────┘              └───────────────────┘
        │                                    │
        ├────────────┬───────────────────────┤
        ▼            ▼                       ▼
┌─────────────┐ ┌─────────────┐      ┌─────────────┐
│ bwk-electrum│ │  bwk-sign   │      │  blindbit   │
│  (chain)    │ │  (signing)  │      │  (SP data)  │
└─────────────┘ └─────────────┘      └─────────────┘
        │            │                       │
        └────────────┴───────────────────────┘
                     │
        ┌────────────┼────────────┐
        ▼            ▼            ▼
┌──────────────┐ ┌─────────────┐ ┌─────────────┐
│bwk-descriptor│ │  bwk-keys   │ │   bwk-tx    │
│ (derivation) │ │ (key mgmt)  │ │  (building) │
└──────────────┘ └─────────────┘ └─────────────┘

Crates

+----------------+-------------------------------------------------------+
| Crate          | Purpose                                               |
+----------------+-------------------------------------------------------+
| bwk            | Account for descriptor wallets (Electrum backend)     |
| bwk-sp         | Silent Payments account (BIP352, Blindbit backend)    |
| bwk-tx         | Transaction building, coin selection, PSBT            |
| bwk-electrum   | Electrum client, scanner, scan stores, header chain   |
| bwk-sign       | Hot signer, SigningManager                            |
| bwk-descriptor | Descriptor construction, SpkDerivator                 |
| bwk-keys       | Key derivation (OXpriv, OXpub)                        |
| bwk-p2p        | Bitcoin P2P client                                    |
| bwk-coin       | Coin domain types shared by bwk-tx and bwk-electrum   |
| bwk-persist    | KV persistence: Store, RamStore, JSON/SQLite backends |
| bwk-hwi        | Hardware wallet transport and device drivers          |
| bwk-error      | In-house error derive, reached as `thiserror`         |
| bwk-backoff    | Exponential backoff                                   |
| bwk-utils      | Test helpers                                          |
+----------------+-------------------------------------------------------+

See crate READMEs: bwk, bwk-sp, bwk-tx, bwk-electrum, bwk-sign, bwk-descriptor, bwk-keys, bwk-p2p, bwk-coin, bwk-hwi, bwk-error, bwk-backoff, bwk-utils

Build

cargo build --release
scripts/ci-checks.sh tests
scripts/ci-checks.sh clippy

Development and CI use Rust 1.100.0, pinned in rust-toolchain.toml. CI also checks nightly compatibility. The minimum supported Rust version (MSRV) remains 1.89, required by rusqlite 0.42 when using the SQLite backend.

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages