Trait tor_keymgr::ToEncodableKey

source ·
pub trait ToEncodableKey {
    type Key: EncodableKey + 'static;

    // Required methods
    fn to_encodable_key(self) -> Self::Key;
    fn from_encodable_key(key: Self::Key) -> Self;
}
Available on crate feature keymgr only.
Expand description

A key that can be converted to an EncodableKey.

Required Associated Types§

source

type Key: EncodableKey + 'static

The key type this can be converted to/from.

Required Methods§

source

fn to_encodable_key(self) -> Self::Key

Convert this key to a type that implements EncodableKey.

source

fn from_encodable_key(key: Self::Key) -> Self

Convert an EncodableKey to another key type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToEncodableKey for HsBlindIdKey

source§

impl ToEncodableKey for HsBlindIdKeypair

source§

impl ToEncodableKey for HsClientDescEncKeypair

source§

impl ToEncodableKey for HsDescSigningKeypair

source§

impl ToEncodableKey for HsIdKey

source§

impl ToEncodableKey for HsIdKeypair

source§

impl ToEncodableKey for HsIntroPtSessionIdKeypair

source§

impl ToEncodableKey for HsSvcNtorKeypair

Implementors§