Skip to main content

decode

Function decode 

Source
pub fn decode<T: AsRef<str>>(input: T, strict: bool) -> Result<(Base, Vec<u8>)>
Expand description

Decode the base string.

§Examples

use multi_base::{Base, decode};

assert_eq!(
    decode("zCn8eVZg", true).unwrap(),
    (Base::Base58Btc, b"hello".to_vec())
);

§Errors

Returns an error if: