Expand description
The hsc subcommand.
Re-exportsยง
use crate::subcommands::prompt;๐use crate::Result;๐use crate::TorClient;๐use anyhow::Context;๐use anyhow::anyhow;๐use arti_client::HsClientDescEncKey;๐use arti_client::HsId;๐use arti_client::InertTorClient;๐use arti_client::KeystoreSelector;๐use arti_client::TorClientConfig;๐use clap::ArgMatches;๐use clap::Args;๐use clap::FromArgMatches;๐use clap::Parser;๐use clap::Subcommand;๐use clap::ValueEnum;๐use safelog::DisplayRedacted;๐use tor_rtcompat::Runtime;๐use std::collections::HashMap;๐use std::collections::hash_map::Entry;๐use tor_hsclient::HsClientDescEncKeypairSpecifier;๐use tor_hscrypto::pk::HsClientDescEncKeypair;๐use tor_keymgr::CTorPath;๐use tor_keymgr::KeyPath;๐use tor_keymgr::KeystoreEntry;๐use tor_keymgr::KeystoreEntryResult;๐use tor_keymgr::KeystoreId;๐use std::fs::OpenOptions;๐use std::io;๐use std::io::Write;๐use std::str::FromStr;๐
Structsยง
- CTor
Migrate ๐Args - The arguments of the
CTorMigratesubcommand. - Common
Args ๐ - The common arguments of the key subcommands.
- GetKey
Args ๐ - The arguments of the
GetKeysubcommand. - Keygen
Args ๐ - The common arguments of the key subcommands.
- Remove
KeyArgs ๐ - The arguments of the
Removesubcommand. - Rotate
KeyArgs ๐ - The arguments of the
Rotatesubcommand.
Enumsยง
- Generate
Key ๐ - Whether to generate the key if missing.
- HscSubcommand ๐
- The
hscsubcommand. - HscSubcommands ๐
- The hsc subcommands the arti CLI will be augmented with.
- KeySubcommand ๐
- The
hsc-keysubcommand. - KeyType ๐
- A type of key
Functionsยง
- display_
service_ ๐discovery_ key - Display the public part of a service discovery key.
- get_
onion_ ๐address - Prompt the user for an onion address.
- migrate_
ctor_ ๐keys - Run the
hsc ctor-migratesubcommand. - prepare_
service_ ๐discovery_ key - Run the
hsc prepare-stealth-mode-keysubcommand. - read_
ctor_ ๐keys - Helper function for
migrate_ctor_keys. - remove_
service_ ๐discovery_ key - Run the
hsc remove-keysubcommand. - rotate_
service_ ๐discovery_ key - Run the
hsc rotate-keysubcommand. - run ๐
- Run the
hscsubcommand. - run_key ๐
- Run the
hsc keysubcommand - write_
public_ ๐key - Write the public part of
keytof.