Trait holochain::conductor::conductor::DpkiServiceExt
source · pub trait DpkiServiceExt: DpkiService {
// Provided methods
fn register_key<'life0, 'async_trait>(
&'life0 self,
key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn update_key<'life0, 'async_trait>(
&'life0 self,
old_key: AgentPubKey,
new_key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn remove_key<'life0, 'async_trait>(
&'life0 self,
key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Some more helpful methods built around the methods provided by the service
Provided Methods§
sourcefn register_key<'life0, 'async_trait>(
&'life0 self,
key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn register_key<'life0, 'async_trait>( &'life0 self, key: AgentPubKey ) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Register a newly created key with DPKI
sourcefn update_key<'life0, 'async_trait>(
&'life0 self,
old_key: AgentPubKey,
new_key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn update_key<'life0, 'async_trait>( &'life0 self, old_key: AgentPubKey, new_key: AgentPubKey ) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Replace an old key with a new one
sourcefn remove_key<'life0, 'async_trait>(
&'life0 self,
key: AgentPubKey
) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn remove_key<'life0, 'async_trait>( &'life0 self, key: AgentPubKey ) -> Pin<Box<dyn Future<Output = DpkiServiceResult<()>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Delete an existing key without replacing it with a new one. This effectively terminates the “lineage” that this key was a part of.