Skip to main content

UserSigningKeyStore

Trait UserSigningKeyStore 

Source
pub trait UserSigningKeyStore: Send + Sync {
    // Required method
    fn list_active_for_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user: &'life1 PrincipalId,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<UserSigningKey>, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Persistence for UserSigningKey records.

The single hot-path query is “what Ed25519 keys are trusted for user <U>?” — the authority loads them at provision time and verifies the supplied delegation against each Active key until one matches.

Required Methods§

Source

fn list_active_for_user<'life0, 'life1, 'async_trait>( &'life0 self, user: &'life1 PrincipalId, ) -> Pin<Box<dyn Future<Output = Result<Vec<UserSigningKey>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Every Active key trusted for user. Order is unspecified.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§