Module tor_netdoc::doc::microdesc
source · Expand description
Parsing implementation for Tor microdescriptors.
A “microdescriptor” is an incomplete, infrequently-changing summary of a relay’s information that is generated by the directory authorities.
Microdescriptors are much smaller than router descriptors, and change less frequently. For this reason, they’re currently used for building circuits by all relays and clients.
Microdescriptors can’t be used on their own: you need to know which relay they are for, which requires a valid consensus directory.
Structs§
- A microdescriptor annotated with additional data
- A single microdescriptor.
- Annotations prepended to a microdescriptor that has been stored to disk.
- MicrodescBuilder
build_docs
A builder object used to construct a microdescriptor. - An iterator that parses one or more (possibly annotated) microdescriptors from a string.
Type Aliases§
- The digest of a microdescriptor as used in microdesc consensuses