Steve Myers 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							602ae3d63a 
							
						 
					 
					
						
						
							
							Add TODOs for missing_docs  
						
						 
						
						
						
						
					 
					
						2020-12-07 18:25:16 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eef59e463d 
							
						 
					 
					
						
						
							
							Merge commit 'refs/pull/210/head' of github.com:bitcoindevkit/bdk  
						
						 
						
						
						
						
					 
					
						2020-12-07 11:21:21 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8dcb75dfa4 
							
						 
					 
					
						
						
							
							Replace UTXO::is_internal with script_type  
						
						 
						
						... 
						
						
						
						This means less conversion and logic mapping from bool to ScriptType and
back again. 
						
						
					 
					
						2020-12-04 10:46:25 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Steve Myers 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2e7f98a371 
							
						 
					 
					
						
						
							
							Fix docs  
						
						 
						
						
						
						
					 
					
						2020-12-02 16:57:59 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5d352ecb63 
							
						 
					 
					
						
						
							
							[wallet] Add tests for TxBuilder::add_global_xpubs()  
						
						 
						
						
						
						
					 
					
						2020-12-01 16:43:40 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ebfe5db0c3 
							
						 
					 
					
						
						
							
							[wallet] Add a flag to fill-in PSBT_GLOBAL_XPUB  
						
						 
						
						
						
						
					 
					
						2020-12-01 16:43:38 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							67957a93b9 
							
						 
					 
					
						
						
							
							[wallet] Add wallet.network()  
						
						 
						
						
						
						
					 
					
						2020-12-01 13:29:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dd35903660 
							
						 
					 
					
						
						
							
							Remove trait bounds on Wallet struct  
						
						 
						
						... 
						
						
						
						see: https://github.com/rust-lang/api-guidelines/issues/6  
						
						
					 
					
						2020-11-24 12:40:58 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							acc0ae14ec 
							
						 
					 
					
						
						
							
							[wallet] Eagerly finalize inputs  
						
						 
						
						... 
						
						
						
						If we know the final witness/scriptsig for an input we should add it
right away to the PSBT. Before, if we couldn't finalize any of them we
finalized none of them. 
						
						
					 
					
						2020-11-23 16:07:50 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Justin Moon 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b1b2f2abd6 
							
						 
					 
					
						
						
							
							[wallet] Don't wrap SignersContainer arguments in Arc  
						
						 
						
						
						
						
					 
					
						2020-11-19 10:27:33 -06:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Justin Moon 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f9d3467397 
							
						 
					 
					
						
						
							
							[wallet] Add witness and redeem scripts to PSBT outputs  
						
						 
						
						
						
						
					 
					
						2020-11-18 11:40:34 -06:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fe7ecd3dd2 
							
						 
					 
					
						
						
							
							Merge commit 'refs/pull/167/head' of github.com:bitcoindevkit/bdk  
						
						 
						
						
						
						
					 
					
						2020-11-18 10:44:54 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a601337e0c 
							
						 
					 
					
						
						
							
							Merge commit 'refs/pull/166/head' of github.com:bitcoindevkit/bdk  
						
						 
						
						
						
						
					 
					
						2020-11-18 10:31:51 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7a42c5e095 
							
						 
					 
					
						
						
							
							Switch to "mainline" rust-miniscript  
						
						 
						
						
						
						
					 
					
						2020-11-17 23:57:28 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							35579cb216 
							
						 
					 
					
						
						
							
							[wallet] Build output lookup inside complete transaction  
						
						 
						
						... 
						
						
						
						To avoid the caller having to do it. 
						
						
					 
					
						2020-11-17 15:11:47 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fcc408f346 
							
						 
					 
					
						
						
							
							[wallet] Add test that shwpkh populates witness_utxo  
						
						 
						
						
						
						
					 
					
						2020-11-17 15:11:47 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							004f81b0a8 
							
						 
					 
					
						
						
							
							[wallet] Make coin_select return UTXOs instead of TxIns  
						
						 
						
						... 
						
						
						
						- We want to keep the metadata in the UTXO around for things later
- It is easier to turn a UTXO into a TxIn outside 
						
						
					 
					
						2020-11-17 15:11:47 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a30ad49f63 
							
						 
					 
					
						
						
							
							[wallet] Use the branch-and-bound cs by default  
						
						 
						
						... 
						
						
						
						Keep the `LargestFirst` coin selection for the tests, to make them more
predictable. 
						
						
					 
					
						2020-11-16 14:08:04 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Riccardo Casatta 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4f99c77abe 
							
						 
					 
					
						
						
							
							[sync] check last derivation in cache to avoid recomputation  
						
						 
						
						
						
						
					 
					
						2020-11-16 12:06:48 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7c80aec454 
							
						 
					 
					
						
						
							
							[wallet] Take both spending policies into account in create_tx  
						
						 
						
						... 
						
						
						
						This allows specifying different "policy paths" for the internal and external
descriptors, and adds additional checks to make sure they are compatibile (i.e.
the timelocks are expressed in the same unit).
It's still suboptimal, since the `n_sequence`s are per-input and not per-transaction,
so it should be possibile to spend different inputs with different, otherwise
incompatible, `CSV` timelocks, but that requires a larger refactor that
can be done in a future patch.
This commit also tries to clarify how the "policy path" should be used by adding
a fairly detailed example to the docs. 
						
						
					 
					
						2020-11-13 12:55:42 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9f31ad1bc8 
							
						 
					 
					
						
						
							
							[wallet] Replace must_use with required in coin selection  
						
						 
						
						
						
						
					 
					
						2020-11-13 12:42:07 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c43f201e35 
							
						 
					 
					
						
						
							
							[wallet] Add tests for BranchAndBoundCoinSelection::single_random_draw  
						
						 
						
						
						
						
					 
					
						2020-11-13 12:42:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							23824321ba 
							
						 
					 
					
						
						
							
							[wallet] Add tests for BranchAndBoundCoinSelection::bnb  
						
						 
						
						
						
						
					 
					
						2020-11-13 12:42:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							be91997d84 
							
						 
					 
					
						
						
							
							[wallet] Add tests for BranchAndBoundCoinSelection::coin_select  
						
						 
						
						
						
						
					 
					
						2020-11-13 12:42:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							99060c5627 
							
						 
					 
					
						
						
							
							[wallet] Add Branch and Bound coin selection  
						
						 
						
						
						
						
					 
					
						2020-11-13 12:42:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniela Brozzoni 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a86706d1a6 
							
						 
					 
					
						
						
							
							[wallet] Use TXIN_DEFAULT_WEIGHT constant in coin selection  
						
						 
						
						... 
						
						
						
						Replace all the occurences of `serialize(&txin)`
with TXIN_DEFAULT_WEIGHT. 
						
						
					 
					
						2020-11-13 12:42:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							36c5a4dc0c 
							
						 
					 
					
						
						
							
							[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 . 
						
						
					 
					
						2020-11-05 12:06:43 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							796f9f5a70 
							
						 
					 
					
						
						
							
							Make Signer and AddressValidator Send and Sync  
						
						 
						
						
						
						
					 
					
						2020-11-03 16:16:32 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3b3659fc0c 
							
						 
					 
					
						
						
							
							Remove redundant Box around signers  
						
						 
						
						
						
						
					 
					
						2020-11-03 16:06:43 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5784a95e48 
							
						 
					 
					
						
						
							
							Remove redundant Box around address validators  
						
						 
						
						
						
						
					 
					
						2020-11-03 16:06:43 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e6c2823a36 
							
						 
					 
					
						
						
							
							Merge commit 'refs/pull/146/head' of github.com:bitcoindevkit/bdk  
						
						 
						
						
						
						
					 
					
						2020-10-29 11:53:22 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Steve Myers 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8d04128c74 
							
						 
					 
					
						
						
							
							[ci] Fix or ignore clippy warnings for all optional features except compact_filters  
						
						 
						
						
						
						
					 
					
						2020-10-28 17:50:12 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Murch 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							457e70e70f 
							
						 
					 
					
						
						
							
							Rename get_must_may_use_utxos to preselect_utxos  
						
						 
						
						
						
						
					 
					
						2020-10-27 23:24:03 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Murch 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							84aee3baab 
							
						 
					 
					
						
						
							
							Rename may_use_utxos to optional_uxtos  
						
						 
						
						
						
						
					 
					
						2020-10-27 23:24:03 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Murch 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							43a51a1ec3 
							
						 
					 
					
						
						
							
							Rename must_use_utxos to required_utxos  
						
						 
						
						
						
						
					 
					
						2020-10-26 14:40:44 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Murch 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b2ec6e3683 
							
						 
					 
					
						
						
							
							Rename DumbCS to LargestFirstCoinSelection  
						
						 
						
						
						
						
					 
					
						2020-10-26 14:20:44 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8d65581825 
							
						 
					 
					
						
						
							
							Incorporate RBF rules into utxo selection function  
						
						 
						
						
						
						
					 
					
						2020-10-23 13:54:59 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a6b70af2fb 
							
						 
					 
					
						
						
							
							[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`. 
						
						
					 
					
						2020-10-23 13:54:59 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b87c7c5dc7 
							
						 
					 
					
						
						
							
							[wallet] Make 'unspendable' into a HashSet  
						
						 
						
						... 
						
						
						
						to avoid awkwardly later on. 
						
						
					 
					
						2020-10-23 13:54:59 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c549281ace 
							
						 
					 
					
						
						
							
							[wallet] Replace ChangeSpendPolicy::filter_utxos with a predicate  
						
						 
						
						... 
						
						
						
						To make composing it with other filtering conditions easier. 
						
						
					 
					
						2020-10-23 13:54:59 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Richard Ulrich 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							365a91f805 
							
						 
					 
					
						
						
							
							Merging two match expressions for fee calculation  
						
						 
						
						
						
						
					 
					
						2020-10-22 13:41:26 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Richard Ulrich 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							49894ffa6d 
							
						 
					 
					
						
						
							
							Implementing review suggestions from afilini  
						
						 
						
						
						
						
					 
					
						2020-10-22 09:11:58 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Richard Ulrich 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							759f6eac43 
							
						 
					 
					
						
						
							
							complying with clippy from the github CI  
						
						 
						
						
						
						
					 
					
						2020-10-20 18:22:37 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Richard Ulrich 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							27890cfcff 
							
						 
					 
					
						
						
							
							allow to definie static fees for transactions  Fixes   #137  
						
						 
						
						
						
						
					 
					
						2020-10-20 18:10:59 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							872d55cb4c 
							
						 
					 
					
						
						
							
							[wallet] Default to SIGHASH_ALL if not specified  
						
						 
						
						... 
						
						
						
						Closes  #133  
						
						
					 
					
						2020-10-16 15:40:30 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							12635e603f 
							
						 
					 
					
						
						
							
							[wallet] Refactor Wallet::bump_fee()  
						
						 
						
						
						
						
					 
					
						2020-10-16 14:49:05 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a5713a8348 
							
						 
					 
					
						
						
							
							[wallet] Improve CoinSelectionAlgorithm  
						
						 
						
						... 
						
						
						
						Implement the improvements described in issue #121 .
Closes  #121 , closes  #131 . 
						
						
					 
					
						2020-10-16 14:30:44 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							17f7294c8e 
							
						 
					 
					
						
						
							
							[wallet] Make coin_select take may/must use utxo lists  
						
						 
						
						... 
						
						
						
						so that in the future you can add a UTXO that you *must* spend and let
the coin selection fill in the rest.
This partially addresses #121  
						
						
					 
					
						2020-10-16 14:28:22 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								LLFourn 
							
						 
					 
					
						
						
						
						
							
						
						
							64b4cfe308 
							
						 
					 
					
						
						
							
							Use collect to avoid iter unwrapping Options  
						
						 
						
						
						
						
					 
					
						2020-10-15 13:41:36 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alekos Filini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							100f0aaa0a 
							
						 
					 
					
						
						
							
							Bump rust-bitcoin to 0.25, fix Cargo dependencies  
						
						 
						
						... 
						
						
						
						Closes  #112 , closes  #113 , closes  #124  
						
						
					 
					
						2020-10-13 10:39:48 +02:00