Enum lair_keystore_api::actor::LairClientApi [−][src]
pub enum LairClientApi {
Show 21 variants
LairGetServerInfo {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<LairServerInfo>>,
},
LairGetLastEntryIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<KeystoreIndex>>,
},
LairGetEntryType {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<LairEntryType>>,
keystore_index: KeystoreIndex,
},
TlsCertNewSelfSignedFromEntropy {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, CertSni, CertDigest)>>,
options: TlsCertOptions,
},
TlsCertGet {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<(CertSni, CertDigest)>>,
keystore_index: KeystoreIndex,
},
TlsCertGetCertByIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<Cert>>,
keystore_index: KeystoreIndex,
},
TlsCertGetCertByDigest {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<Cert>>,
cert_digest: CertDigest,
},
TlsCertGetCertBySni {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<Cert>>,
cert_sni: CertSni,
},
TlsCertGetPrivKeyByIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>,
keystore_index: KeystoreIndex,
},
TlsCertGetPrivKeyByDigest {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>,
cert_digest: CertDigest,
},
TlsCertGetPrivKeyBySni {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>,
cert_sni: CertSni,
},
SignEd25519NewFromEntropy {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, SignEd25519PubKey)>>,
},
SignEd25519Get {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519PubKey>>,
keystore_index: KeystoreIndex,
},
SignEd25519SignByIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519Signature>>,
keystore_index: KeystoreIndex,
message: Arc<Vec<u8>>,
},
SignEd25519SignByPubKey {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519Signature>>,
pub_key: SignEd25519PubKey,
message: Arc<Vec<u8>>,
},
X25519NewFromEntropy {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, X25519PubKey)>>,
},
X25519Get {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<X25519PubKey>>,
keystore_index: KeystoreIndex,
},
CryptoBoxByIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<CryptoBoxEncryptedData>>,
keystore_index: KeystoreIndex,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>,
},
CryptoBoxByPubKey {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<CryptoBoxEncryptedData>>,
pub_key: X25519PubKey,
recipient: X25519PubKey,
data: Arc<CryptoBoxData>,
},
CryptoBoxOpenByIndex {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<Option<CryptoBoxData>>>,
keystore_index: KeystoreIndex,
sender: X25519PubKey,
encrypted_data: Arc<CryptoBoxEncryptedData>,
},
CryptoBoxOpenByPubKey {
span_context: Context,
respond: GhostRespond<LairClientApiHandlerResult<Option<CryptoBoxData>>>,
pub_key: X25519PubKey,
sender: X25519PubKey,
encrypted_data: Arc<CryptoBoxEncryptedData>,
},
}
Expand description
Lair Client Actor Api.
Variants
Get lair server info.
Fields of LairGetServerInfo
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<LairServerInfo>>
Response callback - respond to the request.
Get the highest entry index. Note, some entries my be stubs / erased values.
Fields of LairGetLastEntryIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<KeystoreIndex>>
Response callback - respond to the request.
Get the entry type for a given index.
Fields of LairGetEntryType
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<LairEntryType>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Create a new self-signed tls certificate.
Fields of TlsCertNewSelfSignedFromEntropy
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, CertSni, CertDigest)>>
Response callback - respond to the request.
options: TlsCertOptions
Input parameter.
Get tls cert info by keystore index.
Fields of TlsCertGet
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<(CertSni, CertDigest)>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Fetch the certificate by entry index.
Fields of TlsCertGetCertByIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<Cert>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Fetch the certificate by digest.
Fields of TlsCertGetCertByDigest
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<Cert>>
Response callback - respond to the request.
cert_digest: CertDigest
Input parameter.
Fetch the certificate by sni.
Fields of TlsCertGetCertBySni
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<Cert>>
Response callback - respond to the request.
cert_sni: CertSni
Input parameter.
Fetch the certificate private key by entry index.
Fields of TlsCertGetPrivKeyByIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Fetch the certificate private key by digest.
Fields of TlsCertGetPrivKeyByDigest
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>
Response callback - respond to the request.
cert_digest: CertDigest
Input parameter.
Fetch the certificate private key by sni.
Fields of TlsCertGetPrivKeyBySni
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<CertPrivKey>>
Response callback - respond to the request.
cert_sni: CertSni
Input parameter.
Create a new signature ed25519 keypair from entropy.
Fields of SignEd25519NewFromEntropy
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, SignEd25519PubKey)>>
Response callback - respond to the request.
Get ed25519 keypair info by keystore index.
Fields of SignEd25519Get
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519PubKey>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Generate a signature for message by keystore index.
Fields of SignEd25519SignByIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519Signature>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
message: Arc<Vec<u8>>
Input parameter.
Generate a signature for message by signature pub key.
Fields of SignEd25519SignByPubKey
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<SignEd25519Signature>>
Response callback - respond to the request.
pub_key: SignEd25519PubKey
Input parameter.
message: Arc<Vec<u8>>
Input parameter.
Generate new x25519 keypair from entropy.
Fields of X25519NewFromEntropy
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<(KeystoreIndex, X25519PubKey)>>
Response callback - respond to the request.
Get x25519 keypair by keystore index.
Fields of X25519Get
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<X25519PubKey>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
Generate encrypted crypto box data by sender keystore index for recipient pubkey.
Fields of CryptoBoxByIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<CryptoBoxEncryptedData>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
recipient: X25519PubKey
Input parameter.
data: Arc<CryptoBoxData>
Input parameter.
Generate encrypted crypto box data by sender pubkey for recipient pubkey.
Fields of CryptoBoxByPubKey
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<CryptoBoxEncryptedData>>
Response callback - respond to the request.
pub_key: X25519PubKey
Input parameter.
recipient: X25519PubKey
Input parameter.
data: Arc<CryptoBoxData>
Input parameter.
Open crypto box previously generated by recipient keystore index from sender pubkey.
Fields of CryptoBoxOpenByIndex
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<Option<CryptoBoxData>>>
Response callback - respond to the request.
keystore_index: KeystoreIndex
Input parameter.
sender: X25519PubKey
Input parameter.
encrypted_data: Arc<CryptoBoxEncryptedData>
Input parameter.
Open crypto box previously generated by recipient pubkey from sender pubkey.
Fields of CryptoBoxOpenByPubKey
span_context: Context
Tracing span from request invocation.
respond: GhostRespond<LairClientApiHandlerResult<Option<CryptoBoxData>>>
Response callback - respond to the request.
pub_key: X25519PubKey
Input parameter.
sender: X25519PubKey
Input parameter.
encrypted_data: Arc<CryptoBoxEncryptedData>
Input parameter.
Trait Implementations
Process a dispatch event with a given GhostHandler.
Auto Trait Implementations
impl !RefUnwindSafe for LairClientApi
impl Send for LairClientApi
impl Sync for LairClientApi
impl Unpin for LairClientApi
impl !UnwindSafe for LairClientApi
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
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