Correct Ethereum

This commit is contained in:
Luke Parker
2023-03-07 05:10:14 -05:00
parent b0730e3fdf
commit 6bff3866ea
4 changed files with 9 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ use ethers::{
use frost::{
curve::Secp256k1,
Participant,
algorithm::Schnorr as Algo,
tests::{key_gen, algorithm_machines, sign},
};
@@ -44,7 +45,7 @@ async fn test_ecrecover_hack() {
let chain_id = U256::from(chain_id);
let keys = key_gen::<_, Secp256k1>(&mut OsRng);
let group_key = keys[&1].group_key();
let group_key = keys[&Participant::new(1).unwrap()].group_key();
const MESSAGE: &[u8] = b"Hello, World!";
let hashed_message = keccak256(MESSAGE);