1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
mod dataio;
mod network;
mod tasks;
pub use aleph_bft_crypto::{
IncompleteMultisignatureError, Index, Indexed, KeyBox, MultiKeychain, Multisigned, NodeCount,
NodeIndex, NodeMap, NodeSubset, PartialMultisignature, PartiallyMultisigned, Signable,
Signature, SignatureError, SignatureSet, Signed, UncheckedSigned,
};
pub use dataio::{DataProvider, FinalizationHandler};
pub use network::{Network, Recipient};
pub use tasks::{SpawnHandle, TaskHandle};
use codec::Codec;
use std::{fmt::Debug, hash::Hash as StdHash};
pub trait Data: Eq + Clone + Send + Sync + Debug + StdHash + Codec + 'static {}
impl<T> Data for T where T: Eq + Clone + Send + Sync + Debug + StdHash + Codec + 'static {}
pub trait Hasher: Eq + Clone + Send + Sync + Debug + 'static {
type Hash: AsRef<[u8]> + Eq + Ord + Copy + Clone + Send + Sync + Debug + StdHash + Codec;
fn hash(s: &[u8]) -> Self::Hash;
}
pub type SessionId = u64;
pub type Round = u16;