From 0bf8cb953eeaa86662455e0025be0e7f1f4b4808 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Mon, 25 Mar 2019 12:44:30 +1100 Subject: [PATCH] BLS: wrap AggregateSignature::add_aggregate --- eth2/utils/bls/src/aggregate_signature.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eth2/utils/bls/src/aggregate_signature.rs b/eth2/utils/bls/src/aggregate_signature.rs index 7b80d3bbfd..44eafdcdf5 100644 --- a/eth2/utils/bls/src/aggregate_signature.rs +++ b/eth2/utils/bls/src/aggregate_signature.rs @@ -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