1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! A simple library to read JSON keyfiles and sign Ethereum stuff.

#![warn(missing_docs)]

mod ec;
mod error;
mod key;
mod protected;

// Use `parity-crypto` by default
#[cfg(not(feature = "pure-rust"))]
use parity_crypto as crypto;

// Switch to pure Rust drop-in replacement `ethsign-crypto`
#[cfg(feature = "pure-rust")]
use ethsign_crypto as crypto;

pub mod keyfile;

pub use self::error::Error;
pub use self::key::{PublicKey, SecretKey, Signature};
pub use self::protected::Protected;