Expand description
Service discovery client key providers.
Re-exportsยง
use crate::config::restricted_discovery::HsClientNickname;๐use derive_more::From;๐use std::collections::BTreeMap;๐use std::fs::DirEntry;๐use derive_more::AsRef;๐use derive_more::Into;๐use fs_mistrust::CheckedDir;๐use fs_mistrust::Mistrust;๐use fs_mistrust::MistrustBuilder;๐use amplify::Getters;๐use serde_with::DisplayFromStr;๐use tor_config::define_list_builder_helper;๐use tor_config::extend_builder::extend_with_replace;๐use tor_config::mistrust::BuilderExt as _;๐use tor_config_path::CfgPath;๐use tor_config_path::CfgPathError;๐use tor_config_path::CfgPathResolver;๐use tor_error::warn_report;๐use tor_hscrypto::pk::HsClientDescEncKeyParseError;๐use tor_persist::slug::BadSlug;๐use crate::internal_prelude::*;๐use tor_config::derive::prelude::*;๐
Structsยง
- Directory
KeyProvider - A directory containing the client keys, each in the
descriptor:x25519:<base32-encoded-x25519-public-key>format. - Directory
KeyProvider Builder - A builder to create an instance of
DirectoryKeyProvider. - Directory
KeyProvider List Builder - Wrapper struct to help derive_builder find the right types and methods
- Static
KeyProvider - A static mapping from
HsClientNicknameto client discovery keys. - Static
KeyProvider Builder - Wrapper struct to help derive_builder find the right types and methods
Enumsยง
- Directory
KeyProvider ๐Error - Error type representing an invalid
DirectoryKeyProvider.
Functionsยง
- build_
static ๐ - Helper for building a
StaticKeyProviderout of a list of client keys. - read_
key_ ๐file - Read the client key at
path.
Type Aliasesยง
- Directory
KeyProvider List - The serialized format of a
DirectoryKeyProviderListBuilder: