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

pub enum Ss58AddressFormat {
    PolkadotAccount,
    Reserved1,
    KusamaAccount,
    Reserved3,
    KatalChainAccount,
    PlasmAccount,
    BifrostAccount,
    EdgewareAccount,
    KaruraAccount,
    ReynoldsAccount,
    AcalaAccount,
    LaminarAccount,
    PolymathAccount,
    SubstraTeeAccount,
    KulupuAccount,
    DarkAccount,
    DarwiniaAccount,
    StafiAccount,
    DockTestAccount,
    DockMainAccount,
    ShiftNrg,
    SubsocialAccount,
    PhalaAccount,
    RobonomicsAccount,
    DataHighwayAccount,
    CentrifugeAccount,
    SubstrateAccount,
    Reserved43,
    ChainXAccount,
    Reserved46,
    Reserved47,
    Custom(u8),
}

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

Variants

PolkadotAccount

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

Reserved1

Reserved for future use (1).

KusamaAccount

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

Reserved3

Reserved for future use (3).

KatalChainAccount

Katal Chain, standard account (*25519).

PlasmAccount

Plasm Network, standard account (*25519).

BifrostAccount

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

EdgewareAccount

Edgeware mainnet, standard account (*25519).

KaruraAccount

Acala Karura canary network, standard account (*25519).

ReynoldsAccount

Laminar Reynolds canary network, standard account (*25519).

AcalaAccount

Acala mainnet, standard account (*25519).

LaminarAccount

Laminar mainnet, standard account (*25519).

PolymathAccount

Polymath network, standard account (*25519).

SubstraTeeAccount

Any SubstraTEE off-chain network private account (*25519).

KulupuAccount

Kulupu mainnet, standard account (*25519).

DarkAccount

Dark mainnet, standard account (*25519).

DarwiniaAccount

Darwinia Chain mainnet, standard account (*25519).

StafiAccount

Stafi mainnet, standard account (*25519).

DockTestAccount

Dock testnet, standard account (*25519).

DockMainAccount

Dock mainnet, standard account (*25519).

ShiftNrg

ShiftNrg mainnet, standard account (*25519).

SubsocialAccount

Subsocial network, standard account (*25519).

PhalaAccount

Phala Network, standard account (*25519).

RobonomicsAccount

Any Robonomics network standard account (*25519).

DataHighwayAccount

DataHighway mainnet, standard account (*25519).

CentrifugeAccount

Centrifuge Chain mainnet, standard account (*25519).

SubstrateAccount

Any Substrate network, standard account (*25519).

Reserved43

Reserved for future use (43).

ChainXAccount

ChainX mainnet, standard account (*25519).

Reserved46

Reserved for future use (46).

Reserved47

Reserved for future use (47).

Custom(u8)

Use a manually provided numeric value.

Implementations

impl Ss58AddressFormat[src]

pub fn all_names() -> &'static [&'static str][src]

names of all address formats

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 Debug for Ss58AddressFormat[src]

impl Default for Ss58AddressFormat[src]

impl Display for Ss58AddressFormat[src]

impl Eq for Ss58AddressFormat[src]

impl From<Ss58AddressFormat> for u8[src]

impl From<Ss58AddressFormat> for String[src]

impl FromStr for Ss58AddressFormat[src]

type Err = ParseError

The associated error which can be returned from parsing.

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 = ParseError

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

impl RefUnwindSafe for Ss58AddressFormat

impl Send for Ss58AddressFormat

impl Sync for Ss58AddressFormat

impl Unpin for Ss58AddressFormat

impl UnwindSafe for Ss58AddressFormat

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> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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) -> &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> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

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

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