Function casper_types::checksummed_hex::decode
source ·
[−]Expand description
Decodes a mixed-case hexadecimal string, verifying that it conforms to the checksum scheme similar to scheme in EIP-55.
Key differences:
- Works on any length of (decoded) data up to
SMALL_BYTES_COUNT
, not just 20-byte addresses - Uses Blake2b hashes rather than Keccak
- Uses hash bits rather than nibbles
For backward compatibility: if the hex string is all uppercase or all lowercase, the check is skipped.