Alekos Filini
e5cc8d9529
[blockchain] Add an AnyBlockchain
enum to allow switching at runtime
...
This is related to #43
2020-09-15 12:03:07 +02:00
Alekos Filini
5eee18bed2
[blockchain] Add a trait to create Blockchain
s from a configuration
...
This is the first set of changes for #42
2020-09-15 12:03:04 +02:00
Alekos Filini
6094656a54
Update the README
2020-09-14 15:13:43 -07:00
Alekos Filini
10ab293e18
[cargo] Remove the magic
alias for repl
2020-09-14 15:13:43 -07:00
Alekos Filini
d7ee38cc52
Rename the library to bdk
2020-09-14 15:13:43 -07:00
Alekos Filini
efdd11762c
[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.
2020-09-10 10:45:07 +02:00
Alekos Filini
24fcb38565
[repl] Revert back the repl example to use Electrum
2020-09-09 17:06:35 +02:00
Alekos Filini
5d977bc617
Bump version to 0.1.0-beta.1
0.1.0-beta.1
2020-09-08 15:26:44 +02:00
Alekos Filini
cc07c61b47
Change docs link while we can't publish the crate
2020-09-08 15:24:44 +02:00
Alekos Filini
c4f4f20d8b
Improve the README, add examples
2020-09-07 16:33:08 +02:00
LLFourn
6a2d0db674
Remove assumed "/api" prefix from esplora
...
It is not necessary that esplora is hosted with a /api prefix
2020-09-05 14:00:50 +10:00
Alekos Filini
7b58a4ad6f
Fix the last_derivation_index
calculation
...
It should be set to `0` if not transactions are found during sync.
Closes #44
2020-09-04 21:53:31 +02:00
Alekos Filini
43cb0331bf
Rename the crate to just "magical"
2020-09-04 17:01:33 +02:00
Alekos Filini
ac06e35c49
Add docs for Wallet
2020-09-04 16:29:25 +02:00
Alekos Filini
eee75219e0
Write more docs, make TxBuilder::with_recipients
take Scripts
2020-09-04 16:07:41 +02:00
Alekos Filini
7065c1fed6
Write more docs
2020-09-04 11:44:49 +02:00
Alekos Filini
6b9c363937
Write the docs for blockchain::*
2020-09-03 11:36:07 +02:00
Alekos Filini
c0867a6adc
General cleanup for the docs
2020-08-31 15:04:27 +02:00
Alekos Filini
d61e974dbe
Add the license to every file
2020-08-31 11:48:25 +02:00
Alekos Filini
7a127d0275
[wallet] Add tests for Wallet::sign()
2020-08-30 20:38:24 +02:00
Alekos Filini
ff50087de5
[wallet] Support signing the whole tx instead of individual inputs
2020-08-30 20:38:22 +02:00
Alekos Filini
991db28170
[wallet] Add explicit ordering for the signers
2020-08-30 20:38:20 +02:00
Alekos Filini
f54243fd18
[error] implement std::error::Error
2020-08-30 20:38:17 +02:00
Alekos Filini
895c6b0808
[blockchain] impl OnlineBlockchain for types wrapped in Arc
2020-08-30 20:38:14 +02:00
Alekos Filini
557f7ef8c9
[wallet] Add AddressValidators
2020-08-30 20:36:25 +02:00
Alekos Filini
37a7547e9c
[descriptor] Tests for DescriptorMeta::derive_from_psbt_input()
2020-08-30 20:36:23 +02:00
Alekos Filini
21318eb940
[cli] Make the REPL return JSON
2020-08-30 20:36:21 +02:00
Alekos Filini
5777431135
Use miniscript::DescriptorPublicKey
...
This allows us to remove all our custom "ExtendedDescriptor" implementation since that is
now built directly in miniscript.
2020-08-30 20:36:19 +02:00
Alekos Filini
ddc2bded99
[compact_filters] Add support for Tor
2020-08-30 17:24:04 +02:00
Alekos Filini
77c95b93ac
Compact Filters blockchain implementation
2020-08-30 17:23:33 +02:00
Alekos Filini
c12aa3d327
Implement RBF and add a few tests
2020-08-14 12:48:07 +02:00
Alekos Filini
8f8c393f6f
[tests] Run Bitcoin Core and Electrs on Travis
2020-08-11 11:31:19 +02:00
Alekos Filini
53b5f23fb2
[tests] Add tests for Wallet::create_tx()
2020-08-11 11:31:11 +02:00
Alekos Filini
9e5023670e
[tests] Add a proc macro to generate tests for OnlineBlockchain
types
2020-08-10 17:18:17 +02:00
Alekos Filini
c90c752f21
[wallet] Add force_non_witness_utxo()
to TxBuilder
2020-08-10 17:18:15 +02:00
Alekos Filini
8d9ccf8d0b
[wallet] Allow limiting the use of internal utxos in TxBuilder
2020-08-10 17:18:13 +02:00
Alekos Filini
85090a28eb
[wallet] Add RBF and custom versions in TxBuilder
2020-08-10 17:18:11 +02:00
Alekos Filini
0665c9e854
[wallet] TxOrdering, shuffle/bip69 support
2020-08-10 17:18:09 +02:00
Alekos Filini
7005a26fc5
[wallet] Nicer interface for WalletExport
2020-08-10 13:20:48 +02:00
Alekos Filini
f7f99172fe
Add a feature to enable the async interface on non-wasm32 platforms
...
Follow-up to: #28
2020-08-10 11:41:19 +02:00
Alekos Filini
f0a1e670df
[examples] Use MemoryDatabase
in the compiler example
2020-08-08 09:37:25 +02:00
Alekos Filini
a5188209b2
Update .travis.ci to test the miniscriptc
example
2020-08-08 09:27:52 +02:00
Dominik Spicher
462d413b02
[examples] Fix Miniscript variants issue in compiler example
...
miniscript has extended the `Miniscript` struct to be generic
over a `ScriptContext`. This context is different for the `Sh`
variant (`Legacy`) than for the `Wsh` and `ShWsh` variants
(`Segwitv0`). Therefore, Rust is not happy with the single
`compiled` variable if it is used as an argument for all three
variants.
2020-08-07 16:08:23 +02:00
Dominik Spicher
a581457ba8
[examples] Add missing dependency for compiler example
2020-08-07 16:02:32 +02:00
Dominik Spicher
796a3a5c91
[examples] Fix renamed thresh_m descriptor
...
In miniscript 1.0, `thresh_m` has been renamed to `multi`
2020-08-07 15:17:59 +02:00
Alekos Filini
08792b2fcd
[wallet] Add a type convert fee units, add Wallet::estimate_fee()
2020-08-07 11:23:46 +02:00
Alekos Filini
5f80950971
[export] Implement the wallet import/export format from FullyNoded
...
This commit closes #31
2020-08-07 10:19:06 +02:00
Alekos Filini
82c7e11bd5
Improve .travis.ci
2020-08-06 19:30:17 +02:00
Alekos Filini
b67bbeb202
[wallet] Refill the address pool whenever necessary
2020-08-06 18:11:07 +02:00
Alekos Filini
7a23b2b558
[wallet] Abstract coin selection in a separate trait
2020-08-06 16:56:41 +02:00