remove H and C types

This commit is contained in:
M Alghazwi 2025-07-08 18:56:12 +02:00
parent 21989b89fe
commit 27e081d7df
No known key found for this signature in database
GPG Key ID: 646E567CAD7DB607

View File

@ -1,21 +1,8 @@
// params for generating input for proof circuit
use plonky2::hash::poseidon::PoseidonHash;
use plonky2::plonk::config::PoseidonGoldilocksConfig;
use plonky2::plonk::config::GenericConfig;
use std::env;
use anyhow::{Result, Context};
use codex_plonky2_circuits::circuits::params::CircuitParams;
use plonky2_poseidon2::config::Poseidon2GoldilocksConfig;
use plonky2_poseidon2::poseidon2_hash::poseidon2::Poseidon2Hash;
// test types
pub const D: usize = 2;
pub type C = PoseidonGoldilocksConfig;
pub type C2 = Poseidon2GoldilocksConfig;
pub type F = <C as GenericConfig<D>>::F; // this is the goldilocks field
pub type HF = PoseidonHash;
pub type HF2 = Poseidon2Hash;
// hardcoded default params for generating proof input
const DEFAULT_MAX_DEPTH: usize = 32; // depth of big tree (slot tree depth, includes block tree depth)