Crate emerald_core [] [src]

Reexports

pub use self::rpc::start;

Modules

addressbook
contract
keystore
rpc
storage

Structs

Address

Account address (20 bytes)

PrivateKey

Private key used as x in an ECDSA signature

RLPList

A list serializable to RLP

Signature

Transaction sign data (see Appendix F. "Signing Transactions" from Yellow Paper)

Transaction

Transaction data

Enums

Error

Core domain logic errors

Constants

ADDRESS_BYTES

Fixed bytes number to represent Address

ECDSA_SIGNATURE_BYTES

ECDSA crypto signature length in bytes

KECCAK256_BYTES

Keccak-256 crypto hash length in bytes

PRIVATE_KEY_BYTES

Private key length in bytes

Traits

ToHex

Convert self into hex string

WriteRLP

The WriteRLP trait is used to specify functionality of serializing data to RLP bytes

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_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

version

Get the current Emerald version.