Trait tor_hsservice::internal_prelude::KeySpecifier

source ·
pub(crate) trait KeySpecifier {
    // Required methods
    fn arti_path(&self) -> Result<ArtiPath, ArtiPathUnavailableError>;
    fn ctor_path(&self) -> Option<CTorPath>;
}
Expand description

The “specifier” of a key, which identifies an instance of a key.

KeySpecifier::arti_path() should uniquely identify an instance of a key.

Required Methods§

source

fn arti_path(&self) -> Result<ArtiPath, ArtiPathUnavailableError>

The location of the key in the Arti key store.

This also acts as a unique identifier for a specific key instance.

source

fn ctor_path(&self) -> Option<CTorPath>

The location of the key in the C Tor key store (if supported).

This function should return None for keys that are recognized by Arti’s key stores, but not by C Tor’s key store (such as HsClientIntroAuthKeypair).

Implementors§