Skip to content

Commit

Permalink
adding the commands for proof-of-reserves using the separate repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichard committed Nov 24, 2021
1 parent f8f65f2 commit 4556d8e
Show file tree
Hide file tree
Showing 6 changed files with 561 additions and 48 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- esplora-reqwest
- compiler
- compact_filters
- reserves
- reserves,electrum
- reserves,esplora-ureq
- reserves,compact_filters
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

- Replace `wallet bump_fee` command `--send_all` with new `--shrink` option
- Add 'reserve' feature to enable proof of reserve

## [0.3.0]

Expand Down
111 changes: 67 additions & 44 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dirs-next = { version = "2.0", optional = true }
env_logger = { version = "0.7", optional = true }
clap = { version = "2.33", optional = true }
regex = {version = "1", optional = true }
bdk-reserves = { version = "0.13", optional = true}

[features]
default = ["cli", "repl"]
Expand All @@ -38,6 +39,7 @@ esplora-reqwest = ["esplora", "bdk/use-esplora-reqwest"]
compiler = ["bdk/compiler"]
compact_filters = ["bdk/compact_filters"]
rpc = ["bdk/rpc"]
reserves = ["bdk-reserves"]

[[bin]]
name = "bdk-cli"
Expand Down
16 changes: 16 additions & 0 deletions src/bdk_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,22 @@ fn handle_command(cli_opts: CliOpts, network: Network) -> Result<String, Error>
// rl.save_history("history.txt").unwrap();
"Exiting REPL".to_string()
}
#[cfg(all(feature = "reserves", feature = "electrum"))]
CliSubCommand::ExternalReserves {
message,
addresses,
psbt,
electrum_opts,
} => {
let result = bdk_cli::handle_ext_reserves_subcommand(
network,
message,
addresses,
psbt,
electrum_opts,
)?;
serde_json::to_string_pretty(&result)?
}
};
Ok(result)
}
Expand Down
Loading

0 comments on commit 4556d8e

Please sign in to comment.