[][src]Trait sunshine_core::Key

pub trait Key<T: Runtime>: Sized + Send + Sync {
#[must_use]    fn generate<'async_trait>(
    ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
    where
        Self: 'async_trait
;
fn from_mnemonic(mnemonic: &Mnemonic) -> Result<Self, NotEnoughEntropyError>;
fn from_suri(suri: &str) -> Result<Self, InvalidSuri>;
fn to_account_id(&self) -> <T as System>::AccountId; }

Required methods

#[must_use]fn generate<'async_trait>(
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>> where
    Self: 'async_trait, 

fn from_mnemonic(mnemonic: &Mnemonic) -> Result<Self, NotEnoughEntropyError>

fn from_suri(suri: &str) -> Result<Self, InvalidSuri>

fn to_account_id(&self) -> <T as System>::AccountId

Loading content...

Implementors

Loading content...