]>
Untitled Git - bdk/log
Riccardo Casatta [Thu, 6 May 2021 13:55:58 +0000 (15:55 +0200)]
get psbt inputs with bounds check
Riccardo Casatta [Thu, 6 May 2021 12:41:30 +0000 (14:41 +0200)]
Check index out of bound also for tx inputs not only for psbt inputs
Alekos Filini [Thu, 6 May 2021 09:35:58 +0000 (11:35 +0200)]
Rewrite the `non_witness_utxo` check
Alekos Filini [Tue, 20 Apr 2021 12:58:33 +0000 (14:58 +0200)]
[signer] Replace `force_non_witness_utxo` with `only_witness_utxo`
Instead of providing an opt-in option to force the addition of the
`non_witness_utxo`, we will now add them by default and provide the
option to disable them when they aren't considered necessary.
Alekos Filini [Mon, 19 Apr 2021 12:16:39 +0000 (14:16 +0200)]
[signer] Adjust signing behavior with `SignOptions`
Alekos Filini [Fri, 16 Apr 2021 10:23:50 +0000 (12:23 +0200)]
[signer] Fix error variant
Alekos Filini [Wed, 5 May 2021 14:58:59 +0000 (16:58 +0200)]
Fix import for `FromStr`
Alekos Filini [Wed, 5 May 2021 12:51:36 +0000 (14:51 +0200)]
Merge commit 'refs/pull/336/head' of github.com:bitcoindevkit/bdk
codeShark149 [Thu, 29 Apr 2021 11:35:20 +0000 (17:05 +0530)]
Added grcov based code coverage reporting in github action
LLFourn [Tue, 27 Apr 2021 23:53:03 +0000 (09:53 +1000)]
Make wallet methods take &mut psbt
Rather than consuming it because that is unergonomic.
Alekos Filini [Fri, 16 Apr 2021 12:08:26 +0000 (14:08 +0200)]
Merge commit 'refs/pull/321/head' of github.com:bitcoindevkit/bdk
Riccardo Casatta [Fri, 16 Apr 2021 08:45:11 +0000 (10:45 +0200)]
Verify PSBT input satisfaction
Riccardo Casatta [Thu, 15 Apr 2021 14:07:02 +0000 (16:07 +0200)]
destructure tuple to improve clarity
Steve Myers [Thu, 15 Apr 2021 17:15:13 +0000 (10:15 -0700)]
[ci] Revert fixed nightly-2021-03-23, use actual nightly
Riccardo Casatta [Thu, 15 Apr 2021 14:02:22 +0000 (16:02 +0200)]
comment out println in tests, fix doc
Riccardo Casatta [Fri, 2 Apr 2021 14:39:18 +0000 (16:39 +0200)]
Add timelocks to policy satisfaction results
Also for signature the logic has been refactored to handle appropriately nested cases.
Alekos Filini [Thu, 15 Apr 2021 09:40:34 +0000 (11:40 +0200)]
Merge commit 'refs/pull/322/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 15 Apr 2021 03:34:32 +0000 (20:34 -0700)]
[ci] Update 'test-readme-examples' job to use nightly-2021-03-23
Steve Myers [Thu, 15 Apr 2021 03:33:42 +0000 (20:33 -0700)]
[ci] Update 'Tarpaulin to codecov.io' job to use nightly-2021-03-23
Alekos Filini [Wed, 14 Apr 2021 16:49:52 +0000 (18:49 +0200)]
Update CHANGELOG for v0.6.0
Alekos Filini [Wed, 14 Apr 2021 16:47:31 +0000 (18:47 +0200)]
Bump version to 0.6.1-dev
Alekos Filini [Wed, 14 Apr 2021 15:27:28 +0000 (17:27 +0200)]
Bump version to 0.6.0
Alekos Filini [Wed, 14 Apr 2021 15:26:40 +0000 (17:26 +0200)]
Use published `bdk-testutils-macros`
Alekos Filini [Wed, 14 Apr 2021 15:25:11 +0000 (17:25 +0200)]
Bump version of `bdk-testutils-macros`
Alekos Filini [Tue, 13 Apr 2021 07:25:47 +0000 (09:25 +0200)]
Merge commit 'refs/pull/325/head' of github.com:bitcoindevkit/bdk into release/0.6.0
Alekos Filini [Tue, 13 Apr 2021 07:25:27 +0000 (09:25 +0200)]
Merge commit 'refs/pull/326/head' of github.com:bitcoindevkit/bdk into release/0.6.0
Richard Ulrich [Mon, 12 Apr 2021 13:44:53 +0000 (15:44 +0200)]
Allow setting RBF when bumping the fee of a transaction. This enables to further bump the fee.
Richard Ulrich [Mon, 12 Apr 2021 13:38:35 +0000 (15:38 +0200)]
Adding tests to demonstrate that we can't keep RBF when bumping the fee of a transaction.
Steve Myers [Mon, 12 Apr 2021 17:33:54 +0000 (10:33 -0700)]
[ci] Update 'Build docs' job to use nightly-2021-03-23
Steve Myers [Fri, 9 Apr 2021 22:30:34 +0000 (15:30 -0700)]
Bump version to 0.6.0-rc.1
Steve Myers [Fri, 9 Apr 2021 16:19:19 +0000 (09:19 -0700)]
Remove unneeded script
Steve Myers [Thu, 8 Apr 2021 21:44:35 +0000 (14:44 -0700)]
[ci] Update 'build-test' job to clippy check all-targets
Steve Myers [Thu, 8 Apr 2021 21:36:07 +0000 (14:36 -0700)]
Update 'cargo-check.sh' to not check +nightly
Steve Myers [Thu, 8 Apr 2021 20:37:59 +0000 (13:37 -0700)]
Use .flatten() instead of .filter_map(|x| x), clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
Steve Myers [Thu, 8 Apr 2021 19:19:40 +0000 (12:19 -0700)]
Use .any() instead of .find().is_some(), clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
Steve Myers [Thu, 8 Apr 2021 19:16:58 +0000 (12:16 -0700)]
Use .get(0) instead of .iter().next(), clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
Steve Myers [Thu, 8 Apr 2021 19:12:51 +0000 (12:12 -0700)]
Compare float equality using error margin EPSILON, clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
Steve Myers [Thu, 8 Apr 2021 18:41:58 +0000 (11:41 -0700)]
Remove redundant clone, clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
Steve Myers [Thu, 8 Apr 2021 18:39:38 +0000 (11:39 -0700)]
Remove needlessly taken reference of both operands, clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
Riccardo Casatta [Tue, 30 Mar 2021 14:33:07 +0000 (16:33 +0200)]
Convert upper-case acronyms as suggested by CamelCase convention
see https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
Riccardo Casatta [Tue, 30 Mar 2021 14:19:36 +0000 (16:19 +0200)]
remove format! from assert! (will be an error in rust edition 2021)
Riccardo Casatta [Tue, 30 Mar 2021 12:59:08 +0000 (14:59 +0200)]
upgrade CI rust version to 1.51.0
Steve Myers [Tue, 6 Apr 2021 17:21:07 +0000 (10:21 -0700)]
Merge commit 'refs/pull/314/head' of github.com:bitcoindevkit/bdk
Daniel Karzel [Thu, 1 Apr 2021 05:14:59 +0000 (16:14 +1100)]
Avoid over-/underflow error in coin_select
Adds fix for edge-cases involving small UTXOs (where value < fee) where the coin_select calculation would panic with overflow/underflow errors.
Bitcoin is limited to 21*(10^6), so any Bitcoin amount fits into i64.
LLFourn [Thu, 25 Mar 2021 05:28:38 +0000 (16:28 +1100)]
Use tagged serialization for blockchain config
also make the config types Clone and PartialEq
Steve Myers [Wed, 31 Mar 2021 23:06:53 +0000 (16:06 -0700)]
Merge commit 'refs/pull/310/head' of github.com:bitcoindevkit/bdk
Steve Myers [Sat, 27 Mar 2021 18:53:41 +0000 (11:53 -0700)]
[ci] update MSRV to 1.46.0
Alekos Filini [Mon, 29 Mar 2021 17:48:00 +0000 (19:48 +0200)]
Merge branch 'release/0.5.1'
Alekos Filini [Mon, 29 Mar 2021 17:10:47 +0000 (19:10 +0200)]
Bump version to 0.5.2-dev
Alekos Filini [Mon, 29 Mar 2021 08:16:17 +0000 (10:16 +0200)]
Bump version to 0.5.1
Alekos Filini [Mon, 29 Mar 2021 16:27:47 +0000 (18:27 +0200)]
Update CHANGELOG.md
Steve Myers [Sat, 27 Mar 2021 08:21:34 +0000 (01:21 -0700)]
Pin hyper version to =0.14.4
Steve Myers [Mon, 22 Mar 2021 17:48:39 +0000 (10:48 -0700)]
Update DEVELOPMENT_CYCLE for unreleased dev-dependencies
Steve Myers [Mon, 22 Mar 2021 17:26:56 +0000 (10:26 -0700)]
Fix new test to use new get_address() fn
Steve Myers [Mon, 22 Mar 2021 17:24:21 +0000 (10:24 -0700)]
Fix bdk-testutils-macros version
Steve Myers [Sat, 20 Mar 2021 18:42:00 +0000 (11:42 -0700)]
Fix 0.5.1-dev CHANGELOG.md
Alekos Filini [Wed, 17 Mar 2021 21:27:44 +0000 (22:27 +0100)]
Merge branch 'release/0.5.0' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 17 Mar 2021 19:58:23 +0000 (20:58 +0100)]
Bump version to 0.5.1-dev
Alekos Filini [Wed, 17 Mar 2021 14:21:37 +0000 (15:21 +0100)]
Bump version to 0.5.0
Alekos Filini [Wed, 17 Mar 2021 14:17:43 +0000 (15:17 +0100)]
Bump deps version
Alekos Filini [Wed, 17 Mar 2021 14:14:35 +0000 (15:14 +0100)]
Update version in lib.rs
Alekos Filini [Wed, 17 Mar 2021 14:13:46 +0000 (15:13 +0100)]
Update CHANGELOG with the new release tag
Alekos Filini [Wed, 17 Mar 2021 10:30:31 +0000 (11:30 +0100)]
Merge commit 'refs/pull/296/head' of github.com:bitcoindevkit/bdk
Riccardo Casatta [Tue, 9 Mar 2021 15:59:27 +0000 (16:59 +0100)]
update changelog and fix docs
davemo88 [Tue, 16 Mar 2021 14:20:07 +0000 (10:20 -0400)]
brevity
davemo88 [Tue, 16 Mar 2021 01:58:03 +0000 (21:58 -0400)]
update changelog
davemo88 [Tue, 16 Mar 2021 01:50:51 +0000 (21:50 -0400)]
add get_psbt_input
Steve Myers [Wed, 10 Mar 2021 23:58:58 +0000 (15:58 -0800)]
[wallet] Add get_address(AddressIndex::Reset(u32)), update CHANGELOG
Steve Myers [Tue, 9 Mar 2021 00:17:10 +0000 (16:17 -0800)]
[wallet] Refactor get_*_address() into get_address(AddressIndex), update CHANGELOG
Steve Myers [Mon, 8 Mar 2021 05:57:19 +0000 (21:57 -0800)]
[wallet] Add get_unused_address() function, update CHANGELOG
Steve Myers [Mon, 8 Mar 2021 05:54:30 +0000 (21:54 -0800)]
[wallet] Add fetch_index() helper function
Alekos Filini [Mon, 15 Mar 2021 09:53:49 +0000 (10:53 +0100)]
Merge commit 'refs/pull/308/head' of github.com:bitcoindevkit/bdk into release/0.5.0
Alekos Filini [Mon, 15 Mar 2021 09:53:29 +0000 (10:53 +0100)]
Merge commit 'refs/pull/309/head' of github.com:bitcoindevkit/bdk into release/0.5.0
davemo88 [Fri, 12 Mar 2021 02:54:00 +0000 (21:54 -0500)]
better derivation path building
davemo88 [Fri, 12 Mar 2021 02:35:16 +0000 (21:35 -0500)]
better derivation path building
davemo88 [Thu, 11 Mar 2021 22:39:02 +0000 (17:39 -0500)]
handle descriptor xkey origin
Steve Myers [Thu, 11 Mar 2021 19:02:01 +0000 (11:02 -0800)]
[ci] Manually install libclang-common-10-dev to 'check-wasm' job
Alekos Filini [Thu, 11 Mar 2021 09:07:26 +0000 (10:07 +0100)]
Bump version to 0.5.0-rc.1
Riccardo Casatta [Tue, 23 Feb 2021 16:04:31 +0000 (17:04 +0100)]
[policy] Populate satisfaction with singatures already present in a PSBT
Riccardo Casatta [Mon, 22 Feb 2021 14:20:09 +0000 (15:20 +0100)]
[policy] uncomment and update 4 tests: 2 ignored and 2 restored
Riccardo Casatta [Mon, 22 Feb 2021 10:18:52 +0000 (11:18 +0100)]
[policy] pass existing context instead of new one
Riccardo Casatta [Mon, 22 Feb 2021 10:11:44 +0000 (11:11 +0100)]
[policy] pass secp context to setup_keys
Steve Myers [Sat, 6 Mar 2021 00:48:57 +0000 (16:48 -0800)]
Update README license badge
Steve Myers [Wed, 3 Mar 2021 21:22:05 +0000 (13:22 -0800)]
Update license to Apache 2.0 or MIT, copyright to Bitcoin Dev Kit Developers
Thomas Eizinger [Fri, 26 Feb 2021 03:15:46 +0000 (14:15 +1100)]
Make constructor functions on `FeeRate` const
This allows `FeeRate`s to be stored inside `const`s.
For example:
const MY_FEE_RATE: FeeRate = FeeRate::from_sat_per_vb(10.0);
Unfortunately, floating point maths inside const expressions is
still unstable, hence we cannot make `from_btc_per_kvb` const.
Alekos Filini [Fri, 26 Feb 2021 09:14:01 +0000 (10:14 +0100)]
Merge commit 'refs/pull/285/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:09:24 +0000 (10:09 +0100)]
Merge commit 'refs/pull/279/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:00:01 +0000 (10:00 +0100)]
Merge commit 'refs/pull/297/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 23 Feb 2021 14:57:43 +0000 (15:57 +0100)]
[descriptor] Ensure that there are no duplicated keys
Thomas Eizinger [Fri, 26 Feb 2021 03:09:46 +0000 (14:09 +1100)]
Update electrum-client to 0.7
LLFourn [Thu, 11 Feb 2021 23:35:20 +0000 (10:35 +1100)]
Clean up add_foreign_utxo tests a bit
Noticed some suboptimal things while reviewing myself.
LLFourn [Thu, 11 Feb 2021 23:25:57 +0000 (10:25 +1100)]
Improve docs of satisfaction_weight
Lloyd Fournier [Thu, 11 Feb 2021 23:20:11 +0000 (10:20 +1100)]
Apply typo fixes from @tcharding
Co-authored-by: Tobin C. Harding <me@tobin.cc>
LLFourn [Mon, 8 Feb 2021 04:40:56 +0000 (15:40 +1100)]
Added `add_foreign_utxo`
To allow adding UTXOs external to the current wallet.
The caller must provide the psbt::Input so we can create a coherent PSBT
at the end and so this is compatible with existing PSBT workflows.
Main changes:
- There are now two types of UTXOs, local and foreign reflected in a
`Utxo` enum.
- `WeightedUtxo` now captures floating `(Utxo, usize)` tuples
- `CoinSelectionResult` now has methods on it for distinguishing between
local amount included vs total.
LLFourn [Mon, 8 Feb 2021 04:25:44 +0000 (15:25 +1100)]
Make TxBuilder actually Clone
it derived Clone but in practice it was never clone because some of the
parameters were not Clone.
LLFourn [Thu, 4 Feb 2021 01:09:53 +0000 (12:09 +1100)]
s/UTXO/LocalUtxo/g
Since this struct has a "keychain" it is not a general "UTXO" but a
local wallet UTXO.
Tobin Harding [Wed, 24 Feb 2021 02:39:36 +0000 (13:39 +1100)]
Use mixed order insertions
Currently we have a unit test to test that signers are sorted by
ordering. We call `add_external` to add them but currently we add them
in the same order we expect them to be in. This means if the
implementation happens to insert them simply in the order they are
added (i.e. insert to end of list) then this test will still pass.
Insert in a mixed order, including one lower followed by one higher -
this ensures we are not inserting at the front or at the back but are
actually sorting based on the `SignerOrdering`.
Tobin Harding [Wed, 24 Feb 2021 02:23:17 +0000 (13:23 +1100)]
Use id() for DummySigner comparison
If we give the `DummySigner` a valid identifier then we can use this to
do comparison.
Half the time we do comparison we only have a `dyn Signer` so we cannot
use `PartialEq`, add a helper function to check equality (this is in
test code so its not toooo ugly).
Thanks @afilini for the suggestion.
Tobin Harding [Wed, 24 Feb 2021 01:32:14 +0000 (12:32 +1100)]
Align multi-line string
Recently we shortened the first line of a multi-line string and failed
to re-align the rest of the lines.
Thanks @afilini
Tobin Harding [Wed, 10 Feb 2021 00:18:39 +0000 (11:18 +1100)]
Add cargo check script
We build against various targets on CI, in order to not abuse CI its
nice to see if code is good before pushing.
Add a script that runs `cargo check` with various combinations of
features and targets in order to enable thorough checking of the project
source code during development.