pub fn parse_nonce(hex_str: &str) -> Result<Nonce, String>
Utility function to parse a nonce (i.e. a blake2b-256 hash digest) from an hex-encoded string.