2019-01-07 11:33:07 +01:00
|
|
|
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of Parity Ethereum.
|
2017-07-14 20:40:28 +02:00
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is free software: you can redistribute it and/or modify
|
2017-07-14 20:40:28 +02:00
|
|
|
// 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.
|
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is distributed in the hope that it will be useful,
|
2017-07-14 20:40:28 +02:00
|
|
|
// 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
|
2019-01-07 11:33:07 +01:00
|
|
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
2017-07-14 20:40:28 +02:00
|
|
|
|
|
|
|
//! Whisper P2P messaging system as a DevP2P subprotocol, with RPC and Rust
|
|
|
|
//! interface.
|
|
|
|
|
2019-03-19 23:17:05 +01:00
|
|
|
#![cfg_attr(feature = "time_checked_add", feature(time_checked_add))]
|
|
|
|
|
2017-07-14 20:40:28 +02:00
|
|
|
extern crate byteorder;
|
|
|
|
extern crate ethcore_network as network;
|
2018-01-10 13:35:18 +01:00
|
|
|
extern crate ethereum_types;
|
2017-07-14 20:40:28 +02:00
|
|
|
extern crate ethkey;
|
|
|
|
extern crate hex;
|
2019-06-19 13:54:05 +02:00
|
|
|
extern crate parity_util_mem;
|
2017-07-14 20:40:28 +02:00
|
|
|
extern crate ordered_float;
|
|
|
|
extern crate parking_lot;
|
|
|
|
extern crate rand;
|
2019-06-03 15:36:21 +02:00
|
|
|
extern crate rand_xorshift;
|
2019-05-13 11:25:56 +02:00
|
|
|
extern crate ring;
|
2017-07-14 20:40:28 +02:00
|
|
|
extern crate rlp;
|
|
|
|
extern crate serde;
|
|
|
|
extern crate slab;
|
|
|
|
extern crate smallvec;
|
|
|
|
extern crate tiny_keccak;
|
|
|
|
|
|
|
|
extern crate jsonrpc_core;
|
2019-02-05 14:31:19 +01:00
|
|
|
extern crate jsonrpc_derive;
|
2017-07-14 20:40:28 +02:00
|
|
|
extern crate jsonrpc_pubsub;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate bitflags;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
2019-03-19 23:17:05 +01:00
|
|
|
#[cfg(not(time_checked_add))]
|
|
|
|
extern crate time_utils;
|
|
|
|
|
2017-10-05 12:35:01 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate serde_json;
|
|
|
|
|
2017-07-14 20:40:28 +02:00
|
|
|
pub use self::message::Message;
|
|
|
|
pub use self::net::{Network, MessageHandler};
|
|
|
|
|
|
|
|
pub mod message;
|
|
|
|
pub mod net;
|
|
|
|
pub mod rpc;
|
2019-05-13 11:25:56 +02:00
|
|
|
|
|
|
|
mod aes_gcm;
|