Network Statuses

class bushel.directory.network_status.NetworkStatusConsensus(raw_content)[source]
class bushel.directory.network_status.NetworkStatusConsensusDirectorySignature[source]

Directory signatures as found in NetworkStatusConsensus, defined in the Tor directory protocol version 3 ([dir-spec] §3.4.1).

For the signature, we take the hash through the _space_ after directory-signature, not the newline: this ensures that all authorities sign the same thing.

Variables
  • algorithm (str) – one of “sha1” or “sha256”, or None if this was not present

  • identity (str) – hex-encoded digest of the authority identity key of the signing authority

  • signing_key_digest (str) – hex-encoded digest of the current authority signing key of the signing authority

  • signature (bytes) – signature of the status document, with the initial item “network-status-version”, and the signature item “directory-signature”, using the signing key