Base58Conversions

Trait Base58Conversions 

Source
pub trait Base58Conversions {
    // Required methods
    fn to_base58(&self) -> String;
    fn from_base58(s: &str) -> Result<Self, IndexerError>
       where Self: Sized;
    fn to_bytes(&self) -> [u8; 32];
    fn from_bytes(bytes: &[u8]) -> Result<Self, IndexerError>
       where Self: Sized;
}

Required Methods§

Source

fn to_base58(&self) -> String

Source

fn from_base58(s: &str) -> Result<Self, IndexerError>
where Self: Sized,

Source

fn to_bytes(&self) -> [u8; 32]

Source

fn from_bytes(bytes: &[u8]) -> Result<Self, IndexerError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl Base58Conversions for [u8; 32]

Implementors§