Ethereum keys management supporting keystores in formats used by geth, parity and pyethereum.
Add this to your Cargo.toml
:
[dependencies]
ethkey = "0.2"
``` use ethkey::prelude::*; fn main() { let key = EthAccount::loadorgenerate("/path/to/keystore", &"passwd".into()) .expect("should load or generate new eth key");
println!("{:?}", key.address())
} ```