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

LairGetServerInfo

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.

LairGetLastEntryIndex

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.

LairGetEntryType

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.

TlsCertNewSelfSignedFromEntropy

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.

TlsCertGet

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.

TlsCertGetCertByIndex

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.

TlsCertGetCertByDigest

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.

TlsCertGetCertBySni

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.

TlsCertGetPrivKeyByIndex

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.

TlsCertGetPrivKeyByDigest

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.

TlsCertGetPrivKeyBySni

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.

SignEd25519NewFromEntropy

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.

SignEd25519Get

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.

SignEd25519SignByIndex

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.

SignEd25519SignByPubKey

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.

X25519NewFromEntropy

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.

X25519Get

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.

CryptoBoxByIndex

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.

CryptoBoxByPubKey

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.

CryptoBoxOpenByIndex

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.

CryptoBoxOpenByPubKey

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

Formats the value using the given formatter. Read more

Process a dispatch event with a given GhostHandler.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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