ACINQ / eclair-mobile

An Android wallet for the Lightning Network
Apache License 2.0
258 stars 44 forks source link

Using with Electrum Personal Server #150

Open Sjors opened 5 years ago

Sjors commented 5 years ago

It would be very cool to be able to use Eclair Mobile with Bitcoin Core. Perhaps Electrum Personal Server by @chris-belcher can help in this.

Electrum Personal Server works with a Bitcoin Core watch-only wallet to monitor a specific set of addresses, avoiding the need for a full address index Electrum server.

Is there a (group of) xpub(s) that the Eclair Mobile wallet monitors, or is the derivation path more complicated?

Can the set out outputs the wallet needs to monitor be expressed as one or more output descriptors? As of Bitcoin Core v0.18 those can imported into a watch-only wallet via importmulti. If not, what's missing?

sstone commented 5 years ago

We use a standard BIP49 derivation path, so it should be possible. I'll check and update this ticket. Thanks!

pm47 commented 5 years ago

@sstone can we also watch random scriptHashes with Electrum Personal Server?

Sjors commented 5 years ago

The problem is that importing addresses / scripts to watch into Bitcoin Core is a one-off manual process at the moment. It sounds like EPS, or Electrum itself maybe, would have to be expanded a bit. For example whenever it hears about an unkown script/address it would immediately import that into Bitcoin Core and have it rescan a few blocks.