Skip to main content

decode_32

Function decode_32 

Source
pub fn decode_32(s: &str) -> Result<[u8; 32], HexError>
Expand description

Decode 64 lowercase or uppercase hex characters into a 32-byte digest.

ยงErrors

Returns HexError::InvalidLength when the input is not 64 ASCII bytes long, HexError::InvalidByte when any character is outside [0-9A-Fa-f].