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