ethkey 0.2.5

Ethereum keys management supporting keystores, signing and verification
Documentation

EthKey

Ethereum keys management supporting keystores in formats used by geth, parity and pyethereum.

Features

  • random key pair generation
  • key serialization/deserialization
  • keystore password change
  • signing and verification

Usage

Add this to your Cargo.toml:

[dependencies]
ethkey = "0.2"

Example

(Rust edition 2018)

use ethkey::prelude::*;
fn main() {
    let key = EthAccount::load_or_generate("/path/to/keystore", "passwd")
        .expect("should load or generate new eth key");

    println!("{:?}", key.address())
}