This commit is contained in:
Rostyslav Tyshko 2025-03-16 11:37:23 -04:00
parent 45cb6b21a2
commit e808422320
2 changed files with 5 additions and 9 deletions

View File

@ -8,15 +8,10 @@ use k256::elliptic_curve::group::GroupEncoding;
use ::storage::transaction::{Transaction, TransactionPayload, TxKind};
use accounts::account_core::{Account, AccountAddress};
use anyhow::{anyhow, Result};
use anyhow::Result;
use config::NodeConfig;
use executions::{
private_exec::{generate_commitments, generate_nullifiers},
se::{commit, tag_random},
};
use executions::private_exec::{generate_commitments, generate_nullifiers};
use log::info;
use rand::thread_rng;
use secp256k1_zkp::{CommitmentSecrets, Tweak};
use sequencer_client::{json::SendTxResponse, SequencerClient};
use serde::{Deserialize, Serialize};
use storage::NodeChainStore;

View File

@ -1,7 +1,8 @@
use ark_bn254::Fr;
use ark_ff::{BigInteger, PrimeField};
use light_poseidon::{parameters::bn254_x5, Poseidon, PoseidonBytesHasher};
// use ark_ff::{BigInteger, PrimeField};
use light_poseidon::{Poseidon, PoseidonBytesHasher};
#[allow(unused)]
fn poseidon_hash(inputs: &[&[u8]]) -> anyhow::Result<[u8; 32]> {
let mut poseidon = Poseidon::<Fr>::new_circom(2).unwrap();