Expand description
Code to abstract over the notion of relays having one or more identities.
Currently (2022), every Tor relay has exactly two identities: A legacy identity that is based on the SHA-1 hash of an RSA-1024 public key, and a modern identity that is an Ed25519 public key. This code lets us abstract over those types, and over other new types that may exist in the future.
ModulesΒ§
- by_id π
- Define a type for a set of HasRelayIds objects that can be looked up by any of their keys.
- set π
- Implement a set of RelayId.
MacrosΒ§
- derive_
deftly_ πdriver_ Relay IdType - impl_
eq_ πvariant - Expand to an implementation for PartialEq for a given key type.
StructsΒ§
- Relay
IdType Iter - An iterator over the variants of RelayIdType
EnumsΒ§
- RelayId
- A single relay identity.
- Relay
IdError - An error returned while trying to parse a RelayId.
- Relay
IdRef - A reference to a single relay identity.
- Relay
IdType - The type of a relay identity.