Skip to main content

hex_decode

Function hex_decode 

Source
pub fn hex_decode(s: &str) -> Option<[u8; 32]>
Expand description

Decodes a hex string into a 32-byte array.

Returns None if the input is not exactly 64 hex characters or contains invalid hex digits.