Trait Base58

Source
pub trait Base58 {
    // Required method
    fn base58_to_u32(&self) -> Result<u32, Base58Error>;
}
Expand description

A trait which adds Base58 parsing capabilities to strings. The alphabet used is “123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ”.

Required Methods§

Source

fn base58_to_u32(&self) -> Result<u32, Base58Error>

Parse this string as Base58 encoded uid. Returns an error if a character is found, that is not part of the used alphabet.

Implementations on Foreign Types§

Source§

impl Base58 for str

Source§

impl Base58 for String

Implementors§