pub fn from_hex(s: &str) -> Vec<u8> ⓘExpand description
Decode a hex string into bytes with the lenient semantics of Node’s
Buffer.from(hex, "hex") (the EdDSA private-key encoding):
parse byte pairs left-to-right, stop at the first invalid hex character, and
drop a trailing odd nibble. No 0x stripping - Buffer.from does not strip it
either (it would stop at the x).