Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix super
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Sep 3, 2023
1 parent 198adae commit 09cb220
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zkevm-circuits/src/taiko_pi_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl<F: Field> PublicData<F> {
}
}

fn encode_raw(&self) -> Vec<u8> {
pub fn encode_raw(&self) -> Vec<u8> {
encode(&[self.evidence.clone()])
}

Expand Down
5 changes: 3 additions & 2 deletions zkevm-circuits/src/taiko_super_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod test;
use crate::{
anchor_tx_circuit::{AnchorTxCircuit, AnchorTxCircuitConfig, AnchorTxCircuitConfigArgs},
table::{byte_table::ByteTable, BlockTable, KeccakTable, PiTable, TxTable},
taiko_pi_circuit::{TaikoPiCircuit, TaikoPiCircuitConfig, TaikoPiCircuitConfigArgs},
taiko_pi_circuit::{TaikoPiCircuit, TaikoPiCircuitConfig, TaikoPiCircuitConfigArgs, PublicData},
util::{log2_ceil, Challenges, SubCircuit, SubCircuitConfig},
witness::{block_convert, Block, ProtocolInstance},
};
Expand Down Expand Up @@ -59,6 +59,7 @@ impl<F: Field> SubCircuitConfig<F> for SuperCircuitConfig<F> {
let pi_circuit = TaikoPiCircuitConfig::new(
meta,
TaikoPiCircuitConfigArgs {
evidence: PublicData::default(),
block_table: block_table.clone(),
keccak_table: keccak_table.clone(),
byte_table: byte_table.clone(),
Expand Down Expand Up @@ -206,7 +207,7 @@ impl<F: Field> Circuit<F> for SuperCircuit<F> {
.load(&mut layouter, &self.block.context, randomness)?;
config.keccak_table.dev_load(
&mut layouter,
vec![&self.pi_circuit.public_data.rpi_bytes()],
vec![&self.pi_circuit.evidence.encode_raw()],
&challenges,
)?;
config.byte_table.load(&mut layouter)?;
Expand Down

0 comments on commit 09cb220

Please sign in to comment.