Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target

.env
*.swp
.idea
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ page. See [DEVELOPMENT_CYCLE.md](DEVELOPMENT_CYCLE.md) for more details.
## [Unreleased]

- Added support for Multipath (two-paths) descriptors.
- Add `env` feature that loads arguments from a .env file via dotenvy


## [4.0.0]
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ reqwest = { version = "0.13.2", default-features = false, features = ["rustls"],
url = { version = "2.5.8", optional = true }
bdk_message_signer = { version = "0.2.0", optional = true }
bitcoin-payment-instructions = { version = "0.7.0", optional = true}
dotenvy = { version = "0.15.7", optional = true }

[features]
default = ["repl", "sqlite"]
default = ["repl", "sqlite", "env"]

# Load arguments from a .env file instead of typing them manually
env = ["dotenvy"]

# To use the app in a REPL mode
repl = ["shlex"]
Expand All @@ -56,7 +60,7 @@ cbf = ["bdk_kyoto", "_payjoin-dependencies"]
electrum = ["bdk_electrum", "_payjoin-dependencies"]
esplora = ["bdk_esplora", "_payjoin-dependencies"]
rpc = ["bdk_bitcoind_rpc", "_payjoin-dependencies"]
dns_payment = ["bitcoin-payment-instructions"]
dns_payment = ["bitcoin-payment-instructions"]

# Internal features
_payjoin-dependencies = ["payjoin", "reqwest", "url", "sqlite"]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ bdk-cli can be compiled with different features to suit your experimental needs.
- `rpc`: Connects the wallet to Bitcoind server.
- Extra Utility Tools
- `repl` : use bdk-cli as a [REPL](https://codewith.mu/en/tutorials/1.0/repl) shell (useful for quick manual testing of wallet operations).
- `env` : loads arguments from a .env file via dotenvy
- `compiler` : opens up bdk-cli policy compiler commands.
- `message_signer`: BIP322 message signing/verification.
- `silent-payments`: Experimental BIP-352 silent payment sending
- `dns_payment`: BIP-353 DNS payment instructions

The `default` feature set is `repl` and `sqlite`. With the `default` features, `bdk-cli` can be used as an **air-gapped** wallet, and can do everything that doesn't require a network connection.
The `default` feature set is `repl`, `env` and `sqlite`. With the `default` features, `bdk-cli` can be used as an **air-gapped** wallet, and can do everything that doesn't require a network connection.


## Install bdk-cli
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use clap::{CommandFactory, Parser};
#[tokio::main]
async fn main() {
env_logger::init();
dotenvy::dotenv().ok();
let cli_opts: CliOpts = CliOpts::parse();

let network = &cli_opts.network;
Expand Down