Skip to main content

ActorKeyResolver

Trait ActorKeyResolver 

Source
pub trait ActorKeyResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<VerifiedActor, SigError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Strategy for looking up an actor’s public key from its keyId.

In production this is an HTTP fetch with cache (see HttpActorKeyResolver); in tests it’s a simple in-memory map.

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, key_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<VerifiedActor, SigError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§