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
NewLair(LairClient)
new lair keystore api client
Implementations
sourceimpl MetaLairClient
impl MetaLairClient
sourcepub fn shutdown(&self) -> impl Future<Output = LairResult<()>> + 'static + Send
pub fn shutdown(&self) -> impl Future<Output = LairResult<()>> + 'static + Send
Shutdown this keystore client
sourcepub 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
sourcepub fn sign(
&self,
pub_key: AgentPubKey,
data: Arc<[u8]>
) -> impl Future<Output = LairResult<Signature>> + 'static + Send
pub fn sign(
&self,
pub_key: AgentPubKey,
data: Arc<[u8]>
) -> impl Future<Output = LairResult<Signature>> + 'static + Send
Generate a new signature for given keypair / data
sourcepub 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
sourcepub fn crypto_box_xsalsa(
&self,
sender_pub_key: X25519PubKey,
recipient_pub_key: X25519PubKey,
data: Arc<[u8]>
) -> impl Future<Output = LairResult<([u8; 24], Arc<[u8]>)>> + 'static + Send
pub fn crypto_box_xsalsa(
&self,
sender_pub_key: X25519PubKey,
recipient_pub_key: X25519PubKey,
data: Arc<[u8]>
) -> impl Future<Output = LairResult<([u8; 24], Arc<[u8]>)>> + 'static + Send
Encrypt an authenticated “box“ed message to a specific recipient.
sourcepub fn crypto_box_xsalsa_open(
&self,
sender_pub_key: X25519PubKey,
recipient_pub_key: X25519PubKey,
nonce: [u8; 24],
data: Arc<[u8]>
) -> impl Future<Output = LairResult<Arc<[u8]>>> + 'static + Send
pub fn crypto_box_xsalsa_open(
&self,
sender_pub_key: X25519PubKey,
recipient_pub_key: X25519PubKey,
nonce: [u8; 24],
data: Arc<[u8]>
) -> impl Future<Output = LairResult<Arc<[u8]>>> + 'static + Send
Decrypt an authenticated “box“ed message from a specific sender.
sourcepub 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
sourceimpl Clone for MetaLairClient
impl Clone for MetaLairClient
sourcefn clone(&self) -> MetaLairClient
fn clone(&self) -> MetaLairClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
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>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more