Skip to content

Commit

Permalink
fix(cli): poseidon commitment calc
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltea committed Mar 20, 2024
1 parent f9d3e5f commit 8b356d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prover/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 8b356d7

Please sign in to comment.