]> Untitled Git - bdk-cli/log
bdk-cli
4 years agoUpdate tests
Steve Myers [Wed, 3 Feb 2021 06:57:23 +0000 (22:57 -0800)]
Update tests

4 years agoSplit handle_wallet_subcommand into handle_offline_wallet_subcommand and handle_onlin...
Steve Myers [Wed, 3 Feb 2021 06:54:47 +0000 (22:54 -0800)]
Split handle_wallet_subcommand into handle_offline_wallet_subcommand and handle_online_wallet_subcommand, Add KeySubCommand and handle_key_subcommand

4 years agoSplit WalletSubCommand into OfflineWalletSubCommand and OnlineWalletSubcommand
Steve Myers [Wed, 3 Feb 2021 06:50:20 +0000 (22:50 -0800)]
Split WalletSubCommand into OfflineWalletSubCommand and OnlineWalletSubcommand

4 years agoAdd CliOpts, CliSubCommand, WalletSubCommand, WalletOpts
Steve Myers [Wed, 3 Feb 2021 06:45:58 +0000 (22:45 -0800)]
Add CliOpts, CliSubCommand, WalletSubCommand, WalletOpts

4 years agoAdd regex dependency, remove esplora from default feature
Steve Myers [Wed, 3 Feb 2021 06:10:43 +0000 (22:10 -0800)]
Add regex dependency, remove esplora from default feature

4 years agoUpdate CHANGELOG.md
Alekos Filini [Fri, 22 Jan 2021 15:19:30 +0000 (10:19 -0500)]
Update CHANGELOG.md

4 years agoSetup the required features for wasm
Alekos Filini [Fri, 22 Jan 2021 15:15:36 +0000 (10:15 -0500)]
Setup the required features for wasm

4 years agoUpgrade `bdk` to `0.3`
Alekos Filini [Fri, 22 Jan 2021 15:12:35 +0000 (10:12 -0500)]
Upgrade `bdk` to `0.3`

4 years agoBump version to v0.1.1-dev github/release/0.1.0
Steve Myers [Fri, 8 Jan 2021 19:42:02 +0000 (11:42 -0800)]
Bump version to v0.1.1-dev

4 years agoBump version to 0.1.0 v0.1.0
Steve Myers [Fri, 8 Jan 2021 19:14:14 +0000 (11:14 -0800)]
Bump version to 0.1.0

4 years agoFix crates.io license info
Steve Myers [Fri, 8 Jan 2021 18:14:10 +0000 (10:14 -0800)]
Fix crates.io license info

4 years agoFix rustdocs link
Steve Myers [Thu, 7 Jan 2021 22:45:51 +0000 (14:45 -0800)]
Fix rustdocs link

4 years agoAdd bdk and bdk_macros dependency versions
Steve Myers [Thu, 7 Jan 2021 21:24:06 +0000 (13:24 -0800)]
Add bdk and bdk_macros dependency versions

4 years agoPrep for publishing to crates.io, rename bin to bdk-cli
Steve Myers [Tue, 5 Jan 2021 20:54:21 +0000 (12:54 -0800)]
Prep for publishing to crates.io, rename bin to bdk-cli

4 years agoAdd CHANGELOG.md
Steve Myers [Mon, 28 Dec 2020 06:53:38 +0000 (22:53 -0800)]
Add CHANGELOG.md

4 years agoAdd Network parser to lib.rs, remove from repl.rs
Steve Myers [Mon, 28 Dec 2020 04:22:58 +0000 (20:22 -0800)]
Add Network parser to lib.rs, remove from repl.rs

4 years agoFix github pull_request_template
Steve Myers [Mon, 28 Dec 2020 06:07:12 +0000 (22:07 -0800)]
Fix github pull_request_template

4 years ago[ci] Add CI and Code Coverage badges to README
Steve Myers [Mon, 28 Dec 2020 06:02:40 +0000 (22:02 -0800)]
[ci] Add CI and Code Coverage badges to README

4 years ago[ci] Add audit, ci, and code coverage workflows
Steve Myers [Mon, 28 Dec 2020 05:06:30 +0000 (21:06 -0800)]
[ci] Add audit, ci, and code coverage workflows

4 years agoFix tests
Steve Myers [Mon, 28 Dec 2020 05:01:19 +0000 (21:01 -0800)]
Fix tests

4 years agoAdd more examples to the README.md
Steve Myers [Fri, 18 Dec 2020 16:28:21 +0000 (08:28 -0800)]
Add more examples to the README.md

4 years agoRemove --log_level parameter
Steve Myers [Fri, 18 Dec 2020 16:27:36 +0000 (08:27 -0800)]
Remove --log_level parameter

5 years agoReorganize bdk cli module into new stand alone lib and repl bin
Steve Myers [Fri, 18 Dec 2020 04:38:48 +0000 (20:38 -0800)]
Reorganize bdk cli module into new stand alone lib and repl bin

5 years agoRename `ScriptType` to `KeychainKind`
Alekos Filini [Mon, 14 Dec 2020 16:14:24 +0000 (17:14 +0100)]
Rename `ScriptType` to `KeychainKind`

This avoids confusion with the "type of script".

5 years agoMerge commit 'refs/pull/222/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 14 Dec 2020 10:44:06 +0000 (11:44 +0100)]
Merge commit 'refs/pull/222/head' of github.com:bitcoindevkit/bdk

5 years agoAdd the pull request template
Alekos Filini [Fri, 11 Dec 2020 14:53:12 +0000 (15:53 +0100)]
Add the pull request template

5 years agoMerge commit 'refs/pull/218/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 11 Dec 2020 15:31:17 +0000 (16:31 +0100)]
Merge commit 'refs/pull/218/head' of github.com:bitcoindevkit/bdk

5 years agoFix the REPL example to have optional esplora
Evgenii P [Wed, 9 Dec 2020 09:46:05 +0000 (16:46 +0700)]
Fix the REPL example to have optional esplora

5 years agoRemove unused macro imports
Evgenii P [Wed, 9 Dec 2020 09:45:12 +0000 (16:45 +0700)]
Remove unused macro imports

5 years agoMake "esplora" feature optional for REPL binary
Evgenii P [Wed, 9 Dec 2020 09:44:40 +0000 (16:44 +0700)]
Make "esplora" feature optional for REPL binary

5 years agoFix unused import warning and docs link warning
Steve Myers [Mon, 7 Dec 2020 18:56:01 +0000 (10:56 -0800)]
Fix unused import warning and docs link warning

5 years agoUpdate cli module to use StructOpt and add docs
Steve Myers [Tue, 1 Dec 2020 06:03:39 +0000 (22:03 -0800)]
Update cli module to use StructOpt and add docs

5 years ago[wallet] Add a flag to fill-in `PSBT_GLOBAL_XPUB`
Alekos Filini [Mon, 30 Nov 2020 14:13:33 +0000 (15:13 +0100)]
[wallet] Add a flag to fill-in `PSBT_GLOBAL_XPUB`

5 years ago[cli] Add a flag to build PSBTs for offline signers
Alekos Filini [Mon, 30 Nov 2020 13:23:19 +0000 (14:23 +0100)]
[cli] Add a flag to build PSBTs for offline signers

The `--offline_signer` flag forces the addition of `non_witness_utxo` and the full
witness and redeem script for every output, which makes it easier for the signer
to identify the change output.

Closes #199

5 years agoMerge commit 'refs/pull/189/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 30 Nov 2020 14:38:09 +0000 (15:38 +0100)]
Merge commit 'refs/pull/189/head' of github.com:bitcoindevkit/bdk

5 years agoMerge commit 'refs/pull/191/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 30 Nov 2020 14:17:09 +0000 (15:17 +0100)]
Merge commit 'refs/pull/191/head' of github.com:bitcoindevkit/bdk

5 years agouse electurm-client updated
Riccardo Casatta [Tue, 24 Nov 2020 11:16:49 +0000 (12:16 +0100)]
use electurm-client updated

5 years agoSwitch to `miniscript` from `crates.io`
Alekos Filini [Tue, 24 Nov 2020 09:07:37 +0000 (10:07 +0100)]
Switch to `miniscript` from `crates.io`

5 years agoUpdate `tiny-bip39` to v0.8
Alekos Filini [Tue, 24 Nov 2020 09:01:42 +0000 (10:01 +0100)]
Update `tiny-bip39` to v0.8

Fixes #185

5 years agoFix typo in CONTRIBUTING.md
Steve Myers [Tue, 24 Nov 2020 05:40:40 +0000 (21:40 -0800)]
Fix typo in CONTRIBUTING.md

5 years agoFix to at least bitcoin ^0.25.2
LLFourn [Mon, 23 Nov 2020 04:06:13 +0000 (15:06 +1100)]
Fix to at least bitcoin ^0.25.2

And fix the fallout.

5 years agoUse dirs-next instead of dirs since the latter is unmantained
Riccardo Casatta [Thu, 19 Nov 2020 14:22:46 +0000 (15:22 +0100)]
Use dirs-next instead of dirs since the latter is unmantained

5 years agopin cc version because last breaks rocksdb build
Riccardo Casatta [Thu, 19 Nov 2020 12:11:06 +0000 (13:11 +0100)]
pin cc version because last breaks rocksdb build

5 years agoAllow to set concurrency in Esplora config and optionally pass it in repl
Riccardo Casatta [Tue, 17 Nov 2020 08:58:29 +0000 (09:58 +0100)]
Allow to set concurrency in Esplora config and optionally pass it in repl

5 years agoMerge commit 'refs/pull/167/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 18 Nov 2020 09:44:54 +0000 (10:44 +0100)]
Merge commit 'refs/pull/167/head' of github.com:bitcoindevkit/bdk

5 years agoSwitch to "mainline" rust-miniscript
Alekos Filini [Mon, 16 Nov 2020 21:07:38 +0000 (22:07 +0100)]
Switch to "mainline" rust-miniscript

5 years agoRequire esplora feature for repl example
Riccardo Casatta [Tue, 17 Nov 2020 15:47:58 +0000 (16:47 +0100)]
Require esplora feature for repl example

5 years agouse proper type for EsploraHeader, make conversion to BlockHeader infallible
Riccardo Casatta [Tue, 17 Nov 2020 14:08:04 +0000 (15:08 +0100)]
use proper type for EsploraHeader, make conversion to BlockHeader infallible

5 years agoconditionally remove cli args according to enabled feature
Riccardo Casatta [Tue, 17 Nov 2020 13:27:32 +0000 (14:27 +0100)]
conditionally remove cli args according to enabled feature

5 years ago[examples] support esplora blockchain source in repl
Riccardo Casatta [Mon, 16 Nov 2020 11:23:02 +0000 (12:23 +0100)]
[examples] support esplora blockchain source in repl

5 years agoignore .idea
Riccardo Casatta [Mon, 16 Nov 2020 11:09:14 +0000 (12:09 +0100)]
ignore .idea

5 years ago[cli] Split the internal and external policy paths
Alekos Filini [Fri, 13 Nov 2020 11:53:42 +0000 (12:53 +0100)]
[cli] Split the internal and external policy paths

5 years ago[wallet] Split `send_all` into `set_single_recipient` and `drain_wallet`
Alekos Filini [Wed, 28 Oct 2020 09:37:47 +0000 (10:37 +0100)]
[wallet] Split `send_all` into `set_single_recipient` and `drain_wallet`

Previously `send_all` was particularly confusing, because when used on a
`create_tx` it implied two things:
- spend everything that's in the wallet (if no utxos are specified)
- don't create a change output

But when used on a `bump_fee` it only meant to not add a change output
and instead reduce the only existing output to increase the fee.

This has now been split into two separate options that should hopefully
make it more clear to use, as described in #142.

Additionally, `TxBuilder` now has a "context", that basically allows to
make some flags available only when they are actually meaningful, either
for `create_tx` or `bump_fee`.

Closes #142.

5 years ago[repl] add max_addresses param in sync
Riccardo Casatta [Fri, 30 Oct 2020 13:43:36 +0000 (14:43 +0100)]
[repl] add max_addresses param in sync

5 years ago[ci] Fix all-keys and cli-utils tests
Steve Myers [Thu, 29 Oct 2020 04:34:04 +0000 (21:34 -0700)]
[ci] Fix all-keys and cli-utils tests

5 years ago[ci] Fix or ignore clippy warnings for all optional features except compact_filters
Steve Myers [Wed, 28 Oct 2020 22:34:46 +0000 (15:34 -0700)]
[ci] Fix or ignore clippy warnings for all optional features except compact_filters

5 years ago[wallet] Stop implicitly enforcing manaul selection by .add_utxo
LLFourn [Thu, 22 Oct 2020 01:07:51 +0000 (12:07 +1100)]
[wallet] Stop implicitly enforcing manaul selection by .add_utxo

This makes it possible to choose a UTXO manually without having to
choose them *all* manually. I introduced the `manually_selected_only`
option to enforce that only manually selected utxos can be used.

To stop the cli semantics changing I made the `utxos` keep the old
behaviour by calling `manually_selected_only`.

5 years agoBump rust-bitcoin to 0.25, fix Cargo dependencies
Alekos Filini [Fri, 9 Oct 2020 10:03:47 +0000 (12:03 +0200)]
Bump rust-bitcoin to 0.25, fix Cargo dependencies

Closes #112, closes #113, closes #124

5 years agoFix the recovery of a descriptor given a PSBT
Alekos Filini [Tue, 29 Sep 2020 16:18:50 +0000 (18:18 +0200)]
Fix the recovery of a descriptor given a PSBT

This commit upgrades `rust-miniscript` with a fix to only return the prefix that
matches a `hd_keypath` instead of the full derivation path, and then adapts the
signer code accordingly.

This commit closes #108 and #109.

5 years ago[descriptor] Add descriptor templates, add `DerivableKey`
Alekos Filini [Tue, 22 Sep 2020 14:12:09 +0000 (16:12 +0200)]
[descriptor] Add descriptor templates, add `DerivableKey`

5 years ago[keys] Add BIP39 support
Alekos Filini [Fri, 18 Sep 2020 15:26:58 +0000 (17:26 +0200)]
[keys] Add BIP39 support

5 years agoAdd CONTRIBUTING.md
willcl-ark [Wed, 23 Sep 2020 08:25:02 +0000 (09:25 +0100)]
Add CONTRIBUTING.md

Add a CONTRIBUTING.md file based on a template taken from the
rust-lightning project.

5 years ago[cargo] Add the required `rand` features for `wasm32`
Alekos Filini [Wed, 16 Sep 2020 15:30:11 +0000 (17:30 +0200)]
[cargo] Add the required `rand` features for `wasm32`

5 years ago[blockchain] Add a trait to create `Blockchain`s from a configuration
Alekos Filini [Thu, 10 Sep 2020 16:08:37 +0000 (18:08 +0200)]
[blockchain] Add a trait to create `Blockchain`s from a configuration

This is the first set of changes for #42

5 years ago[cargo] Remove the `magic` alias for `repl`
Alekos Filini [Mon, 14 Sep 2020 12:26:19 +0000 (14:26 +0200)]
[cargo] Remove the `magic` alias for `repl`

5 years agoRename the library to `bdk`
Alekos Filini [Mon, 14 Sep 2020 12:25:38 +0000 (14:25 +0200)]
Rename the library to `bdk`

5 years ago[blockchain] Simplify the architecture of blockchain traits
Alekos Filini [Wed, 9 Sep 2020 16:17:49 +0000 (18:17 +0200)]
[blockchain] Simplify the architecture of blockchain traits

Instead of having two traits, `Blockchain` and `OnlineBlockchain` that need
to be implemented by the user, only the relevant one (`OnlineBlockchain`, here
renamed to `Blockchain`) will need to be implemented, since we provide a
blanket implementation for the "marker" trait (previously `Blockchain`, here
renamed to `BlockchainMarker`).

Users of the library will probably never need to implement `BlockchainMarker`
by itself, since we expose the `OfflineBlockchain` type that already does
that and should be good for any "offline" wallet. Still, it's exposed since
they might need to import it to define types with generics.

5 years ago[repl] Revert back the repl example to use Electrum
Alekos Filini [Wed, 9 Sep 2020 15:04:40 +0000 (17:04 +0200)]
[repl] Revert back the repl example to use Electrum

5 years agoBump version to 0.1.0-beta.1 0.1.0-beta.1
Alekos Filini [Mon, 7 Sep 2020 15:13:54 +0000 (17:13 +0200)]
Bump version to 0.1.0-beta.1

5 years agoImprove the README, add examples
Alekos Filini [Mon, 7 Sep 2020 09:16:41 +0000 (11:16 +0200)]
Improve the README, add examples

5 years agoRename the crate to just "magical"
Alekos Filini [Fri, 4 Sep 2020 15:01:33 +0000 (17:01 +0200)]
Rename the crate to just "magical"

5 years agoWrite more docs, make `TxBuilder::with_recipients` take Scripts
Alekos Filini [Fri, 4 Sep 2020 13:45:11 +0000 (15:45 +0200)]
Write more docs, make `TxBuilder::with_recipients` take Scripts

5 years agoGeneral cleanup for the docs
Alekos Filini [Mon, 31 Aug 2020 08:49:44 +0000 (10:49 +0200)]
General cleanup for the docs

5 years agoAdd the license to every file
Alekos Filini [Mon, 31 Aug 2020 09:26:36 +0000 (11:26 +0200)]
Add the license to every file

5 years ago[wallet] Add AddressValidators
Alekos Filini [Sat, 15 Aug 2020 21:21:13 +0000 (23:21 +0200)]
[wallet] Add AddressValidators

5 years ago[cli] Make the REPL return JSON
Alekos Filini [Sat, 15 Aug 2020 18:16:34 +0000 (20:16 +0200)]
[cli] Make the REPL return JSON

5 years agoUse `miniscript::DescriptorPublicKey`
Alekos Filini [Wed, 12 Aug 2020 10:51:50 +0000 (12:51 +0200)]
Use `miniscript::DescriptorPublicKey`

This allows us to remove all our custom "ExtendedDescriptor" implementation since that is
now built directly in miniscript.

5 years ago[compact_filters] Add support for Tor
Alekos Filini [Sat, 29 Aug 2020 17:40:45 +0000 (19:40 +0200)]
[compact_filters] Add support for Tor

5 years agoCompact Filters blockchain implementation
Alekos Filini [Tue, 25 Aug 2020 14:07:26 +0000 (16:07 +0200)]
Compact Filters blockchain implementation

5 years agoImplement RBF and add a few tests
Alekos Filini [Thu, 13 Aug 2020 14:51:27 +0000 (16:51 +0200)]
Implement RBF and add a few tests

5 years ago[tests] Add a proc macro to generate tests for `OnlineBlockchain` types
Alekos Filini [Mon, 10 Aug 2020 08:49:34 +0000 (10:49 +0200)]
[tests] Add a proc macro to generate tests for `OnlineBlockchain` types

5 years ago[wallet] Add `force_non_witness_utxo()` to TxBuilder
Alekos Filini [Sat, 8 Aug 2020 10:06:40 +0000 (12:06 +0200)]
[wallet] Add `force_non_witness_utxo()` to TxBuilder

5 years agoAdd a feature to enable the async interface on non-wasm32 platforms
Alekos Filini [Mon, 10 Aug 2020 09:41:19 +0000 (11:41 +0200)]
Add a feature to enable the async interface on non-wasm32 platforms

Follow-up to: #28

5 years ago[examples] Add missing dependency for compiler example
Dominik Spicher [Fri, 7 Aug 2020 14:02:32 +0000 (16:02 +0200)]
[examples] Add missing dependency for compiler example

5 years ago[wallet] Add a type convert fee units, add `Wallet::estimate_fee()`
Alekos Filini [Fri, 7 Aug 2020 09:23:01 +0000 (11:23 +0200)]
[wallet] Add a type convert fee units, add `Wallet::estimate_fee()`

5 years ago[wallet] Refill the address pool whenever necessary
Alekos Filini [Thu, 6 Aug 2020 16:11:07 +0000 (18:11 +0200)]
[wallet] Refill the address pool whenever necessary

5 years ago[wallet] Abstract coin selection in a separate trait
Alekos Filini [Thu, 6 Aug 2020 14:56:41 +0000 (16:56 +0200)]
[wallet] Abstract coin selection in a separate trait

5 years ago[wallet] Add a `TxBuilder` struct to simplify `create_tx()`'s interface
Alekos Filini [Thu, 6 Aug 2020 11:09:39 +0000 (13:09 +0200)]
[wallet] Add a `TxBuilder` struct to simplify `create_tx()`'s interface

5 years ago[wallet] Abstract, multi-platform datetime utils
Alekos Filini [Thu, 6 Aug 2020 09:12:15 +0000 (11:12 +0200)]
[wallet] Abstract, multi-platform datetime utils

5 years ago[repl] Expose list_transactions() in the REPL
Alekos Filini [Tue, 21 Jul 2020 16:37:15 +0000 (18:37 +0200)]
[repl] Expose list_transactions() in the REPL

5 years agoMake the blockchain interface async again on wasm32-unknown-unknown
Alekos Filini [Mon, 20 Jul 2020 13:51:57 +0000 (15:51 +0200)]
Make the blockchain interface async again on wasm32-unknown-unknown

The procedural macro `#[maybe_async]` makes a method or every method of a trait
"async" whenever the target_arch is `wasm32`, and leaves them untouched on
every other platform.

The macro `maybe_await!($e:expr)` can be used to call `maybe_async` methods on
multi-platform code: it expands to `$e` on non-wasm32 platforms and to
`$e.await` on wasm32.

The macro `await_or_block!($e:expr)` can be used to contain async code as much
as possible: it expands to `tokio::runtime::Runtime::new().unwrap().block_on($e)`
on non-wasm32 platforms, and to `$e.await` on wasm32.

5 years agoUpdate miniscript to version 1.0
Alekos Filini [Sun, 19 Jul 2020 17:24:05 +0000 (19:24 +0200)]
Update miniscript to version 1.0

5 years agoRemove async, upgrade electrum-client
Alekos Filini [Wed, 15 Jul 2020 16:49:24 +0000 (18:49 +0200)]
Remove async, upgrade electrum-client

5 years ago[cli] Add a few commands to handle psbts
Alekos Filini [Sun, 17 May 2020 16:01:52 +0000 (18:01 +0200)]
[cli] Add a few commands to handle psbts

5 years ago[wallet] Specify the policy branch with a map
Alekos Filini [Sat, 16 May 2020 14:48:31 +0000 (16:48 +0200)]
[wallet] Specify the policy branch with a map

5 years ago[descriptors] Transform a descriptor into its "public" version
Alekos Filini [Sun, 10 May 2020 15:42:02 +0000 (17:42 +0200)]
[descriptors] Transform a descriptor into its "public" version

5 years ago[wasm] Fix SystemTime for wasm and refactor the cli part
Alekos Filini [Fri, 8 May 2020 21:30:45 +0000 (23:30 +0200)]
[wasm] Fix SystemTime for wasm and refactor the cli part

5 years ago[blockchain] Use async I/O in the various blockchain impls
Alekos Filini [Thu, 7 May 2020 15:36:45 +0000 (17:36 +0200)]
[blockchain] Use async I/O in the various blockchain impls

5 years ago[blockchain] add the Esplora backend
Alekos Filini [Thu, 7 May 2020 13:14:05 +0000 (15:14 +0200)]
[blockchain] add the Esplora backend

5 years ago[wallet] Add an option to change the assumed current height
Alekos Filini [Wed, 6 May 2020 15:17:14 +0000 (17:17 +0200)]
[wallet] Add an option to change the assumed current height