From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 74E38C016E for ; Fri, 5 Jun 2020 10:10:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 62BDF877E8 for ; Fri, 5 Jun 2020 10:10:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4ILHGsYA+u-T for ; Fri, 5 Jun 2020 10:10:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 484E787843 for ; Fri, 5 Jun 2020 10:10:19 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id e1so9158826wrt.5 for ; Fri, 05 Jun 2020 03:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=MRZUv014tPE+5lNwfP6T2gvRpVBnWBMv+Rk/N70sM3g=; b=D2l0EXrGR4cLjfyZg01t17y3aHid49AcBtG0R0K39Nq0c3hJaLq1bco5AOB2ebRupP 3qW19mtyznTTAalS/7U5ieHdb7NBadA0lDj4SgGD0eNw5Au6pmTG5NUvhdgXc/bpWMwn geC9FfseJ1jC9tIJeZx+qBZAKg5eU8i9xeqnenra7i7cNRs6lrDXd/VgUVFHMuuiOerD f1ZwZH9WW5ZpvFK5Dvj/0fgwvlDHG1u5+39yfQejuC4K8rnmkEejw8NkA+P7/KNkaWO0 ohmlrSN5mlm+Ulr5sYE8ntyjvvAQMzNioFDc1tvQCuL/+FaPgCODaZXRjsNbB8IYi/cT G+/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=MRZUv014tPE+5lNwfP6T2gvRpVBnWBMv+Rk/N70sM3g=; b=GfM94VwDZ8ZX7PsWsPcnCaFCDSvrgJx3hegpZmVAePEPnABPqR03khZOFm2tYDi+fN EXa8jMkeVGfpgzMXaGBO1Zmc1j6hYaZnVuqOzUHgTzJinvgOyXwMMwT1qUyLHi/5soeU QhND/NMyJmAjd5//G3wBnm+x0C66V20JVLHTw+uUB2Orfy1JZZYeP2apdgDTv8t5FiWo YTsbSgrmJee4ZqEGxDY07Pf2VZlgeJzSYFhG4eUXxjG8EbFagZ9/Q81Zu+oj9D5muNY6 z4inQDCPOGI3jm0LoPckmOU5s1i1DDrDdlVbGQ80J06tXC9UpjNhkyzzhfqE1RyAKRm1 g7rQ== X-Gm-Message-State: AOAM530jQqy9Nen4JXPEbDObWYrIBEHYSXLA8okSmy0ow6m+gdNPnxSC MxN4T/QIYouuqQNcD+Y0aFE= X-Google-Smtp-Source: ABdhPJwHAu+TSKYPemQSRyA7K0VTuwXlsob5JoQQpomPF/HeSHZ20R5Xcgy9EcuC8VnzqDxmf/FaRA== X-Received: by 2002:adf:c44e:: with SMTP id a14mr8299419wrg.50.1591351817750; Fri, 05 Jun 2020 03:10:17 -0700 (PDT) Received: from ?IPv6:2a01:cb1d:44:6500:9d6d:71b2:cb71:cb17? ([2a01:cb1d:44:6500:9d6d:71b2:cb71:cb17]) by smtp.googlemail.com with ESMTPSA id k14sm11264486wrq.97.2020.06.05.03.10.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2020 03:10:16 -0700 (PDT) To: ZmnSCPxj , Bitcoin Protocol Discussion , Gleb Naumenko References: <2e8fba65-f7fa-4c37-a318-222547e25a06@Spark> <9e4dfaa7-895a-48a1-8116-eaafc80da34f@Spark> <2phhD75B8ww3hFQ8Do039wAIlW8EVOjUeiedm-JtIek-TEnVocYSx-untchGrO3VoRLoPzinVAG95UN1yR3CadNWBJGSu19vJpFJ_yN-wZY=@protonmail.com> From: Aymeric Vitte Autocrypt: addr=vitteaymeric@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFdW8uABEAC7HJScbB2d/lmYoY5Cn9loEjJwfLs1LC3om030bWFGiH3Ceo5XeHUT94rw Pi+HaHU8ea94425SXIFsnqp/ouoT/8Ffn6vED0OoRmK0jE4fqDApXSpoL2mHX9PAGdUItMtD YrxBiBZNfMkctEsm4NrQ4TCvB3Yrm6Fc69inXJjUoYgPw5tHafEeI8Qwh0j99JZZDKcAqIra JF3MPc59rATz0qOJtRP9EpsPVFwjJe13zN6CHILwiVgrL8EtT5WKCVO6ATxh60LHi8+MwPxV V31zp/NNI5Hck+XocEMO98ZvUu9X8ZxmnOk/+9pBxXEwUqSGUNWdmPJLncpI23Usce3u/MOo M2C4T4rD4J0XrXiyBvbeTvwq4qVNlyggeWzlBH+YpEYgDctPq4gNh4eoTtAkf8URtBeke5bQ CGdaZt/jxv8nvmxs9V/iSyg5ldJLQktHStXOo0OZ7FEB2C6Ggtymm4hm2MHYg07Q1MGJrFLa oJZkJ3JeXnVsZMam7ypQtld6rRa96CvH+llXwux6aQ5hKdzmBBMQ10LlkZhkExgTawbeqdiG RMP2DjD5go6TPdAHS4NN34SBkrTWLqgWOjN/lnG77bbLnpMl0P+xBTuqw1oSXaDbcdHE2nGY lRno/ZZIfr+1Bq56DZLBX/WpnAT4f5WtofL4CxQM9SbG6byyewARAQABzSJBeW1lcmljIFZp dHRlIDxheW1lcmljQHBlZXJzbS5jb20+wsF/BBMBCAApBQJXVvLgAhsjBQkJZgGABwsJCAcD AgEGFQgCCQoLBBYCAwECHgECF4AACgkQKh17NCYnrDm3WhAAlYmgtSmtfqjBvQMqkmtqiQJA aZkzFZWt6+zroduHH5/Tp8jh73gFqCUyRrl/kcK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) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <2phhD75B8ww3hFQ8Do039wAIlW8EVOjUeiedm-JtIek-TEnVocYSx-untchGrO3VoRLoPzinVAG95UN1yR3CadNWBJGSu19vJpFJ_yN-wZY=@protonmail.com> Content-Type: multipart/alternative; boundary="------------8BAE6BBD95013BBD1152F83E" Content-Language: fr Subject: Re: [bitcoin-dev] Time-dilation Attacks on the Lightning Network X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 10:10:22 -0000 This is a multi-part message in MIME format. --------------8BAE6BBD95013BBD1152F83E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Le 04/06/2020 à 04:58, ZmnSCPxj via bitcoin-dev a écrit : >> [Tor is tricky](https://arxiv.org/abs/1410.6079) too > Since the issue here is that eclipsing of Bitcoin nodes is risky, it strikes me that a mitigation would be to run your Bitcoin fullnode on clearnet while running your Lightning node over Tor. > Eclipsing the Lightning node (but not the Bitcoin fullnode it depends on) "only" loses you the ability to pay, receive, or route (and thereby earn forwarding fees), but as long as your blockchain view is clear, it should be fine. > > Of course, the Lightning node could still be correlated with the Bitcoin node when transactions are broadcast with the attached Bitcoin node (as noted in the paper). > Instead the Lightning node should probably connect, over Tor, to some random Bitcoin fullnodes / Electrum servers and broadcast txes to them. > > And this seems to tie with what you propose: that the LN node should use a different view-fullnode from the broadcast-fullnode. > The issue each time there are discussions/research linking to Tor is that it is biased since the beginning because based on a wrong postulate: using the Tor network I will not elaborate on this again, it's an obvious very bad idea to use the Tor network for bitcoin It's not a bad idea to use the Tor protocol with no story of exit nodes and hidden services, linking again to: https://github.com/Ayms/node-Tor#phase-4-and-phase-5 And new link: http://www.peersm.com/Convergence-2020.pdf "A universal and generic architecture to anonymize any application or protocol and turn it into an independent decentralized p2p network inside browsers and servers, with browsers acting as servers" LN and bitcoin nodes would be relays and/or RDV points and/or clients and serving parties, some Tor network nodes could be used in the middle also (relays only) but in any case sybils/eclipse attacks become much more difficult to perform (or unlikely depending on how the peer discovery system is designed) bitcoin | node-Tor |bitcoin and LN.pipe(node-Tor) Then question for possible future tests: is there a simple way to pipe the bitcoin protocol via stdin/stdout? (the socks interface could be used but we already saw that it did raise issues) -- Move your coins by yourself (browser version): https://peersm.com/wallet Bitcoin transactions made simple: https://github.com/Ayms/bitcoin-transactions Zcash wallets made simple: https://github.com/Ayms/zcash-wallets Bitcoin wallets made simple: https://github.com/Ayms/bitcoin-wallets Get the torrent dynamic blocklist: http://peersm.com/getblocklist Check the 10 M passwords list: http://peersm.com/findmyass Anti-spies and private torrents, dynamic blocklist: http://torrent-live.org Peersm : http://www.peersm.com torrent-live: https://github.com/Ayms/torrent-live node-Tor : https://www.github.com/Ayms/node-Tor GitHub : https://www.github.com/Ayms --------------8BAE6BBD95013BBD1152F83E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit


Le 04/06/2020 à 04:58, ZmnSCPxj via bitcoin-dev a écrit :
[Tor is tricky](https://arxiv.org/abs/1410.6079) too
Since the issue here is that eclipsing of Bitcoin nodes is risky, it strikes me that a mitigation would be to run your Bitcoin fullnode on clearnet while running your Lightning node over Tor.
Eclipsing the Lightning node (but not the Bitcoin fullnode it depends on) "only" loses you the ability to pay, receive, or route (and thereby earn forwarding fees), but as long as your blockchain view is clear, it should be fine.

Of course, the Lightning node could still be correlated with the Bitcoin node when transactions are broadcast with the attached Bitcoin node (as noted in the paper).
Instead the Lightning node should probably connect, over Tor, to some random Bitcoin fullnodes / Electrum servers and broadcast txes to them.

And this seems to tie with what you propose: that the LN node should use a different view-fullnode from the broadcast-fullnode.


The issue each time there are discussions/research linking to Tor is that it is biased since the beginning because based on a wrong postulate: using the Tor network

I will not elaborate on this again, it's an obvious very bad idea to use the Tor network for bitcoin

It's not a bad idea to use the Tor protocol with no story of exit nodes and hidden services, linking again to: https://github.com/Ayms/node-Tor#phase-4-and-phase-5

And new link: http://www.peersm.com/Convergence-2020.pdf "A universal and generic architecture to anonymize any application or protocol and turn it into an independent decentralized p2p network inside browsers and servers, with browsers acting as servers"

LN and bitcoin nodes would be relays and/or RDV points and/or clients and serving parties, some Tor network nodes could be used in the middle also (relays only) but in any case sybils/eclipse attacks become much more difficult to perform (or unlikely depending on how the peer discovery system is designed)

bitcoin | node-Tor |bitcoin and LN.pipe(node-Tor)

Then question for possible future tests: is there a simple way to pipe the bitcoin protocol via stdin/stdout? (the socks interface could be used but we already saw that it did raise issues)


    
-- 
Move your coins by yourself (browser version): https://peersm.com/wallet
Bitcoin transactions made simple: https://github.com/Ayms/bitcoin-transactions
Zcash wallets made simple: https://github.com/Ayms/zcash-wallets
Bitcoin wallets made simple: https://github.com/Ayms/bitcoin-wallets
Get the torrent dynamic blocklist: http://peersm.com/getblocklist
Check the 10 M passwords list: http://peersm.com/findmyass
Anti-spies and private torrents, dynamic blocklist: http://torrent-live.org
Peersm : http://www.peersm.com
torrent-live: https://github.com/Ayms/torrent-live
node-Tor : https://www.github.com/Ayms/node-Tor
GitHub : https://www.github.com/Ayms
--------------8BAE6BBD95013BBD1152F83E--