# Packages

Package hexutil implements hex encoding with 0x prefix.
Package math provides integer math utilities.

# Functions

BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
CopyBytes returns an exact copy of the provided bytes.
FromHex returns the bytes represented by the hexadecimal string s.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
LeftPadBytes zero-pads slice to the left up to length l.
RightPadBytes zero-pads slice to the right up to length l.
ToHex returns the hex representation of b, prefixed with '0x'.

# Constants

Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.

# Variables

Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.

# Type aliases

Address represents the 20 byte address of an Ethereum account.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
StorageSize is a wrapper around a float value that supports user friendly formatting.