Skip to main content

Module hex_data

Module hex_data 

Source
Expand description

Deserializes hex-encoded inputs such as the one required for the submitblock RPC method.

Structs§

HexData
Deserialize hex-encoded strings to bytes.

Constants§

HEX_DIGITS 🔒
The value of each ASCII hex digit, and INVALID_HEX_DIGIT for every other byte.
INVALID_HEX_DIGIT 🔒
The entry in HEX_DIGITS for a byte that isn’t a hex digit.

Functions§

decode_hex 🔒
Decodes hex, or returns None if it isn’t an even number of hex digits.