Upgrade to signature scheme 0.6.0

This commit is contained in:
Kirk Baird
2019-03-12 16:01:09 +11:00
parent efd56ebe37
commit c92f867cd8
5 changed files with 23 additions and 26 deletions

View File

@@ -48,15 +48,9 @@ impl AggregateSignature {
domain: u64,
aggregate_public_keys: &[&AggregatePublicKey],
) -> bool {
// TODO: the API for `RawAggregatePublicKey` shoudn't need to take an owned
// `AggregatePublicKey`. There is an issue to fix this, but in the meantime we need to
// clone.
//
// https://github.com/sigp/signature-schemes/issues/10
let aggregate_public_keys: Vec<RawAggregatePublicKey> = aggregate_public_keys
let aggregate_public_keys: Vec<&RawAggregatePublicKey> = aggregate_public_keys
.iter()
.map(|pk| pk.as_raw())
.cloned()
.collect();
// Messages are concatenated into one long message.