2017-01-25 18:51:41 +01:00
|
|
|
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
|
2016-06-20 10:06:49 +02:00
|
|
|
// This file is part of Parity.
|
|
|
|
|
|
|
|
// Parity is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// Parity is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2017-03-23 13:23:03 +01:00
|
|
|
//! Ethereum key-management.
|
|
|
|
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
2017-04-01 08:26:44 +02:00
|
|
|
extern crate crypto as rcrypto;
|
2016-08-10 17:57:40 +02:00
|
|
|
extern crate itertools;
|
2017-04-01 08:26:44 +02:00
|
|
|
extern crate libc;
|
|
|
|
extern crate parking_lot;
|
2016-06-20 00:10:34 +02:00
|
|
|
extern crate rand;
|
2017-04-01 08:26:44 +02:00
|
|
|
extern crate rustc_serialize;
|
2016-06-20 00:10:34 +02:00
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_json;
|
2017-04-01 08:26:44 +02:00
|
|
|
extern crate smallvec;
|
|
|
|
extern crate time;
|
2016-06-20 00:10:34 +02:00
|
|
|
extern crate tiny_keccak;
|
2017-04-11 10:24:56 +02:00
|
|
|
extern crate tempdir;
|
2016-10-25 22:34:52 +02:00
|
|
|
|
2017-04-11 10:24:56 +02:00
|
|
|
extern crate ethcore_bigint as bigint;
|
2017-04-01 08:26:44 +02:00
|
|
|
extern crate ethcrypto as crypto;
|
|
|
|
extern crate ethkey as _ethkey;
|
|
|
|
extern crate parity_wordlist;
|
2016-06-20 00:10:34 +02:00
|
|
|
|
2016-12-20 16:34:53 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2016-10-25 22:34:52 +02:00
|
|
|
#[macro_use]
|
2017-02-13 16:38:47 +01:00
|
|
|
extern crate serde_derive;
|
2016-10-25 22:34:52 +02:00
|
|
|
|
2016-06-20 00:10:34 +02:00
|
|
|
pub mod dir;
|
|
|
|
pub mod ethkey;
|
|
|
|
|
|
|
|
mod account;
|
|
|
|
mod json;
|
|
|
|
|
|
|
|
mod error;
|
|
|
|
mod ethstore;
|
|
|
|
mod import;
|
2016-06-21 14:42:27 +02:00
|
|
|
mod presale;
|
2016-06-20 00:10:34 +02:00
|
|
|
mod random;
|
|
|
|
mod secret_store;
|
|
|
|
|
2017-04-11 10:24:56 +02:00
|
|
|
pub use self::account::{SafeAccount, Crypto};
|
2016-06-20 00:10:34 +02:00
|
|
|
pub use self::error::Error;
|
2016-11-30 15:08:38 +01:00
|
|
|
pub use self::ethstore::{EthStore, EthMultiStore};
|
2016-08-11 18:31:28 +02:00
|
|
|
pub use self::import::{import_accounts, read_geth_accounts};
|
2017-03-23 13:23:03 +01:00
|
|
|
pub use self::json::OpaqueKeyFile as KeyFile;
|
2016-06-21 14:42:27 +02:00
|
|
|
pub use self::presale::PresaleWallet;
|
2017-02-15 16:56:15 +01:00
|
|
|
pub use self::secret_store::{
|
|
|
|
SecretVaultRef, StoreAccountRef, SimpleSecretStore, SecretStore,
|
|
|
|
Derivation, IndexDerivation,
|
|
|
|
};
|
2017-04-01 08:26:44 +02:00
|
|
|
pub use self::random::random_string;
|
|
|
|
pub use self::parity_wordlist::random_phrase;
|