Enum sp_core::crypto::Ss58AddressFormat
source · [−]pub enum Ss58AddressFormat {
Show 49 variants
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),
}
Expand description
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
sourceimpl Ss58AddressFormat
impl Ss58AddressFormat
sourcepub fn all_names() -> &'static [&'static str]
pub fn all_names() -> &'static [&'static str]
names of all address formats
sourcepub fn all() -> &'static [Ss58AddressFormat]
pub fn all() -> &'static [Ss58AddressFormat]
All known address formats.
Trait Implementations
sourceimpl Clone for Ss58AddressFormat
impl Clone for Ss58AddressFormat
sourcefn clone(&self) -> Ss58AddressFormat
fn clone(&self) -> Ss58AddressFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Ss58AddressFormat
impl Debug for Ss58AddressFormat
sourceimpl Default for Ss58AddressFormat
impl Default for Ss58AddressFormat
sourceimpl Display for Ss58AddressFormat
impl Display for Ss58AddressFormat
sourceimpl From<Ss58AddressFormat> for u16
impl From<Ss58AddressFormat> for u16
sourcefn from(x: Ss58AddressFormat) -> u16
fn from(x: Ss58AddressFormat) -> u16
Performs the conversion.
sourceimpl From<Ss58AddressFormat> for String
impl From<Ss58AddressFormat> for String
sourcefn from(x: Ss58AddressFormat) -> String
fn from(x: Ss58AddressFormat) -> String
Performs the conversion.
sourceimpl FromStr for Ss58AddressFormat
impl FromStr for Ss58AddressFormat
sourceimpl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
impl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
sourcefn eq(&self, other: &Ss58AddressFormat) -> bool
fn eq(&self, other: &Ss58AddressFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Ss58AddressFormat) -> bool
fn ne(&self, other: &Ss58AddressFormat) -> bool
This method tests for !=
.
sourceimpl<'a> TryFrom<&'a str> for Ss58AddressFormat
impl<'a> TryFrom<&'a str> for Ss58AddressFormat
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourceimpl TryFrom<u16> for Ss58AddressFormat
impl TryFrom<u16> for Ss58AddressFormat
sourceimpl TryFrom<u8> for Ss58AddressFormat
impl TryFrom<u8> for Ss58AddressFormat
impl Copy for Ss58AddressFormat
impl Eq for Ss58AddressFormat
impl StructuralEq for Ss58AddressFormat
impl StructuralPartialEq for Ss58AddressFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcefn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to unchecked_from
.