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 forhex::serde: lower-case, no prefix.
Structs§
Functions§
- decode
- Decodes hex digits (upper, lower or mixed case, no
0xprefix) into bytes. - encode
- Lower-case hex encoding, without prefix.
- encode_
prefixed - Lower-case hex encoding with a
0xprefix.