志宇
61a8606fbc
[bdk_chain_redesign] Introduce ChainOracle
and TxIndex
traits
...
The chain oracle keeps track of the best chain, while the transaction
index indexes transaction data in relation to script pubkeys.
This commit also includes initial work on `IndexedTxGraph`.
2023-03-26 11:03:35 +08:00
志宇
5ae5fe30eb
[bdk_chain_redesign] Introduce BlockAnchor
trait
...
* Introduce `GraphedTx` struct to access transaction data of graphed
transactions.
* Ability to insert/access anchors and "seen at" values for graphed
transactions.
* `Additions` now records changes to anchors and last_seen_at.
2023-03-24 12:11:41 +08:00
Steve Myers
82f9caddab
Bump bdk version to 1.0.0-alpha.0
...
chain to 0.4.0
electrum to 0.2.0
esplora to 0.2.0
file_store to 0.1.0
2023-03-19 23:03:48 -05:00
志宇
919e74aa8d
Merge pull request #890 from evanlinjin/simplify-reveal-to-target-logic
...
Simplify `reveal_to_target` logic
2023-03-18 10:28:57 +08:00
志宇
72b1e2a485
Simplify reveal_to_target
logic
...
- Remove unnecessary check
- Better comments
- Better variable names
- Add test for scanning txouts with lookahead
2023-03-18 09:18:09 +08:00
志宇
877b658787
Add docs for EsploraAsyncExt
and make doctests runnable
2023-03-16 13:08:42 +08:00
rajarshimaitra
24df03afd6
Add documentation fixes
2023-03-15 13:00:45 +08:00
Daniela Brozzoni
bc3e05c6c6
Doc fixes
2023-03-13 22:23:40 +01:00
Daniela Brozzoni
352f95f558
[ci] misc fixes
...
LLFourn is squashing these to get them all signed:
Remove useless clippy allow
ci: use clippy action
[ci] remove check for features=default
2023-03-13 14:32:13 +11:00
LLFourn
2fcf9c4adb
Make async esplora futures Send
2023-03-10 12:19:54 +11:00
志宇
5dd4ce74cf
More documentation improvements
2023-03-10 13:40:27 +13:00
志宇
ae9b19d84c
bdk
README improvements
2023-03-10 10:29:12 +13:00
志宇
def0c9ed39
Add wallet_esplora_async
example and various fixes
...
Fixes include:
* Allow `bdk_esplora` to use async with tls
* Reorganize `bdk_esplora` crate to have separate files for
async vs blocking
* Use optional dependencies for `bdk_esplora` async
2023-03-09 11:07:45 +13:00
Vladimir Fomene
26ab2e2d6c
Implement EsploraExt for Async client
...
Creates a separate async EsploraAsyncExt trait for the
async client using async-trait crate. It has thesame
methods as the EsploraExt trait for the blocking client.
This trait is implemented on the AsyncClient of the
rust-esplora-client crate.
2023-03-09 09:25:54 +13:00
Daniela Brozzoni
47faa881fb
Fix cargo clippy
2023-03-08 15:20:20 +01:00
志宇
eddd748870
Add wallet_electrum
example
2023-03-08 12:01:01 +13:00
志宇
0505cd7242
Remove transaction-based type parameters and traits
2023-03-08 11:39:25 +13:00
志宇
de9457fce6
Changed inflate_update
logic to not depend on Cow
...
As mentioned by @LLFourn:
1. We have a "sparse chain" from which there is a subset of txids M that are missing from graph.
2. There is also another subset C that are in the graph but their positions have changed.
3. We used the Cow to avoid copying/duplicating in memory transactions in subset C and M
Instead in inflate_update we could remove transactions in subset M and just clone data in subset C (which is usually tiny).
2023-03-08 01:53:09 +13:00
Daniela Brozzoni
d267517dbd
NewError implements StdError (fix typo)
2023-03-03 17:55:23 +01:00
Daniela Brozzoni
0ba41c5751
Make bdk_esplora wasm compatible again
...
There's a huge todo!() for the AsyncClient
2023-03-03 17:44:10 +01:00
LLFourn
a38f63359d
Make bdk_file_store use bincode v1
2023-03-03 17:44:10 +01:00
Steve Myers
38ef170ed1
Make bdk and bdk_chain work under 1.57.0
...
- rewrite some parts of the code to deal with older borrow checker
- downgraded hashbrown
2023-03-03 17:44:09 +01:00
Steve Myers
3a5d727899
Update workspace dependencies to be relative paths
2023-03-03 17:44:08 +01:00
Daniela Brozzoni
5708bf0c8c
Fix docs
2023-03-03 17:44:06 +01:00
Daniela Brozzoni
8c9bcebc71
Fix the "repository" field in Cargo.toml
2023-03-03 17:44:04 +01:00
Daniela Brozzoni
c61b3604e1
Fix cargo clippy warnings
...
Disabled warnings for nursery/tmp_plan as it's going to be replaced
anyways
2023-03-03 17:44:03 +01:00
Daniela Brozzoni
3f5a78ae3b
Disable test-hardware-signer
...
I suspect the latest version of HWI just broke everything
2023-03-03 17:44:01 +01:00
Daniela Brozzoni
303a1703c9
Rust fmt
2023-03-02 12:27:52 +01:00
LLFourn
2e82cd8c04
Use tempfile for file_store tests
2023-03-02 10:56:37 +01:00
LLFourn
c069b0fb41
Move everything else over 🎉
...
This completes the move of things from https://github.com/LLFourn/bdk_core_staging
2023-03-02 10:56:36 +01:00
Daniela Brozzoni
949608ab1f
Move bdk_electrum into the bdk repo 🎉
...
Original repository: 250b4f1dcc/bdk_electrum
Co-authored-by: 志宇 <hello@evanlinjin.me>
Co-authored-by: LLFourn <lloyd.fourn@gmail.com>
2023-03-02 10:56:35 +01:00
Daniela Brozzoni
03deafb553
Move bdk_file_store into the bdk repo 🎉
...
Original repository: 250b4f1dcc/bdk_file_store
Co-authored-by: 志宇 <hello@evanlinjin.me>
Co-authored-by: LLFourn <lloyd.fourn@gmail.com>
Co-authored-by: Vladimir Fomene <vladimirfomene@gmail.com>
2023-03-02 10:56:34 +01:00
Daniela Brozzoni
37dfa77d9d
Move bdk_chain into the bdk repo 🎉
...
Original repository: 250b4f1dcc/bdk_chain
Co-authored-by: Steve Myers <steve@notmandatory.org>
Co-authored-by: 志宇 <hello@evanlinjin.me>
Co-authored-by: LLFourn <lloyd.fourn@gmail.com>
Co-authored-by: rajarshimaitra <rajarshi149@gmail.com>
Co-authored-by: LagginTimes <wzc110@gmail.com>
Co-authored-by: Steve Myers <steve@notmandatory.org>
Co-authored-by: Vladimir Fomene <vladimirfomene@gmail.com>
2023-03-02 10:56:33 +01:00
LLFourn
f2188f9dcd
Make lib.rs's docs be the README.md
...
Also flesh out README a bit
2023-03-02 10:56:32 +01:00
LLFourn
94a084aafd
Fix doc links
2023-03-02 10:56:30 +01:00
LLFourn
20e45b7af0
Add back test-hardware-signer feature
2023-03-02 10:56:28 +01:00
LLFourn
b60820a7b5
Remove authors.workspace because older cargo don't like
2023-03-02 10:56:26 +01:00
LLFourn
22bec6d363
Delete unused errors
2023-03-02 10:56:25 +01:00
LLFourn
8a6de3aa2d
Convert to workspace
2023-03-02 10:56:22 +01:00