[][src]Module emerald_rs::util

Constants

KECCAK256_BYTES

Keccak-256 crypto hash length in bytes

Traits

ToHex

Convert self into hex string

Functions

align_bytes

Padding high bytes with O to fit len bytes

bytes_count

Counts bytes required to hold x value

keccak256

Calculate Keccak-256 crypto hash

timestamp

Time stamp in format yyy-mm-ddThh-mm-ss

to_16bytes
to_20bytes
to_32bytes
to_arr

Convert a slice into array

to_bytes

Converts unsigned value to byte array

to_chain_id

Get chain id by chain name

to_chain_name

Get chain name by chain id

to_even_str

Padding hex string with O to get even length

to_u64

Convert byte array into u64

trim_bytes

Trim all high zero bytes

trim_hex

Trix hex prefix 0x