Module emerald_rs::keystore [] [src]

Structs

CoreCrypto
HdwalletCrypto

Keyfile for HD Wallet

Iv
KeyFile

A keystore file (account private core encrypted with a passphrase)

Mac
Salt
SerializableKeyFileCore

A serializable keystore file (UTC / JSON format)

SerializableKeyFileHD

A serializable keystore file (UTC / JSON format)

Enums

Cipher

Cipher type

CryptoType

Variants of crypto section in Keyfile

Error

Keystore file errors

Kdf

Key derivation function

KdfDepthLevel

Security level for Kdf

Prf

Pseudo-Random Functions (PRFs)

SerializeError

Keystore file serialize errors

Constants

CIPHER_IV_BYTES

Cipher initialization vector length in bytes

KDF_SALT_BYTES

Key derivation function salt length in bytes

PBKDF2_KDF_NAME

PBKDF2 key derivation function name

Functions

decode_str

Decode string for JSON deserialization

os_random

Create random number generator

try_extract_address

Try to extract Address from JSON formatted text