[−][src]Crate webchain_rs
Re-exports
pub use self::rpc::start; |
Modules
| keystore | Keystore files (UTC / JSON) encrypted with a passphrase module |
| mnemonic | Module to work with mnemonic codes |
| rpc | JSON RPC module |
| storage | Storage for |
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 |
| 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 |
| WriteRLP | The |
Functions
| align_bytes | Padding high bytes with |
| bytes_count | Counts bytes required to hold |
| keccak256 | Calculate Keccak-256 crypto hash |
| timestamp | Time stamp in format |
| to_16bytes | |
| to_20bytes | |
| to_32bytes | |
| to_arr | Convert a slice into array |
| to_bytes | Converts |
| 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 |
| to_u64 | Convert byte array into |
| trim_bytes | Trim all high zero bytes |
| trim_hex | Trix hex prefix |
| version | Get the current Emerald version. |