pub fn encode<T>(base: Base, input: T) -> Stringwhere T: AsRef<[u8]>,
Encode with the given byte slice to base string.
use multibase::{Base, encode}; assert_eq!(encode(Base::Base58Btc, b"hello"), "zCn8eVZg");