Trait bs58::FromBase58
[−]
[src]
pub trait FromBase58 { fn from_base58(&self) -> Result<Vec<u8>, FromBase58Error>; fn from_base58_with_alphabet(&self,
alpha: &[u8; 58])
-> Result<Vec<u8>, FromBase58Error>; }
A trait for decoding Base58 encoded values to a vector of bytes.
Required Methods
fn from_base58(&self) -> Result<Vec<u8>, FromBase58Error>
Decode self
to a vector of bytes using the default alphabet.
fn from_base58_with_alphabet(&self,
alpha: &[u8; 58])
-> Result<Vec<u8>, FromBase58Error>
alpha: &[u8; 58])
-> Result<Vec<u8>, FromBase58Error>
Decode self
to a vector of bytes using the given alphabet.
Implementors
impl FromBase58 for str