What is Nostr?
Mike Hearn [ARCHIVE] /
npub17ty…qgyd
2023-06-07 17:34:41
in reply to nevent1q…m0l4

Mike Hearn [ARCHIVE] on Nostr: 📅 Original date posted:2015-08-11 📝 Original message:Hey Jonas, I think your ...

📅 Original date posted:2015-08-11
📝 Original message:Hey Jonas,

I think your analysis of what (some) users need is a good one.

We've discussed this before so I know you prefer your current approach, but
I personally would take a slightly different path to reach the same end:

1. Support serving of SPV wallets from pruned storage. This means some
protocol upgrades, BIPs, etc. It helps all SPV wallets, including on phones.
2. Then make a bitcoinj based desktop wallet app, that contains a
bundled bitcoind.
3. Make the app sync TWO wallets simultaneously, one from the P2P
network as today, and another from the local bitcoind via a local socket
(or even just passing buffers around internally)
4. The app should then switch from using the wallet synced to P2P to the
wallet synced to localhost when the latter is fully caught up, and back
again when the local node is behind.
5. If there's a discrepancy, alert the user.

There are big advantages of taking this path! They are:

- The switching back and forth between local full-security mode (which
may be behind) and remote SPV security (fully synced) is instant and
transparent to the user. This is important for laptop users who don't run a
local node all the time. The different audit levels can be reflected in the
UI in some way.

- The bitcoinj wallet code already has support for things like
multi-sig, BIP32, seed words, micropayment channels, etc. You can disable
Bloom filtering if you like (download full blocks).

- You can do a local RPC or JNI/JNA call to get fee estimates, if wanted.

- The modern JVM tools and languages are much, much more productive than
working with C++.


If you want a thing that runs a home server, then the best way to do that
IMO would be to bundle Tor and make it auto-register a Tor hidden service.
Then you can just define a QR code standard for 'pairing' a wallet to a
.onion address. Any bitcoinj based wallet can sync to it, and as it's your
own node, you can use a Bloom filter sized to give virtually no false
positives. No additional indexing is then required.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150811/87594257/attachment.html>;
Author Public Key
npub17ty4mumkv43w8wtt0xsz2jypck0gvw0j8xrcg6tpea25z2nh7meqf4qgyd