Update per-block processing for new AggPub wrapper

AggregatePublicKey newtype was introduced in previous commit
This commit is contained in:
Paul Hauner 2019-03-03 11:12:18 +11:00
parent 35ae1b6745
commit 3561d44cbe
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -383,11 +383,7 @@ fn validate_attestation_signature_optional(
);
let mut group_public_key = AggregatePublicKey::new();
for participant in participants {
group_public_key.add(
state.validator_registry[participant as usize]
.pubkey
.as_raw(),
)
group_public_key.add(&state.validator_registry[participant as usize].pubkey)
}
ensure!(
attestation.verify_signature(