Trait WalletModule

Source
pub trait WalletModule {
    // Required methods
    fn get_wallet_dids<'life0, 'async_trait>(
        &'life0 self,
        options: Did,
    ) -> Pin<Box<dyn Future<Output = Result<DidList>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_local_did<'life0, 'async_trait>(
        &'life0 self,
        options: CreateLocalDidOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn rotate_keypair<'life0, 'async_trait>(
        &'life0 self,
        did: String,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_public_did<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn assign_public_did<'life0, 'async_trait>(
        &'life0 self,
        did: String,
    ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_did_endpoint<'life0, 'async_trait>(
        &'life0 self,
        did: String,
    ) -> Pin<Box<dyn Future<Output = Result<DidEndpoint>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_did_endpoint<'life0, 'async_trait>(
        &'life0 self,
        options: SetDidEndpointOptions,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generic cloudagent basic message module

Required Methods§

Source

fn get_wallet_dids<'life0, 'async_trait>( &'life0 self, options: Did, ) -> Pin<Box<dyn Future<Output = Result<DidList>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query a wallet for DIDs

Source

fn create_local_did<'life0, 'async_trait>( &'life0 self, options: CreateLocalDidOptions, ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a local DID

Source

fn rotate_keypair<'life0, 'async_trait>( &'life0 self, did: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Rotate key pair

Source

fn fetch_public_did<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch public did

Source

fn assign_public_did<'life0, 'async_trait>( &'life0 self, did: String, ) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Assign the current public DID

Source

fn fetch_did_endpoint<'life0, 'async_trait>( &'life0 self, did: String, ) -> Pin<Box<dyn Future<Output = Result<DidEndpoint>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query DID endpoint of wallet

Source

fn set_did_endpoint<'life0, 'async_trait>( &'life0 self, options: SetDidEndpointOptions, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Set DID endpoint of wallet

Implementors§