ethereum.forks.dao_fork.utils.hexadecimalethereum.forks.tangerine_whistle.utils.hexadecimal
Utility Functions For Hexadecimal Strings.
.. contents:: Table of Contents :backlinks: none :local:
Introduction
Hexadecimal utility functions used in this specification, specific to Dao ForkHexadecimal utility functions used in this specification, specific to
types.Tangerine Whistle types.
hex_to_root ¶
Convert hex string to trie root.
Parameters
hex_string : The hexadecimal string to be converted to trie root.
Returns
root : Root
Trie root obtained from the given hexadecimal string.
hex_to_address ¶
Convert hex string to Address (20 bytes).
Parameters
hex_string : The hexadecimal string to be converted to Address.
Returns
address : Address
The address obtained from the given hexadecimal string.