[][src]Function multibase::decode

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

Decode the string.

Examples

use multibase::{Base, decode};

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