Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8CBE9FF for ; Tue, 11 Aug 2015 11:03:17 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 6E99E143 for ; Tue, 11 Aug 2015 11:03:16 +0000 (UTC) Received: by ioeg141 with SMTP id g141so197919330ioe.3 for ; Tue, 11 Aug 2015 04:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vinumeris.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wnKHPxF/A2ZNKbF8HTItXynxhBM5ITpKDveeLrzHrzY=; b=Q/g/CDKpoKE72ZLGWixihDrI3NQzFhT8sU03WgHWbu5sF9rnzzoDjgZWqFlvC00thQ UftK08oz5JM02unalV5tlOREK6q9XXNM7DAdrY2sdfxLzeT9F9EMiuzkEb/O4inmvlsL xtGBends5+OMZZ1PyR4zvFPTfBk6IzgVSyadU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wnKHPxF/A2ZNKbF8HTItXynxhBM5ITpKDveeLrzHrzY=; b=PBG4j3R5nwMRTCiNbyQzu04oDnzcRiXADflbqMoqLocuUTbSYduFVDkWZ4lILSshq0 ylFviPl5qU7bQKhcbsM149Nbp70Fbvi+kgZNsm11qiQjgMOz1sEr36DMtIO5hAagi7zy 5TDo3BF5sEQDrNrioIX2W/H1/9I+pHtCBC8auLrpzUxdoZim4KnnNv5F6VtdOeeYBX+Y SRzaL2sb/p5leF2yrChIqISUgvFZuQ9Jok5Wk3M6a3BppdOAElc97K4e4E7NMFMwPchr 9bqc8nnBv27hOMAIcSudWDB0B0BZTw1QGTpfT36q1CsMPJDxhkJvstRPHegJa9nrS4fz uddw== X-Gm-Message-State: ALoCoQn385JmGVvAnOL9cvIRwESuv0OHZfwElluAsCoCWqVWgcmC18RR+xrmAEpyo4CncObcbJOo MIME-Version: 1.0 X-Received: by 10.107.157.133 with SMTP id g127mr27432342ioe.102.1439290995315; Tue, 11 Aug 2015 04:03:15 -0700 (PDT) Received: by 10.50.108.111 with HTTP; Tue, 11 Aug 2015 04:03:15 -0700 (PDT) In-Reply-To: <55C9BA0F.60408@jonasschnelli.ch> References: <55C9BA0F.60408@jonasschnelli.ch> Date: Tue, 11 Aug 2015 13:03:15 +0200 Message-ID: From: Mike Hearn To: Jonas Schnelli Content-Type: multipart/alternative; boundary=001a1140c7a0812371051d070c9c X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] Future Of Bitcoin-Cores Wallet X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2015 11:03:17 -0000 --001a1140c7a0812371051d070c9c Content-Type: text/plain; charset=UTF-8 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. --001a1140c7a0812371051d070c9c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Jonas,

I think your analysis of wha= t (some) users need is a good one.

We've discu= ssed this before so I know you prefer your current approach, but I personal= ly would take a slightly different path to reach the same end:
  • Support serving of SPV wallets from pruned storage. This means some p= rotocol upgrades, BIPs, etc. It helps all SPV wallets, including on phones.=
  • Then make a bitcoinj based desktop wallet app, that contains a bun= dled bitcoind.
  • Make the app sync TWO wallets simultaneously, one fr= om the P2P network as today, and another from the local bitcoind via a loca= l socket (or even just passing buffers around internally)
  • The app s= hould 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 lo= cal node is behind.
  • If there's a discrepancy, alert the user.
    There are big advantages of taking this path! They are:
    <= /div>
    • The switching back and forth between local full-security = mode (which may be behind) and remote SPV security (fully synced) is instan= t and transparent to the user. This is important for laptop users who don&#= 39;t run a local node all the time. The different audit levels can be refle= cted in the UI in some way.

    • The bitcoinj wallet code alread= y has support for things like multi-sig, BIP32, seed words, micropayment ch= annels, etc. You can disable Bloom filtering if you like (download full blo= cks).

    • You can do a local RPC or JNI/JNA call to get fee est= imates, if wanted.

    • The modern JVM tools and languages are m= uch, 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 s= ervice. 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 virtual= ly no false positives. No additional indexing is then required.
    --001a1140c7a0812371051d070c9c--