Add the option to use an Electrum server as a backend
Created by: lukechilds
I'm playing around with Whirlpool and would like to connect it to my own Dojo instance. I already have my own Bitcoin Core + Electrum server served over Tor, I have it pretty tightly locked down and I don't expose Bitcoin Core RPC, only the Electrum server.
I would like to run my Dojo instance on a separate machine without having to run another Bitcoin instance or build a whole new address index.
I see there is an option to use an Electrum server for imports and rescans. However it's my understanding that this only replaces the local indexer, all other blockchain communication happens directly via Bitcoin Core RPC.
I would like an option to point Dojo to a trusted Electrum instance and use that as the source for all blockchain related queries.
- Is this possible? Does the Electrum API fulfil all of Dojo's needs or does it depend on methods exposed via Bitcoin Core's RPC that don't have Electrum equivalents?
- Roughly how much work would implementing this be?
- If I were to implement this, would you accept a PR?