Begin working on bls test

This commit is contained in:
Kirk Baird
2019-05-21 10:32:14 +10:00
parent 63ee179def
commit 4f6447a62b
9 changed files with 211 additions and 1 deletions

View File

@@ -25,4 +25,12 @@ impl FakeAggregatePublicKey {
pub fn add(&mut self, _public_key: &PublicKey) {
// No nothing.
}
pub fn as_raw(&self) -> &FakeAggregatePublicKey {
&self
}
pub fn as_bytes(&self) -> Vec<u8> {
self.bytes.clone()
}
}

View File

@@ -8,6 +8,7 @@ mod secret_key;
pub use crate::keypair::Keypair;
pub use crate::secret_key::SecretKey;
pub use bls_aggregates::{compress_g2, hash_on_g2};
#[cfg(feature = "fake_crypto")]
mod fake_aggregate_public_key;