BLS: wrap AggregateSignature::add_aggregate

This commit is contained in:
Michael Sproul 2019-03-25 12:44:30 +11:00
parent 22a90a0224
commit 0bf8cb953e
No known key found for this signature in database
GPG Key ID: 77B1309D2E54E914

View File

@ -27,6 +27,11 @@ impl AggregateSignature {
self.0.add(signature.as_raw())
}
/// Add (aggregate) another `AggregateSignature`.
pub fn add_aggregate(&mut self, agg_signature: &AggregateSignature) {
self.0.add_aggregate(&agg_signature.0)
}
/// Verify the `AggregateSignature` against an `AggregatePublicKey`.
///
/// Only returns `true` if the set of keys in the `AggregatePublicKey` match the set of keys