Skip to content

Commit

Permalink
separated crypto module into its own crate
Browse files Browse the repository at this point in the history
  • Loading branch information
vkomenda committed Jul 30, 2018
1 parent 649353b commit 8694f1d
Show file tree
Hide file tree
Showing 25 changed files with 27 additions and 1,638 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ travis-ci = { repository = "poanetwork/hbbft" }
bincode = "1.0.0"
byteorder = "1.2.3"
env_logger = "0.5.10"
error-chain = "0.11.0"
error-chain = "0.12.0"
init_with = "1.1.0"
itertools = "0.7"
log = "0.4.1"
Expand All @@ -33,9 +33,10 @@ reed-solomon-erasure = "3.1.0"
ring = "^0.12"
serde = "1.0.55"
serde_derive = "1.0.55"
threshold_crypto = { git = "https://github.com/poanetwork/threshold_crypto" }

[features]
serialization-protobuf = [ "protobuf", "protobuf-codegen-pure" ]
serialization-protobuf = [ "protobuf", "protobuf-codegen-pure", "threshold_crypto/serialization-protobuf" ]

[build-dependencies]
protobuf-codegen-pure = { version = "2.0.0", optional = true }
Expand Down
1 change: 1 addition & 0 deletions examples/consensus-node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ extern crate hbbft;
extern crate log;
extern crate pairing;
extern crate protobuf;
extern crate threshold_crypto as crypto;

mod network;

Expand Down
7 changes: 4 additions & 3 deletions examples/network/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@
//! the consensus `result` is not an error then every successfully terminated
//! consensus node will be the same `result`.
use crossbeam;
use std::collections::{BTreeSet, HashSet};
use std::fmt::Debug;
use std::marker::{Send, Sync};
use std::net::SocketAddr;
use std::sync::Arc;
use std::{io, iter, process, thread, time};

use crossbeam;
use crypto::poly::Poly;
use crypto::{SecretKey, SecretKeySet};

use hbbft::broadcast::{Broadcast, BroadcastMessage};
use hbbft::crypto::poly::Poly;
use hbbft::crypto::{SecretKey, SecretKeySet};
use hbbft::messaging::{DistAlgorithm, NetworkInfo, SourcedMessage};
use hbbft::proto::message::BroadcastProto;
use network::commst;
Expand Down
10 changes: 0 additions & 10 deletions src/crypto/error.rs

This file was deleted.

55 changes: 0 additions & 55 deletions src/crypto/into_fr.rs

This file was deleted.

Loading

0 comments on commit 8694f1d

Please sign in to comment.