Enum holochain_keystore::MetaLairClient [−][src]
pub enum MetaLairClient {
Legacy(KeystoreSender),
NewLair(LairClient),
}
Expand description
Abstraction around runtime switching/upgrade of lair keystore / client. Can delete this when we finally delete deprecated legacy lair option.
Variants
Legacy(KeystoreSender)
oldschool deprecated lair keystore client
Tuple Fields of Legacy
new lair keystore api client
Implementations
Shutdown this keystore client
pub fn new_sign_keypair_random(
&self
) -> impl Future<Output = LairResult<AgentPubKey>> + 'static + Send
pub fn new_sign_keypair_random(
&self
) -> impl Future<Output = LairResult<AgentPubKey>> + 'static + Send
Construct a new randomized signature keypair
Generate a new signature for given keypair / data
pub fn new_x25519_keypair_random(
&self
) -> impl Future<Output = LairResult<X25519PubKey>> + 'static + Send
pub fn new_x25519_keypair_random(
&self
) -> impl Future<Output = LairResult<X25519PubKey>> + 'static + Send
Construct a new randomized encryption keypair
Encrypt an authenticated “box“ed message to a specific recipient.
Decrypt an authenticated “box“ed message from a specific sender.
pub fn get_or_create_first_tls_cert(
&self
) -> impl Future<Output = LairResult<(LegacyCertDigest, LegacyCert, LegacyCertPrivKey)>> + 'static + Send
pub fn get_or_create_first_tls_cert(
&self
) -> impl Future<Output = LairResult<(LegacyCertDigest, LegacyCert, LegacyCertPrivKey)>> + 'static + Send
Get a single tls cert from lair for use in conductor NOTE: once we delete the deprecated legacy lair api we can support multiple conductors using the same lair by tagging the tls certs / remembering the tag.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MetaLairClient
impl Send for MetaLairClient
impl Sync for MetaLairClient
impl Unpin for MetaLairClient
impl !UnwindSafe for MetaLairClient
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more