Function zbase32::decode_full_bytes_str [] [src]

pub fn decode_full_bytes_str(zbase32: &str) -> Result<Vec<u8>, &'static str>

Decode given zbase32 encoded string

Just like decode_str but doesn't allow decoding with bit precision.

use zbase32;

assert_eq!(zbase32::decode_full_bytes_str("qb1ze3m1").unwrap(), b"peter");