Trait tor_keymgr::keystore::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

§

type Key = VerifyingKey

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsBlindIdKeypair

§

type Key = ExpandedKeypair

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsClientDescEncKeypair

§

type Key = StaticKeypair

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsDescSigningKeypair

§

type Key = SigningKey

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsIdKey

§

type Key = VerifyingKey

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsIdKeypair

§

type Key = ExpandedKeypair

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsIntroPtSessionIdKeypair

§

type Key = SigningKey

source§

fn to_encodable_key(self) -> Self::Key

source§

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

source§

impl ToEncodableKey for HsSvcNtorKeypair

§

type Key = StaticKeypair

source§

fn to_encodable_key(self) -> Self::Key

source§

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

Implementors§