Function multibase::decode

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

Decode the base string.

Examples

use multibase::{Base, decode};

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