Why Nostr? What is Njump?
2024-06-09 12:25:26

Erik on Nostr: Wallet implementers, what is the best way to drop scrip hashes in the Electrum ...

Wallet implementers, what is the best way to drop scrip hashes in the Electrum Protocol?

I'm working on a lightweight client that has an integrated #Electrum Server for wallets to connect (and started a new EPS-like client). The fact that users have to copy their xpub and paste in the software before running sounds very stupid to me.

I also want to use BIP158 compact block filters, so I can allow users to add new wallets with very minimal waiting time, but there's a problem: Electrum (the protocol) sends **hashes** of scripts, not the actual script. That sucks because BIP158 uses the actual script.

We could solve both problems by having a way for wallets to communicate their addresses to a server. AFAIK, the argument for sending hashes instead of addresses is privacy, but it is a very week privacy, there's no forward secrecy, if you ever get paid on that address, the server know what the address actually is.

For my use-case, simply sending the address (at least once) is enough. Now I'm thinking what kind of extension I can make to the basic protocol to let clients communicate the address, without breaking compatibility with other software. Something like some new methods that behaves exactly like the current ones, but you send the address (not hash). What do you guys think?

#bitcoin #wallet #plebchain
Author Public Key
npub1ur8m24ya8nmakn38xmuwr0yy7cjgdtm6gy54mpnudgcngkgyy55qxc58yl