Converts the hexadecimal string, which can be prefixed with 0x, to a byte sequence.
List<int> hexToBytes(String hexStr) { return hex.decode(strip0xHex(hexStr)); }