mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Fix pub key getting in signature verification
This commit is contained in:
@@ -48,7 +48,8 @@ pub fn verify_aggregate_signature_for_indices<T>(
|
|||||||
/*
|
/*
|
||||||
* Load the validators public key from our store.
|
* Load the validators public key from our store.
|
||||||
*/
|
*/
|
||||||
let pub_key = validator_store.get_public_key_by_index(i)?
|
let pub_key = validator_store
|
||||||
|
.get_public_key_by_index(validator)?
|
||||||
.ok_or(SignatureVerificationError::NoPublicKeyForValidator)?;
|
.ok_or(SignatureVerificationError::NoPublicKeyForValidator)?;
|
||||||
/*
|
/*
|
||||||
* Add the validators public key to the aggregate public key.
|
* Add the validators public key to the aggregate public key.
|
||||||
|
|||||||
Reference in New Issue
Block a user