[][src]Enum sp_core::crypto::Ss58AddressFormat

pub enum Ss58AddressFormat {
    SubstrateAccountDirect,
    PolkadotAccountDirect,
    KusamaAccountDirect,
    DothereumAccountDirect,
    KulupuAccountDirect,
    EdgewareAccountDirect,
    CentrifugeAccountDirect,
    SubstraTeeAccountDirect,
    Custom(u8),
}

A known address (sub)format/network ID for SS58.

Variants

SubstrateAccountDirect

Any Substrate network, direct checksum, standard account (*25519).

PolkadotAccountDirect

Polkadot Relay-chain, direct checksum, standard account (*25519).

KusamaAccountDirect

Kusama Relay-chain, direct checksum, standard account (*25519).

DothereumAccountDirect

Dothereum Para-chain, direct checksum, standard account (*25519).

KulupuAccountDirect

Kulupu mainnet, direct checksum, standard account (*25519).

EdgewareAccountDirect

Edgeware mainnet, direct checksum, standard account (*25519).

CentrifugeAccountDirect

Centrifuge Chain mainnet, direct checksum, standard account (*25519).

SubstraTeeAccountDirect

Any SubstraTEE off-chain network private account, direct checksum, standard account (*25519).

Custom(u8)

Use a manually provided numeric value.

Methods

impl Ss58AddressFormat[src]

pub fn all() -> &'static [Ss58AddressFormat][src]

All known address formats.

pub fn is_custom(&self) -> bool[src]

Whether the address is custom.

Trait Implementations

impl Clone for Ss58AddressFormat[src]

impl Copy for Ss58AddressFormat[src]

impl Default for Ss58AddressFormat[src]

impl Eq for Ss58AddressFormat[src]

impl From<Ss58AddressFormat> for u8[src]

impl From<Ss58AddressFormat> for String[src]

impl PartialEq<Ss58AddressFormat> for Ss58AddressFormat[src]

impl StructuralEq for Ss58AddressFormat[src]

impl StructuralPartialEq for Ss58AddressFormat[src]

impl<'a> TryFrom<&'a str> for Ss58AddressFormat[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<u8> for Ss58AddressFormat[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> InitializableFromZeroed for T where
    T: Default

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) -> &T[src]

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,