Skip to content

Commit

Permalink
Review part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
deuszx committed Feb 20, 2025
1 parent c51e2c3 commit b79881f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions linera-base/src/crypto/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize};

use super::{
le_bytes_to_u64_array, u64_array_to_le_bytes, BcsHashable, BcsSignable, CryptoError,
CryptoHash, HasTypeName, Hashable, ValidatorPublicKey, ValidatorSignature,
CryptoHash, HasTypeName, Hashable,
};
use crate::{doc_scalar, identifiers::Owner};

Expand Down Expand Up @@ -330,7 +330,7 @@ impl Ed25519Signature {
pub fn verify_batch<'a, 'de, T, I>(value: &'a T, votes: I) -> Result<(), CryptoError>
where
T: BcsSignable<'de>,
I: IntoIterator<Item = (&'a ValidatorPublicKey, &'a ValidatorSignature)>,
I: IntoIterator<Item = (&'a Ed25519PublicKey, &'a Ed25519Signature)>,
{
Ed25519Signature::verify_batch_internal(value, votes).map_err(|error| {
CryptoError::InvalidSignature {
Expand Down
4 changes: 1 addition & 3 deletions linera-chain/src/unit_tests/data_types_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ fn test_certificates() {
let key1 = ValidatorSecretKey::generate();
let key2 = ValidatorSecretKey::generate();
let key3 = ValidatorSecretKey::generate();
let validator1_pk = key1.public();
let validator2_pk = key2.public();

let committee = Committee::make_simple(vec![validator1_pk, validator2_pk]);
let committee = Committee::make_simple(vec![key1.public(), key2.public()]);

let block =
make_first_block(ChainId::root(1)).with_simple_transfer(ChainId::root(1), Amount::ONE);
Expand Down

0 comments on commit b79881f

Please sign in to comment.