Expand description
§tor-hsclient
Core implementation for onion services client.
This crate creates circuits to onion circuits, retains them for reuse, and hands them out as appropriate. It is also responsible for maintaining all relevant state about hidden services, and their descriptors and introduction points.
Modules§
- connect 🔒
- Main implementation of the connection functionality
- err 🔒
- Errors relating to being a hidden service client
- isol_
map 🔒 - Data structure
MultikeyIsolatedMap
indexed by multiple keys and an isolation - keys 🔒
- Hidden service (onion service) client key management functionality
- pow 🔒
- Common support for proof of work denial of service mitigation on the client side
- proto_
oneshot 🔒 - [
oneshot
] channel between a circuit control message handler and the main code - relay_
info 🔒 - Translate relay information from the formats used in the onion service
protocol into
CircTarget
s that we can use for building circuits. - state 🔒
- Implement a cache for onion descriptors and the facility to remember a bit about onion service history.
Structs§
- Descriptor
Error - Error that occurred attempting to download a descriptor
- HsClient
Connector - An object that negotiates connections with onion services
- HsClient
Desc EncKeypair Specifier - A key for deriving keys for decrypting HS descriptors (KS_hsc_desc_enc).
- HsClient
Secret Keys - Service discovery keys (if any) to use when connecting to a specific onion service.
- HsClient
Secret Keys Builder - Builder for
HsClientSecretKeys
Enums§
- Conn
Error - Error that occurred attempting to reach a hidden service
- Descriptor
Error Detail - Error that occurred attempting to download a descriptor
- Failed
Attempt Error - Error that occurred making one attempt to connect to a hidden service using an IP and RP
- Invalid
Target - We were given unusable information about an introduction point or rendezvous point.
- Startup
Error - Error that occurred attempting to start up a hidden service client connector
Traits§
- HsClient
Connector Config - Configuration for an HS client connector
Functions§
- supported_
hsclient_ protocols - Return a list of the protocols supported by this crate, running as a hidden service client.