Trait lair_keystore::store::EntryStoreHandler[][src]

pub trait EntryStoreHandler: GhostHandler<EntryStore> {
    fn handle_tls_cert_self_signed_new_from_entropy(
        &mut self,
        options: TlsCertOptions
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>;
fn handle_sign_ed25519_keypair_new_from_entropy(
        &mut self
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>;
fn handle_add_initial_sign_ed25519_keypair(
        &mut self,
        keypair: EntrySignEd25519
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>;
fn handle_x25519_keypair_new_from_entropy(
        &mut self
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>;
fn handle_get_last_entry_index(
        &mut self
    ) -> EntryStoreHandlerResult<KeystoreIndex>;
fn handle_get_entry_by_index(
        &mut self,
        index: KeystoreIndex
    ) -> EntryStoreHandlerResult<Arc<LairEntry>>;
fn handle_get_entry_by_pub_id(
        &mut self,
        id: Arc<Vec<u8>>
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>;
fn handle_get_entry_by_sni(
        &mut self,
        sni: CertSni
    ) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>; }
Expand description

persistence manager for entry storage

Required methods

generate a new tls cert entry && save it && return it

generate a new signature ed25519 keypair entry && save it && return it

add a new signature ed25519 keypair entry that is passed && save it && return it

generate a new x25519 keypair entry && save it && return it

fn handle_get_last_entry_index(
    &mut self
) -> EntryStoreHandlerResult<KeystoreIndex>

fetch the highest / most recently added keystore_index

fn handle_get_entry_by_index(
    &mut self,
    index: KeystoreIndex
) -> EntryStoreHandlerResult<Arc<LairEntry>>

fetch an entry from the store by keystore index

fn handle_get_entry_by_pub_id(
    &mut self,
    id: Arc<Vec<u8>>
) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>

fetch an entry by its 32 byte public identifier for kepair, this is the pub key for tls cert, this is the digest

fn handle_get_entry_by_sni(
    &mut self,
    sni: CertSni
) -> EntryStoreHandlerResult<(KeystoreIndex, Arc<LairEntry>)>

get a tls cert entry by sni

Implementors