#tor #service-provider #arti #networking

tor-hsservice

Arti's implementation of an onion service provider

7 releases (breaking)

0.17.0 Apr 2, 2024
0.8.0 Mar 4, 2024
0.7.0 Feb 5, 2024
0.6.0 Jan 9, 2024
0.3.0 Oct 2, 2023

#365 in Cryptography

Download history 1/week @ 2023-12-29 80/week @ 2024-01-05 102/week @ 2024-01-12 103/week @ 2024-01-19 39/week @ 2024-01-26 65/week @ 2024-02-02 86/week @ 2024-02-09 34/week @ 2024-02-16 94/week @ 2024-02-23 271/week @ 2024-03-01 111/week @ 2024-03-08 98/week @ 2024-03-15 241/week @ 2024-03-22 324/week @ 2024-03-29 137/week @ 2024-04-05

812 downloads per month
Used in 7 crates (4 directly)

MIT/Apache

4.5MB
75K SLoC

tor-hsservice

Provide an onion service on the Tor network.

Overview

This crate is part of Arti, a project to implement Tor in Rust.

It provides a service-side implementation of the onion service protocol, which enables Tor clients to provide a responder-anonymous service on the network. Other parties can connect to an onion service without learning where it is hosted.

This crate provides a low-level implementation of the onion service protocol that may not be suitable for typical users. Most users will instead want to use the arti binary to run an onion service proxy, or use the TorClient::launch_onion_service API in the arti-client crate.

Limitations

This crate is a work in progress.

As of February 2024, there are some features missing that are necessary for running a secure, private onion service. Notably these include:

  • Resistance to denial of service attacks
    • Support for proof-of-work checking and validation
    • Detection and response to out-of-memory conditions
  • Vanguard relays for resistance to path discovery
  • Descriptor encryption keys, so that only certain clients to connect to the service.
  • Removal of old keys and state information. (Currently, the on-disk state will grow slowly but without bound, with sensitive information retained indefinitely.)

Reference

You can learn more about the protocols here as part of the onion services Specification.

LICENSE: MIT OR Apache-2.0

Dependencies

~26–40MB
~621K SLoC