Enum sp_keyring::sr25519::Keyring
source · pub enum Keyring {
Show 14 variants
Alice,
Bob,
Charlie,
Dave,
Eve,
Ferdie,
AliceStash,
BobStash,
CharlieStash,
DaveStash,
EveStash,
FerdieStash,
One,
Two,
}
Expand description
Set of test accounts.
Variants§
Alice
Bob
Charlie
Dave
Eve
Ferdie
AliceStash
BobStash
CharlieStash
DaveStash
EveStash
FerdieStash
One
Two
Implementations§
source§impl Keyring
impl Keyring
pub fn from_public(who: &Public) -> Option<Keyring>
pub fn from_account_id(who: &AccountId32) -> Option<Keyring>
pub fn from_raw_public(who: [u8; 32]) -> Option<Keyring>
pub fn to_raw_public(self) -> [u8; 32]
pub fn from_h256_public(who: H256) -> Option<Keyring>
pub fn to_h256_public(self) -> H256
pub fn to_raw_public_vec(self) -> Vec<u8> ⓘ
pub fn to_account_id(self) -> AccountId32
pub fn sign(self, msg: &[u8]) -> Signature
pub fn pair(self) -> Pair
pub fn public(self) -> Public
pub fn to_seed(self) -> String
sourcepub fn numeric_id(idx: usize) -> AccountId32
pub fn numeric_id(idx: usize) -> AccountId32
Get account id of a numeric
account.
Trait Implementations§
source§impl From<Keyring> for AccountId32
impl From<Keyring> for AccountId32
source§impl From<Keyring> for MultiSigner
impl From<Keyring> for MultiSigner
source§impl IntoEnumIterator for Keyring
impl IntoEnumIterator for Keyring
type Iterator = KeyringIter
fn iter() -> KeyringIter ⓘ
source§impl Ord for Keyring
impl Ord for Keyring
source§impl PartialEq for Keyring
impl PartialEq for Keyring
source§impl PartialOrd for Keyring
impl PartialOrd for Keyring
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Keyring
impl Eq for Keyring
impl StructuralPartialEq for Keyring
Auto Trait Implementations§
impl Freeze for Keyring
impl RefUnwindSafe for Keyring
impl Send for Keyring
impl Sync for Keyring
impl Unpin for Keyring
impl UnwindSafe for Keyring
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.