bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
860 stars 307 forks source link

use blockstream/electrs client as chain data source #60

Closed notmandatory closed 4 years ago

notmandatory commented 4 years ago

electrs is a bitcoin block chain index engine and HTTP API, implemented in Rust.

Implement block chain data source trait for electrs server REST API.

depends on bitcoindevkit/bdk-old#19

rajarshimaitra commented 4 years ago

Let me know if my thinking is correct. Once we have murmel up and running that should be able to replace electrs right?

notmandatory commented 4 years ago

@rajarshimaitra the purpose of this PR is to be able to support murmel or electrs as chain data sources. The bdk app dev would be able to select which one to use.

Ultimately I'd like to also be able to use both, ie. when when my app is using very limited mobile data I could use electrs, but when I'm at home on wifi talking to my own full node and/or other full nodes I use murmel.

notmandatory commented 4 years ago

This functionality was already present in the MagicalBitcoin/magical-bitcoin-wallet repo, so when that repo was renamed to bitcoindevkit/bdk this issue was resolved. See: src/blockchain/esplora.rs