]> Untitled Git - bdk/log
bdk
4 years agoget psbt inputs with bounds check
Riccardo Casatta [Thu, 6 May 2021 13:55:58 +0000 (15:55 +0200)]
get psbt inputs with bounds check

4 years agoCheck index out of bound also for tx inputs not only for psbt inputs
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

4 years agoRewrite the `non_witness_utxo` check
Alekos Filini [Thu, 6 May 2021 09:35:58 +0000 (11:35 +0200)]
Rewrite the `non_witness_utxo` check

4 years ago[signer] Replace `force_non_witness_utxo` with `only_witness_utxo`
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.

4 years ago[signer] Adjust signing behavior with `SignOptions`
Alekos Filini [Mon, 19 Apr 2021 12:16:39 +0000 (14:16 +0200)]
[signer] Adjust signing behavior with `SignOptions`

4 years ago[signer] Fix error variant
Alekos Filini [Fri, 16 Apr 2021 10:23:50 +0000 (12:23 +0200)]
[signer] Fix error variant

4 years agoFix import for `FromStr`
Alekos Filini [Wed, 5 May 2021 14:58:59 +0000 (16:58 +0200)]
Fix import for `FromStr`

4 years agoMerge commit 'refs/pull/336/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 5 May 2021 12:51:36 +0000 (14:51 +0200)]
Merge commit 'refs/pull/336/head' of github.com:bitcoindevkit/bdk

4 years agoAdded grcov based code coverage reporting in github action
codeShark149 [Thu, 29 Apr 2021 11:35:20 +0000 (17:05 +0530)]
Added grcov based code coverage reporting in github action

4 years agoMake wallet methods take &mut psbt
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.

4 years agoMerge commit 'refs/pull/321/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 16 Apr 2021 12:08:26 +0000 (14:08 +0200)]
Merge commit 'refs/pull/321/head' of github.com:bitcoindevkit/bdk

4 years agoVerify PSBT input satisfaction
Riccardo Casatta [Fri, 16 Apr 2021 08:45:11 +0000 (10:45 +0200)]
Verify PSBT input satisfaction

4 years agodestructure tuple to improve clarity
Riccardo Casatta [Thu, 15 Apr 2021 14:07:02 +0000 (16:07 +0200)]
destructure tuple to improve clarity

4 years ago[ci] Revert fixed nightly-2021-03-23, use actual nightly
Steve Myers [Thu, 15 Apr 2021 17:15:13 +0000 (10:15 -0700)]
[ci] Revert fixed nightly-2021-03-23, use actual nightly

4 years agocomment out println in tests, fix doc
Riccardo Casatta [Thu, 15 Apr 2021 14:02:22 +0000 (16:02 +0200)]
comment out println in tests, fix doc

4 years agoAdd timelocks to policy satisfaction results
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.

4 years agoMerge commit 'refs/pull/322/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Thu, 15 Apr 2021 09:40:34 +0000 (11:40 +0200)]
Merge commit 'refs/pull/322/head' of github.com:bitcoindevkit/bdk

4 years ago[ci] Update 'test-readme-examples' job to use nightly-2021-03-23 github/release/0.6.0
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

4 years ago[ci] Update 'Tarpaulin to codecov.io' 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

4 years agoUpdate CHANGELOG for v0.6.0
Alekos Filini [Wed, 14 Apr 2021 16:49:52 +0000 (18:49 +0200)]
Update CHANGELOG for v0.6.0

4 years agoBump version to 0.6.1-dev
Alekos Filini [Wed, 14 Apr 2021 16:47:31 +0000 (18:47 +0200)]
Bump version to 0.6.1-dev

4 years agoBump version to 0.6.0 v0.6.0
Alekos Filini [Wed, 14 Apr 2021 15:27:28 +0000 (17:27 +0200)]
Bump version to 0.6.0

4 years agoUse published `bdk-testutils-macros`
Alekos Filini [Wed, 14 Apr 2021 15:26:40 +0000 (17:26 +0200)]
Use published `bdk-testutils-macros`

4 years agoBump version of `bdk-testutils-macros`
Alekos Filini [Wed, 14 Apr 2021 15:25:11 +0000 (17:25 +0200)]
Bump version of `bdk-testutils-macros`

4 years agoMerge commit 'refs/pull/325/head' of github.com:bitcoindevkit/bdk into release/0.6.0
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

4 years agoMerge commit 'refs/pull/326/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

4 years agoAllow setting RBF when bumping the fee of a transaction. This enables to further...
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.

4 years agoAdding tests to demonstrate that we can't keep RBF when bumping the fee of a transaction.
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.

4 years ago[ci] Update 'Build docs' job to use nightly-2021-03-23
Steve Myers [Mon, 12 Apr 2021 17:33:54 +0000 (10:33 -0700)]
[ci] Update 'Build docs' job to use nightly-2021-03-23

4 years agoBump version to 0.6.0-rc.1
Steve Myers [Fri, 9 Apr 2021 22:30:34 +0000 (15:30 -0700)]
Bump version to 0.6.0-rc.1

4 years agoRemove unneeded script
Steve Myers [Fri, 9 Apr 2021 16:19:19 +0000 (09:19 -0700)]
Remove unneeded script

4 years ago[ci] Update 'build-test' job to clippy check all-targets
Steve Myers [Thu, 8 Apr 2021 21:44:35 +0000 (14:44 -0700)]
[ci] Update 'build-test' job to clippy check all-targets

4 years agoUpdate 'cargo-check.sh' to not check +nightly
Steve Myers [Thu, 8 Apr 2021 21:36:07 +0000 (14:36 -0700)]
Update 'cargo-check.sh' to not check +nightly

4 years agoUse .flatten() instead of .filter_map(|x| x), clippy warning
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

4 years agoUse .any() instead of .find().is_some(), clippy warning
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

4 years agoUse .get(0) instead of .iter().next(), clippy warning
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

4 years agoCompare float equality using error margin EPSILON, clippy warning
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

4 years agoRemove redundant clone, clippy warning
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

4 years agoRemove needlessly taken reference of both operands, clippy warning
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

4 years agoConvert upper-case acronyms as suggested by CamelCase convention
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

4 years agoremove format! from assert! (will be an error in rust edition 2021)
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)

4 years agoupgrade CI rust version to 1.51.0
Riccardo Casatta [Tue, 30 Mar 2021 12:59:08 +0000 (14:59 +0200)]
upgrade CI rust version to 1.51.0

4 years agoMerge commit 'refs/pull/314/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 6 Apr 2021 17:21:07 +0000 (10:21 -0700)]
Merge commit 'refs/pull/314/head' of github.com:bitcoindevkit/bdk

4 years agoAvoid over-/underflow error in coin_select
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.

4 years agoUse tagged serialization for blockchain config
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

4 years agoMerge commit 'refs/pull/310/head' of github.com:bitcoindevkit/bdk
Steve Myers [Wed, 31 Mar 2021 23:06:53 +0000 (16:06 -0700)]
Merge commit 'refs/pull/310/head' of github.com:bitcoindevkit/bdk

4 years ago[ci] update MSRV to 1.46.0
Steve Myers [Sat, 27 Mar 2021 18:53:41 +0000 (11:53 -0700)]
[ci] update MSRV to 1.46.0

4 years agoMerge branch 'release/0.5.1'
Alekos Filini [Mon, 29 Mar 2021 17:48:00 +0000 (19:48 +0200)]
Merge branch 'release/0.5.1'

4 years agoBump version to 0.5.2-dev github/release/0.5.1
Alekos Filini [Mon, 29 Mar 2021 17:10:47 +0000 (19:10 +0200)]
Bump version to 0.5.2-dev

4 years agoBump version to 0.5.1 v0.5.1
Alekos Filini [Mon, 29 Mar 2021 08:16:17 +0000 (10:16 +0200)]
Bump version to 0.5.1

4 years agoUpdate CHANGELOG.md
Alekos Filini [Mon, 29 Mar 2021 16:27:47 +0000 (18:27 +0200)]
Update CHANGELOG.md

4 years agoPin hyper version to =0.14.4
Steve Myers [Sat, 27 Mar 2021 08:21:34 +0000 (01:21 -0700)]
Pin hyper version to =0.14.4

4 years agoUpdate DEVELOPMENT_CYCLE for unreleased dev-dependencies
Steve Myers [Mon, 22 Mar 2021 17:48:39 +0000 (10:48 -0700)]
Update DEVELOPMENT_CYCLE for unreleased dev-dependencies

4 years agoFix new test to use new get_address() fn
Steve Myers [Mon, 22 Mar 2021 17:26:56 +0000 (10:26 -0700)]
Fix new test to use new get_address() fn

4 years agoFix bdk-testutils-macros version
Steve Myers [Mon, 22 Mar 2021 17:24:21 +0000 (10:24 -0700)]
Fix bdk-testutils-macros version

4 years agoFix 0.5.1-dev CHANGELOG.md
Steve Myers [Sat, 20 Mar 2021 18:42:00 +0000 (11:42 -0700)]
Fix 0.5.1-dev CHANGELOG.md

4 years agoMerge branch 'release/0.5.0' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 17 Mar 2021 21:27:44 +0000 (22:27 +0100)]
Merge branch 'release/0.5.0' of github.com:bitcoindevkit/bdk

4 years agoBump version to 0.5.1-dev github/release/0.5.0
Alekos Filini [Wed, 17 Mar 2021 19:58:23 +0000 (20:58 +0100)]
Bump version to 0.5.1-dev

4 years agoBump version to 0.5.0 v0.5.0
Alekos Filini [Wed, 17 Mar 2021 14:21:37 +0000 (15:21 +0100)]
Bump version to 0.5.0

4 years agoBump deps version
Alekos Filini [Wed, 17 Mar 2021 14:17:43 +0000 (15:17 +0100)]
Bump deps version

4 years agoUpdate version in lib.rs
Alekos Filini [Wed, 17 Mar 2021 14:14:35 +0000 (15:14 +0100)]
Update version in lib.rs

4 years agoUpdate CHANGELOG with the new release tag
Alekos Filini [Wed, 17 Mar 2021 14:13:46 +0000 (15:13 +0100)]
Update CHANGELOG with the new release tag

4 years agoMerge commit 'refs/pull/296/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 17 Mar 2021 10:30:31 +0000 (11:30 +0100)]
Merge commit 'refs/pull/296/head' of github.com:bitcoindevkit/bdk

4 years agoupdate changelog and fix docs
Riccardo Casatta [Tue, 9 Mar 2021 15:59:27 +0000 (16:59 +0100)]
update changelog and fix docs

4 years agobrevity
davemo88 [Tue, 16 Mar 2021 14:20:07 +0000 (10:20 -0400)]
brevity

4 years agoupdate changelog
davemo88 [Tue, 16 Mar 2021 01:58:03 +0000 (21:58 -0400)]
update changelog

4 years agoadd get_psbt_input
davemo88 [Tue, 16 Mar 2021 01:50:51 +0000 (21:50 -0400)]
add get_psbt_input

4 years ago[wallet] Add get_address(AddressIndex::Reset(u32)), update CHANGELOG
Steve Myers [Wed, 10 Mar 2021 23:58:58 +0000 (15:58 -0800)]
[wallet] Add get_address(AddressIndex::Reset(u32)), update CHANGELOG

4 years ago[wallet] Refactor get_*_address() into get_address(AddressIndex), 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

4 years ago[wallet] Add get_unused_address() function, update CHANGELOG
Steve Myers [Mon, 8 Mar 2021 05:57:19 +0000 (21:57 -0800)]
[wallet] Add get_unused_address() function, update CHANGELOG

4 years ago[wallet] Add fetch_index() helper function
Steve Myers [Mon, 8 Mar 2021 05:54:30 +0000 (21:54 -0800)]
[wallet] Add fetch_index() helper function

4 years agoMerge commit 'refs/pull/308/head' of github.com:bitcoindevkit/bdk into release/0.5.0
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

4 years agoMerge commit 'refs/pull/309/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

4 years agobetter derivation path building
davemo88 [Fri, 12 Mar 2021 02:54:00 +0000 (21:54 -0500)]
better derivation path building

4 years agobetter derivation path building
davemo88 [Fri, 12 Mar 2021 02:35:16 +0000 (21:35 -0500)]
better derivation path building

4 years agohandle descriptor xkey origin
davemo88 [Thu, 11 Mar 2021 22:39:02 +0000 (17:39 -0500)]
handle descriptor xkey origin

4 years ago[ci] Manually install libclang-common-10-dev to 'check-wasm' job
Steve Myers [Thu, 11 Mar 2021 19:02:01 +0000 (11:02 -0800)]
[ci] Manually install libclang-common-10-dev to 'check-wasm' job

4 years agoBump version to 0.5.0-rc.1
Alekos Filini [Thu, 11 Mar 2021 09:07:26 +0000 (10:07 +0100)]
Bump version to 0.5.0-rc.1

4 years ago[policy] Populate satisfaction with singatures already present in a PSBT
Riccardo Casatta [Tue, 23 Feb 2021 16:04:31 +0000 (17:04 +0100)]
[policy] Populate satisfaction with singatures already present in a PSBT

4 years ago[policy] uncomment and update 4 tests: 2 ignored and 2 restored
Riccardo Casatta [Mon, 22 Feb 2021 14:20:09 +0000 (15:20 +0100)]
[policy] uncomment and update 4 tests: 2 ignored and 2 restored

4 years ago[policy] pass existing context instead of new one
Riccardo Casatta [Mon, 22 Feb 2021 10:18:52 +0000 (11:18 +0100)]
[policy] pass existing context instead of new one

4 years ago[policy] pass secp context to setup_keys
Riccardo Casatta [Mon, 22 Feb 2021 10:11:44 +0000 (11:11 +0100)]
[policy] pass secp context to setup_keys

4 years agoUpdate README license badge
Steve Myers [Sat, 6 Mar 2021 00:48:57 +0000 (16:48 -0800)]
Update README license badge

4 years agoUpdate license to Apache 2.0 or MIT, copyright to Bitcoin Dev Kit Developers
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

4 years agoMake constructor functions on `FeeRate` const
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.

4 years agoMerge commit 'refs/pull/285/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:14:01 +0000 (10:14 +0100)]
Merge commit 'refs/pull/285/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/279/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

4 years agoMerge commit 'refs/pull/297/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

4 years ago[descriptor] Ensure that there are no duplicated keys
Alekos Filini [Tue, 23 Feb 2021 14:57:43 +0000 (15:57 +0100)]
[descriptor] Ensure that there are no duplicated keys

4 years agoUpdate electrum-client to 0.7
Thomas Eizinger [Fri, 26 Feb 2021 03:09:46 +0000 (14:09 +1100)]
Update electrum-client to 0.7

4 years agoClean up add_foreign_utxo tests a bit
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.

4 years agoImprove docs of satisfaction_weight
LLFourn [Thu, 11 Feb 2021 23:25:57 +0000 (10:25 +1100)]
Improve docs of satisfaction_weight

4 years agoApply typo fixes from @tcharding
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>
4 years agoAdded `add_foreign_utxo`
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.

4 years agoMake TxBuilder actually Clone
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.

4 years agos/UTXO/LocalUtxo/g
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.

4 years agoUse mixed order insertions
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`.

4 years agoUse id() for DummySigner comparison
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.

4 years agoAlign multi-line string
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

4 years agoAdd cargo check script
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.