pub fn hex_to_bytes(hex: &str) -> Vec<u8> ⓘ
Convert a "0xabcd" hex string to raw bytes [0xab, 0xcd].
"0xabcd"
[0xab, 0xcd]
The "0x" prefix is optional; an empty string returns an empty Vec.
"0x"
Vec