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())
);