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

pub enum Ss58AddressFormat {
    PolkadotAccount,
    BareSr25519,
    KusamaAccount,
    BareEd25519,
    KatalChainAccount,
    PlasmAccount,
    BifrostAccount,
    EdgewareAccount,
    KaruraAccount,
    ReynoldsAccount,
    AcalaAccount,
    LaminarAccount,
    PolymathAccount,
    SubstraTeeAccount,
    TotemAccount,
    SynesthesiaAccount,
    KulupuAccount,
    DarkAccount,
    DarwiniaAccount,
    GeekAccount,
    StafiAccount,
    DockTestAccount,
    DockMainAccount,
    ShiftNrg,
    ZeroAccount,
    AlphavilleAccount,
    JupiterAccount,
    PatractAccount,
    SubsocialAccount,
    DhiwayAccount,
    PhalaAccount,
    LitentryAccount,
    RobonomicsAccount,
    DataHighwayAccount,
    AresAccount,
    ValiuAccount,
    CentrifugeAccount,
    NodleAccount,
    KiltAccount,
    PolimecAccount,
    SubstrateAccount,
    BareSecp256k1,
    ChainXAccount,
    UniartsAccount,
    Reserved46,
    Reserved47,
    AventusAccount,
    CrustAccount,
    Custom(u16),
}

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

Variants

PolkadotAccount

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

BareSr25519

Bare 32-bit Schnorr/Ristretto 25519 (S/R 25519) key.

KusamaAccount

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

BareEd25519

Bare 32-bit Edwards Ed25519 key.

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).

TotemAccount

Any Totem Live Accounting network standard account (*25519).

SynesthesiaAccount

Synesthesia mainnet, standard account (*25519).

KulupuAccount

Kulupu mainnet, standard account (*25519).

DarkAccount

Dark mainnet, standard account (*25519).

DarwiniaAccount

Darwinia Chain mainnet, standard account (*25519).

GeekAccount

GeekCash 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).

ZeroAccount

ZERO mainnet, standard account (*25519).

AlphavilleAccount

ZERO testnet, standard account (*25519).

JupiterAccount

Jupiter testnet, standard account (*25519).

PatractAccount

Patract mainnet, standard account (*25519).

SubsocialAccount

Subsocial network, standard account (*25519).

DhiwayAccount

Dhiway CORD network, standard account (*25519).

PhalaAccount

Phala Network, standard account (*25519).

LitentryAccount

Litentry Network, standard account (*25519).

RobonomicsAccount

Any Robonomics network standard account (*25519).

DataHighwayAccount

DataHighway mainnet, standard account (*25519).

AresAccount

Ares Protocol, standard account (*25519).

ValiuAccount

Valiu Liquidity Network mainnet, standard account (*25519).

CentrifugeAccount

Centrifuge Chain mainnet, standard account (*25519).

NodleAccount

Nodle Chain mainnet, standard account (*25519).

KiltAccount

KILT Chain mainnet, standard account (*25519).

PolimecAccount

Polimec Chain mainnet, standard account (*25519).

SubstrateAccount

Any Substrate network, standard account (*25519).

BareSecp256k1

Bare ECDSA SECP256k1 key.

ChainXAccount

ChainX mainnet, standard account (*25519).

UniartsAccount

UniArts Chain mainnet, standard account (*25519).

Reserved46

Reserved for future use (46).

Reserved47

Reserved for future use (47).

AventusAccount

Aventus Chain mainnet, standard account (*25519).

CrustAccount

Crust Network, standard account (*25519).

Custom(u16)

Use a manually provided numeric value as a standard identifier

Implementations

impl Ss58AddressFormat[src]

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

names of all address formats

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[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 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<u16> 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> DynClone for T where
    T: Clone
[src]

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

impl<T> Instrument for T[src]

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

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

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

Get a reference to the inner from the outer.

pub 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

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> 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>,