Skip to main content

Module hex

Module hex 

Source
Expand description

Hex encoding/decoding built on the SIMD-accelerated faster-hex crate, a drop-in replacement for the hex crate: import this module and hex::encode/hex::decode call sites keep working. See benchmark results in https://github.com/ChainSafe/forest/pull/7395.

Modules§

serde
Usage: #[serde(with = "crate::utils::encoding::hex::serde")], a drop-in replacement for hex::serde: lower-case, no prefix.

Structs§

DecodeError

Functions§

decode
Decodes hex digits (upper, lower or mixed case, no 0x prefix) into bytes.
encode
Lower-case hex encoding, without prefix.
encode_prefixed
Lower-case hex encoding with a 0x prefix.