From 24ba723818ae0c855dfab25b0e39c3de4fb88d2e Mon Sep 17 00:00:00 2001 From: arkpar Date: Sat, 9 Jan 2016 10:27:41 +0100 Subject: [PATCH] Do not expose sha3 from crypto --- src/crypto.rs | 2 -- src/network/discovery.rs | 1 + src/network/handshake.rs | 1 + src/network/host.rs | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crypto.rs b/src/crypto.rs index a426cf9ba..a80045e55 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -2,8 +2,6 @@ use hash::*; use secp256k1::{key, Secp256k1}; use rand::os::OsRng; -pub use ::sha3::Hashable; - pub type Secret = H256; pub type Public = H512; pub type Signature = H520; diff --git a/src/network/discovery.rs b/src/network/discovery.rs index bae52eb10..f2d139f45 100644 --- a/src/network/discovery.rs +++ b/src/network/discovery.rs @@ -8,6 +8,7 @@ use std::ops::{DerefMut}; use mio::*; use mio::udp::*; use hash::*; +use sha3::Hashable; use crypto::*; use network::host::*; diff --git a/src/network/handshake.rs b/src/network/handshake.rs index 9f4ca4d97..4df8cbe8b 100644 --- a/src/network/handshake.rs +++ b/src/network/handshake.rs @@ -1,6 +1,7 @@ use mio::*; use mio::tcp::*; use hash::*; +use sha3::Hashable; use bytes::Bytes; use crypto::*; use crypto; diff --git a/src/network/host.rs b/src/network/host.rs index e8040a10e..9e2b3e101 100644 --- a/src/network/host.rs +++ b/src/network/host.rs @@ -8,6 +8,7 @@ use mio::tcp::*; use mio::udp::*; use hash::*; use crypto::*; +use sha3::Hashable; use rlp::*; use time::Tm; use network::handshake::Handshake;