TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.98k stars 86 forks source link

User should be able to see when their onion address is available to others #1034

Open holmesworcester opened 2 years ago

holmesworcester commented 2 years ago

Right now users have no visibility into when their onion address is reachable to others.

Tor has something called "MetricsPort" that you can connect to to get different metrics. If >0 directory servers list it then you should be visible to others.

We can make this visible and use it (maybe with whether we are connected to Tor) to display online status, or some kind of online or "ready" status for the invite code.

See: https://gitlab.torproject.org/tpo/web/support/-/issues/265

and https://gitlab.torproject.org/tpo/network-health/metrics/website/-/issues/40071#note_2854157

holmesworcester commented 1 year ago

Helpful note from the briar folks:

Using HSFETCH to check whether the descriptor is available sounds like a good idea. Maybe you could also modify Tor to log which HSDirs the server is uploading to and the client is downloading from, in case there's a mismatch (eg due to a skewed clock)?