[][src]Trait sp_core::crypto::Ss58Codec

pub trait Ss58Codec: Sized + AsMut<[u8]> + AsRef<[u8]> + Default {
    pub fn from_ss58check(s: &str) -> Result<Self, PublicError> { ... }
pub fn from_ss58check_with_version(
        s: &str
    ) -> Result<(Self, Ss58AddressFormat), PublicError> { ... }
pub fn from_string(s: &str) -> Result<Self, PublicError> { ... }
pub fn to_ss58check_with_version(
        &self,
        version: Ss58AddressFormat
    ) -> String { ... }
pub fn to_ss58check(&self) -> String { ... }
pub fn from_string_with_version(
        s: &str
    ) -> Result<(Self, Ss58AddressFormat), PublicError> { ... } }

Key that can be encoded to/from SS58.

Provided methods

pub fn from_ss58check(s: &str) -> Result<Self, PublicError>[src]

Some if the string is a properly encoded SS58Check address.

pub fn from_ss58check_with_version(
    s: &str
) -> Result<(Self, Ss58AddressFormat), PublicError>
[src]

Some if the string is a properly encoded SS58Check address.

pub fn from_string(s: &str) -> Result<Self, PublicError>[src]

Some if the string is a properly encoded SS58Check address, optionally with a derivation path following.

pub fn to_ss58check_with_version(&self, version: Ss58AddressFormat) -> String[src]

Return the ss58-check string for this key.

pub fn to_ss58check(&self) -> String[src]

Return the ss58-check string for this key.

pub fn from_string_with_version(
    s: &str
) -> Result<(Self, Ss58AddressFormat), PublicError>
[src]

Some if the string is a properly encoded SS58Check address, optionally with a derivation path following.

Loading content...

Implementors

impl Ss58Codec for AccountId32[src]

impl<T: Sized + AsMut<[u8]> + AsRef<[u8]> + Default + Derive> Ss58Codec for T[src]

Loading content...