2017-01-25 18:51:41 +01:00
|
|
|
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
|
2016-02-05 13:40:41 +01: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/>.
|
|
|
|
|
2016-01-19 17:02:01 +01:00
|
|
|
#![warn(missing_docs)]
|
2016-02-10 12:50:27 +01:00
|
|
|
|
2016-01-17 13:11:25 +01:00
|
|
|
//! Ethcore-util library
|
|
|
|
//!
|
|
|
|
//! ### Rust version:
|
|
|
|
//! - nightly
|
|
|
|
//!
|
|
|
|
//! ### Supported platforms:
|
|
|
|
//! - OSX
|
|
|
|
//! - Linux
|
|
|
|
//!
|
2016-02-01 14:48:38 +01:00
|
|
|
//! ### Building:
|
2016-01-17 13:11:25 +01:00
|
|
|
//!
|
2016-02-01 14:48:38 +01:00
|
|
|
//! - Ubuntu 14.04 and later:
|
2016-01-17 13:11:25 +01:00
|
|
|
//!
|
2016-02-01 14:48:38 +01:00
|
|
|
//! ```bash
|
|
|
|
//! # install rocksdb
|
|
|
|
//! add-apt-repository "deb http://ppa.launchpad.net/giskou/librocksdb/ubuntu trusty main"
|
|
|
|
//! apt-get update
|
|
|
|
//! apt-get install -y --force-yes librocksdb
|
|
|
|
//!
|
|
|
|
//! # install multirust
|
|
|
|
//! curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes
|
|
|
|
//!
|
|
|
|
//! # install nightly and make it default
|
|
|
|
//! multirust update nightly && multirust default nightly
|
|
|
|
//!
|
|
|
|
//! # export rust LIBRARY_PATH
|
|
|
|
//! export LIBRARY_PATH=/usr/local/lib
|
|
|
|
//!
|
|
|
|
//! # download and build parity
|
2017-03-29 15:17:27 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity
|
2016-02-01 14:48:38 +01:00
|
|
|
//! cd parity
|
|
|
|
//! cargo build --release
|
|
|
|
//! ```
|
2016-02-09 16:47:21 +01:00
|
|
|
//!
|
2016-01-17 13:11:25 +01:00
|
|
|
//! - OSX:
|
|
|
|
//!
|
|
|
|
//! ```bash
|
2016-02-01 14:48:38 +01:00
|
|
|
//! # install rocksdb && multirust
|
|
|
|
//! brew update
|
2016-01-17 13:11:25 +01:00
|
|
|
//! brew install rocksdb
|
2016-02-01 14:48:38 +01:00
|
|
|
//! brew install multirust
|
2016-01-17 13:11:25 +01:00
|
|
|
//!
|
2016-02-01 14:48:38 +01:00
|
|
|
//! # install nightly and make it default
|
|
|
|
//! multirust update nightly && multirust default nightly
|
2016-01-17 13:11:25 +01:00
|
|
|
//!
|
2016-02-01 14:48:38 +01:00
|
|
|
//! # export rust LIBRARY_PATH
|
|
|
|
//! export LIBRARY_PATH=/usr/local/lib
|
|
|
|
//!
|
|
|
|
//! # download and build parity
|
2017-03-29 15:17:27 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity
|
2016-02-01 14:48:38 +01:00
|
|
|
//! cd parity
|
|
|
|
//! cargo build --release
|
2016-01-17 13:11:25 +01:00
|
|
|
//! ```
|
|
|
|
|
2016-09-13 15:26:31 +02:00
|
|
|
extern crate ethcore_bigint as bigint;
|
2017-09-06 20:47:45 +02:00
|
|
|
extern crate hashdb;
|
|
|
|
extern crate memorydb;
|
2017-09-05 12:14:03 +02:00
|
|
|
|
2016-01-17 13:11:25 +01:00
|
|
|
pub use hashdb::*;
|
2016-10-26 13:53:47 +02:00
|
|
|
pub use memorydb::MemoryDB;
|
2016-02-15 16:01:52 +01:00
|
|
|
|
2016-08-16 10:47:12 +02:00
|
|
|
/// 160-bit integer representing account address
|
2017-09-04 16:36:49 +02:00
|
|
|
pub type Address = bigint::hash::H160;
|