fn decode_hex(hex: &[u8]) -> Option<Vec<u8>>Expand description
Decodes hex, or returns None if it isn’t an even number of hex digits.
Blocks are mostly proofs and ciphertexts, so their hex digits are unpredictable. Comparing
each digit against the digit ranges, like the hex crate does, mispredicts a branch for many
of them, which makes decoding a block several times slower than looking the digits up.