Skip to main content

Module hex

Module hex 

Source
Expand description

Lowercase hexadecimal encoding for 32-byte digests.

Used internally by the manifest format (CACHE-011) and the sharded entry layout (CACHE-010). Output is always 64 ASCII characters in [0-9a-f].

Enums§

HexError
Failure modes for decode_32.

Functions§

decode_32
Decode 64 lowercase or uppercase hex characters into a 32-byte digest.
encode_32
Encode a 32-byte digest as 64 lowercase hex characters.