<p>Generally if you read <a href="https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md" rel="noreferrer">BOLT 07 you will see that lightning nodes and channels can either be private or public</a>.</p>

<p>This is independent of the fact if they run on tor or not. </p>

<p>The node <a href="https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#the-node_announcement-message" rel="noreferrer">announcment message</a> explicitly supports announcing that it runs on tor as written in the BOLT 07</p>

<blockquote>
  <p>The following <code>address descriptor</code> types are defined:</p>
  
  <ul>
  <li><code>1</code>: ipv4; data = <code>[4:ipv4_addr][2:port]</code> (length 6)</li>
  <li><code>2</code>: ipv6; data = <code>[16:ipv6_addr][2:port]</code> (length 18)
  
  <ul>
  <li><code>3</code>: Tor v2 onion service; data = <code>[10:onion_addr][2:port]</code> (length 12)
  
  <ul>
  <li>version 2 onion service addresses; Encodes an 80-bit, truncated <code>SHA-1</code>
  hash of a 1024-bit <code>RSA</code> public key for the onion service (a.k.a. Tor
  hidden service).</li>
  </ul></li>
  <li><code>4</code>: Tor v3 onion service; data = <code>[35:onion_addr][2:port]</code> (length 37)
  
  <ul>
  <li>version 3 (<a href="https://gitweb.torproject.org/torspec.git/tree/proposals/224-rend-spec-ng.txt" rel="noreferrer">prop224</a>)
  onion service addresses; Encodes:
  <code>[32:32_byte_ed25519_pubkey] || [2:checksum] || [1:version]</code>, where
  <code>checksum = sha3(".onion checksum" | pubkey || version)[:2]</code>.</li>
  </ul></li>
  </ul></li>
  </ul>
</blockquote>

<p>However I think most users running on tor like their privacy and don't announce their node. </p>

<p>Generally nodes can only be announced if they have at least one public channel. This is to prevent spam and DoS attacks on the gossip protocol. As some people only have private channels the nodes will not be announced.</p>

<p>Also most mobile nodes like eclair by default open private channels because it might not be so useful for a user that their mobile phone consumes all the data from their carriers data plan to become a routing node. </p>

CC BY-SA 4.0
2019-09-02T09:30:45.387Z
2019-09-02T09:30:45.387Z
Rene Pickhardt
<p>Tor nodes do show up in statistics, for example, 1ml.com. I do run Lightning Network nodes only behind Tor.</p>

CC BY-SA 4.0
2019-09-02T09:20:40.133Z
2019-09-02T09:20:40.133Z
Kristaps Kaupe
<p>Currently there is a wave of articles claiming the Lightning Network is shrinking. If you look at official statistics, like on p2sh.info, this seems true.</p>

<p>I was told that some of it might be an effect of more and more Lightning nodes using Tor. Imho it is insane to run a LN node at home without Tor, so this might be a good explanation.</p>

<p>But there are some questions left ...</p>

<ol>
<li><p>Why do tor nodes don't show up in the statistics? I failed to find a good answer to this.</p></li>
<li><p>If tor nodes don't show up in statistics - can non tor nodes route payments over them? Someone mentioned you need bridge nodes for it. Why? And what do bridge nodes do? Are they publicly known, do they have a special setup?</p></li>
</ol>

<p>Thanks everybody. Looking forward for your answers.</p>

<lightning-network><tor>
Some questions about Lightning and Tor
Christoph Bergmann
# Some questions about Lightning and Tor

(Asked by: username_0 on 2019-09-02)

Currently there is a wave of articles claiming the Lightning Network is shrinking. If you look at official statistics, like on p2sh.info, this seems true.

I was told that some of it might be an effect of more and more Lightning nodes using Tor. Imho it is insane to run a LN node at home without Tor, so this might be a good explanation.

But there are some questions left ...

1. Why do tor nodes don't show up in the statistics? I failed to find a good answer to this.
2. If tor nodes don't show up in statistics - can non tor nodes route payments over them? Someone mentioned you need bridge nodes for it. Why? And what do bridge nodes do? Are they publicly known, do they have a special setup?

Thanks everybody. Looking forward for your answers.

**Tags:** lightning-network, tor


---

## 2 answers

### Answer by username_1 on 2019-09-02. Score: 9

Generally if you read [BOLT 07 you will see that lightning nodes and channels can either be private or public](https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md).

This is independent of the fact if they run on tor or not.

The node [announcment message](https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#the-node_announcement-message) explicitly supports announcing that it runs on tor as written in the BOLT 07

> The following `address descriptor` types are defined:
>
> * `1`: ipv4; data = `[4:ipv4_addr][2:port]` (length 6)
> * `2`: ipv6; data = `[16:ipv6_addr][2:port]` (length 18)
>   + `3`: Tor v2 onion service; data = `[10:onion_addr][2:port]` (length 12)
>     - version 2 onion service addresses; Encodes an 80-bit, truncated `SHA-1`
>       hash of a 1024-bit `RSA` public key for the onion service (a.k.a. Tor
>       hidden service).
>   + `4`: Tor v3 onion service; data = `[35:onion_addr][2:port]` (length 37)
>     - version 3 ([prop224](https://gitweb.torproject.org/torspec.git/tree/proposals/224-rend-spec-ng.txt))
>       onion service addresses; Encodes:
>       `[32:32_byte_ed25519_pubkey] || [2:checksum] || [1:version]`, where
>       `checksum = sha3(".onion checksum" | pubkey || version)[:2]`.

However I think most users running on tor like their privacy and don't announce their node.

Generally nodes can only be announced if they have at least one public channel. This is to prevent spam and DoS attacks on the gossip protocol. As some people only have private channels the nodes will not be announced.

Also most mobile nodes like eclair by default open private channels because it might not be so useful for a user that their mobile phone consumes all the data from their carriers data plan to become a routing node.


---

### Answer by username_2 on 2019-09-02. Score: 0

Tor nodes do show up in statistics, for example, 1ml.com. I do run Lightning Network nodes only behind Tor.


---

