Skip to content

Commit

Permalink
chore: add get_mut for keccak circuit params
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Nov 20, 2023
1 parent 26a4504 commit 12e07e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hashes/zkevm/src/keccak/component/circuit/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
},
util::eth_types::Field,
};
use getset::{CopyGetters, Getters};
use getset::{CopyGetters, Getters, MutGetters};
use halo2_base::{
gates::{
circuit::{builder::BaseCircuitBuilder, BaseCircuitParams, BaseConfig},
Expand All @@ -45,13 +45,14 @@ use serde::{Deserialize, Serialize};
use snark_verifier_sdk::CircuitExt;

/// Keccak Component Shard Circuit
#[derive(Getters)]
#[derive(Getters, MutGetters)]
pub struct KeccakComponentShardCircuit<F: Field> {
/// The multiple inputs to be hashed.
#[getset(get = "pub")]
inputs: Vec<Vec<u8>>,

/// Parameters of this circuit. The same parameters always construct the same circuit.
#[getset(get_mut = "pub")]
params: KeccakComponentShardCircuitParams,
base_circuit_builder: RefCell<BaseCircuitBuilder<F>>,
/// Poseidon hasher. Stateless once initialized.
Expand Down

0 comments on commit 12e07e1

Please sign in to comment.