pub fn encode<T: AsRef<[u8]>>(base: Base, input: T) -> String
Expand description

Encode with the given byte slice to base string.

Examples

use multibase::{Base, encode};

assert_eq!(encode(Base::Base58Btc, b"hello"), "zCn8eVZg");