mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
warnings
This commit is contained in:
parent
45cb6b21a2
commit
e808422320
@ -8,15 +8,10 @@ use k256::elliptic_curve::group::GroupEncoding;
|
|||||||
|
|
||||||
use ::storage::transaction::{Transaction, TransactionPayload, TxKind};
|
use ::storage::transaction::{Transaction, TransactionPayload, TxKind};
|
||||||
use accounts::account_core::{Account, AccountAddress};
|
use accounts::account_core::{Account, AccountAddress};
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::Result;
|
||||||
use config::NodeConfig;
|
use config::NodeConfig;
|
||||||
use executions::{
|
use executions::private_exec::{generate_commitments, generate_nullifiers};
|
||||||
private_exec::{generate_commitments, generate_nullifiers},
|
|
||||||
se::{commit, tag_random},
|
|
||||||
};
|
|
||||||
use log::info;
|
use log::info;
|
||||||
use rand::thread_rng;
|
|
||||||
use secp256k1_zkp::{CommitmentSecrets, Tweak};
|
|
||||||
use sequencer_client::{json::SendTxResponse, SequencerClient};
|
use sequencer_client::{json::SendTxResponse, SequencerClient};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use storage::NodeChainStore;
|
use storage::NodeChainStore;
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
use ark_bn254::Fr;
|
use ark_bn254::Fr;
|
||||||
use ark_ff::{BigInteger, PrimeField};
|
// use ark_ff::{BigInteger, PrimeField};
|
||||||
use light_poseidon::{parameters::bn254_x5, Poseidon, PoseidonBytesHasher};
|
use light_poseidon::{Poseidon, PoseidonBytesHasher};
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
fn poseidon_hash(inputs: &[&[u8]]) -> anyhow::Result<[u8; 32]> {
|
fn poseidon_hash(inputs: &[&[u8]]) -> anyhow::Result<[u8; 32]> {
|
||||||
let mut poseidon = Poseidon::<Fr>::new_circom(2).unwrap();
|
let mut poseidon = Poseidon::<Fr>::new_circom(2).unwrap();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user