From 8b356d71ea8cd4421fd45248ecfe80206c234ae4 Mon Sep 17 00:00:00 2001 From: Timofey Luin Date: Wed, 20 Mar 2024 14:56:17 +0100 Subject: [PATCH] fix(cli): poseidon commitment calc --- prover/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prover/src/utils.rs b/prover/src/utils.rs index 688d32f..df215b9 100644 --- a/prover/src/utils.rs +++ b/prover/src/utils.rs @@ -5,7 +5,7 @@ use std::{ops::Deref, sync::Arc}; use beacon_api_client::{BlockId, VersionedValue}; -use eth_types::NUM_LIMBS; +use eth_types::{LIMB_BITS, NUM_LIMBS}; use ethereum_consensus_types::LightClientBootstrap; use itertools::Itertools; use lightclient_circuits::poseidon::poseidon_committee_commitment_from_uncompressed; @@ -56,7 +56,7 @@ pub(crate) async fn utils_cli(method: UtilsCmd) -> eyre::Result<()> { println!("SSZ root: {:?}", hex::encode(ssz_root.deref())); let mut committee_poseidon = - poseidon_committee_commitment_from_uncompressed(&pubkeys_uncompressed, NUM_LIMBS) + poseidon_committee_commitment_from_uncompressed(&pubkeys_uncompressed, LIMB_BITS) .to_bytes(); committee_poseidon.reverse(); println!("Poseidon commitment: {}", hex::encode(committee_poseidon));