EthWallet (eth_wallet v0.0.4)

Documentation for EthWallet.

Link to this section Summary

Functions

decrypt key with password.

encrypt key with password.

generate keys with/without privkey.

iex> EthWallet.generate_keys(<<21, ..., 166>>)

Link to this section Functions

Link to this function

decrypt_key(payload, password)

decrypt key with password.

## Examples

iex> EthWallet.decrypt_key(payload, "bbc")

"ddd"

Link to this function

encrypt_key(encrypted_key, password)

encrypt key with password.

## Examples

iex> EthWallet.encrypt_key("ddd", "abc")

<<40, 28, 220, 122, 235, 180, 216, 145, 142, 171, 53, 146, 25, 136, 47, 215>>

Link to this function

generate_keys()

generate keys with/without privkey.

## Examples

iex> EthWallet.generate_keys()

%{

addr: "0xd705f740d934acfb27df7bf71aadc00f20d03c7a",
priv: <<21, ..., 166>>,
pub: <<4, ..., 165, ...>>

}

Link to this function

generate_keys(priv)

Specs

generate_keys(Binary.t()) :: Map.t()

iex> EthWallet.generate_keys(<<21, ..., 166>>)

%{

addr: "0xd705f740d934acfb27df7bf71aadc00f20d03c7a",
priv: <<21, ..., 166, ...>>,
pub: <<4, ..., 165, ...>>

}