[][src]Enum sp_keyring::sr25519::Keyring

pub enum Keyring {
    Alice,
    Bob,
    Charlie,
    Dave,
    Eve,
    Ferdie,
    One,
    Two,
}

Set of test accounts.

Variants

Alice
Bob
Charlie
Dave
Eve
Ferdie
One
Two

Implementations

impl Keyring[src]

pub fn from_public(who: &Public) -> Option<Keyring>[src]

pub fn from_account_id(who: &AccountId32) -> Option<Keyring>[src]

pub fn from_raw_public(who: [u8; 32]) -> Option<Keyring>[src]

pub fn to_raw_public(self) -> [u8; 32][src]

pub fn from_h256_public(who: H256) -> Option<Keyring>[src]

pub fn to_h256_public(self) -> H256[src]

pub fn to_raw_public_vec(self) -> Vec<u8>[src]

pub fn to_account_id(self) -> AccountId32[src]

pub fn sign(self, msg: &[u8]) -> Signature[src]

pub fn pair(self) -> Pair[src]

pub fn iter() -> impl Iterator<Item = Keyring>[src]

Returns an iterator over all test accounts.

pub fn public(self) -> Public[src]

pub fn to_seed(self) -> String[src]

Trait Implementations

impl AsRef<[u8; 32]> for Keyring[src]

impl AsRef<Public> for Keyring[src]

impl Clone for Keyring[src]

impl Copy for Keyring[src]

impl Debug for Keyring[src]

impl Deref for Keyring[src]

type Target = [u8; 32]

The resulting type after dereferencing.

impl Display for Keyring[src]

impl Eq for Keyring[src]

impl From<Keyring> for &'static str[src]

impl From<Keyring> for MultiSigner[src]

impl From<Keyring> for AccountId32[src]

impl From<Keyring> for Public[src]

impl From<Keyring> for Pair[src]

impl From<Keyring> for [u8; 32][src]

impl From<Keyring> for H256[src]

impl From<Keyring> for &'static [u8; 32][src]

impl FromStr for Keyring[src]

type Err = ParseKeyringError

The associated error which can be returned from parsing.

impl Hash for Keyring[src]

impl IntoEnumIterator for Keyring[src]

type Iterator = KeyringIter

impl PartialEq<Keyring> for Keyring[src]

impl StructuralEq for Keyring[src]

impl StructuralPartialEq for Keyring[src]

Auto Trait Implementations

impl RefUnwindSafe for Keyring

impl Send for Keyring

impl Sync for Keyring

impl Unpin for Keyring

impl UnwindSafe for Keyring

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Error for T where
    T: 'static + Send + Debug + Display

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDisplay for T where
    T: Display
[src]

impl<T> MaybeFromStr for T where
    T: FromStr
[src]

impl<T> MaybeHash for T where
    T: Hash
[src]

impl<T> MaybeHash for T where
    T: Hash

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,