cfxstore/lib.rs
1// Copyright 2015-2019 Parity Technologies (UK) Ltd.
2// This file is part of Parity Ethereum.
3
4// Parity Ethereum is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Parity Ethereum is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
16
17//! Ethereum key-management.
18
19#![warn(missing_docs)]
20
21pub use parity_wordlist::random_phrase;
22
23mod account;
24pub mod accounts_dir;
25pub mod cfxkey;
26mod cfxstore;
27mod error;
28mod import;
29mod json;
30mod presale;
31mod random;
32mod secret_store;
33
34pub use self::{
35 account::{Crypto, SafeAccount},
36 cfxstore::{CfxMultiStore, CfxStore},
37 error::Error,
38 import::{import_account, import_accounts, read_geth_accounts},
39 json::OpaqueKeyFile as KeyFile,
40 presale::PresaleWallet,
41 random::random_string,
42 secret_store::{
43 Derivation, IndexDerivation, SecretStore, SecretVaultRef,
44 SimpleSecretStore, StoreAccountRef,
45 },
46};
47
48/// An opaque wrapper for secret.
49pub struct OpaqueSecret(::cfxkey::Secret);