[][src]Trait sunshine_identity_client::IdentityClient

pub trait IdentityClient<T: Runtime + Identity>: ChainClient<T> {
#[must_use]    fn create_account_for<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 <T as System>::AccountId
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn add_paperkey<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Mnemonic, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn add_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 <T as System>::AccountId
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn remove_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 <T as System>::AccountId
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn change_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        password: &'life1 SecretString
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_password<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn subscribe_password_changes<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<EventSubscription<T>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn fetch_uid<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 <T as System>::AccountId
    ) -> Pin<Box<dyn Future<Output = Result<Option<T::Uid>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn fetch_keys<'life0, 'async_trait>(
        &'life0 self,
        uid: T::Uid,
        hash: Option<<T as System>::Hash>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<<T as System>::AccountId>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn fetch_account<'life0, 'async_trait>(
        &'life0 self,
        uid: T::Uid
    ) -> Pin<Box<dyn Future<Output = Result<T::IdAccountData, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn prove_identity<'life0, 'async_trait>(
        &'life0 self,
        service: Service
    ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn revoke_identity<'life0, 'async_trait>(
        &'life0 self,
        service: Service
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn identity<'life0, 'async_trait>(
        &'life0 self,
        uid: T::Uid
    ) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityInfo>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        service: &'life1 Service
    ) -> Pin<Box<dyn Future<Output = Result<T::Uid, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn create_account_for<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 <T as System>::AccountId
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn add_paperkey<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Mnemonic, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn add_key<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 <T as System>::AccountId
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn remove_key<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 <T as System>::AccountId
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn change_password<'life0, 'life1, 'async_trait>(
    &'life0 self,
    password: &'life1 SecretString
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_password<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn subscribe_password_changes<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<EventSubscription<T>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn fetch_uid<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 <T as System>::AccountId
) -> Pin<Box<dyn Future<Output = Result<Option<T::Uid>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn fetch_keys<'life0, 'async_trait>(
    &'life0 self,
    uid: T::Uid,
    hash: Option<<T as System>::Hash>
) -> Pin<Box<dyn Future<Output = Result<Vec<<T as System>::AccountId>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn fetch_account<'life0, 'async_trait>(
    &'life0 self,
    uid: T::Uid
) -> Pin<Box<dyn Future<Output = Result<T::IdAccountData, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn prove_identity<'life0, 'async_trait>(
    &'life0 self,
    service: Service
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn revoke_identity<'life0, 'async_trait>(
    &'life0 self,
    service: Service
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn identity<'life0, 'async_trait>(
    &'life0 self,
    uid: T::Uid
) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityInfo>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn resolve<'life0, 'life1, 'async_trait>(
    &'life0 self,
    service: &'life1 Service
) -> Pin<Box<dyn Future<Output = Result<T::Uid, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<T, C> IdentityClient<T> for C where
    T: Runtime + Identity<Gen = u16, Mask = [u8; 32]>,
    <<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
    C: ChainClient<T>,
    C::OffchainClient: Cache<Codec, Claim>,
    C::Error: From<Error>,
    T::AccountId: Ss58Codec,
    T::Signature: Decode,
    <T::Signature as Verify>::Signer: IdentifyAccount<AccountId = T::AccountId>, 
[src]

Loading content...