pub fn decode_32_bytes_from_string(val: &str) -> Result<[u8; 32], &'static str>