diff --git a/lib/src/protocol_instance.rs b/lib/src/protocol_instance.rs index e715de25..a248979f 100644 --- a/lib/src/protocol_instance.rs +++ b/lib/src/protocol_instance.rs @@ -94,22 +94,16 @@ pub fn assemble_protocol_instance( ) -> Result { let blob_used = input.taiko.block_proposed.meta.blobUsed; let tx_list_hash = if blob_used { - if cfg!(not(feature = "sp1")) { - println!("kzg check enabled!"); - let mut data = Vec::from(KZG_TRUST_SETUP_DATA); - let kzg_settings = KzgSettings::from_u8_slice(&mut data); - let kzg_commit = KzgCommitment::blob_to_kzg_commitment( - &Blob::from_bytes(&input.taiko.tx_data.as_slice()).unwrap(), - &kzg_settings, - ) - .unwrap(); - let versioned_hash = kzg_to_versioned_hash(kzg_commit); - assert_eq!(versioned_hash, input.taiko.tx_blob_hash.unwrap()); - versioned_hash - } else { - println!("kzg check disabled!"); - input.taiko.tx_blob_hash.unwrap() - } + let mut data = Vec::from(KZG_TRUST_SETUP_DATA); + let kzg_settings = KzgSettings::from_u8_slice(&mut data); + let kzg_commit = KzgCommitment::blob_to_kzg_commitment( + &Blob::from_bytes(&input.taiko.tx_data.as_slice()).unwrap(), + &kzg_settings, + ) + .unwrap(); + let versioned_hash = kzg_to_versioned_hash(kzg_commit); + assert_eq!(versioned_hash, input.taiko.tx_blob_hash.unwrap()); + versioned_hash } else { TxHash::from(keccak(input.taiko.tx_data.as_slice())) }; diff --git a/provers/sp1/builder/src/main.rs b/provers/sp1/builder/src/main.rs index b0d3fbd9..65af7147 100644 --- a/provers/sp1/builder/src/main.rs +++ b/provers/sp1/builder/src/main.rs @@ -31,7 +31,7 @@ impl Pipeline for Sp1Pipeline { "panic=abort", ]) .cc_compiler("gcc".into()) - .c_flags(&["/opt/riscv/bin/riscv32-unknown-elf-gcc"]) + .c_flags(&["/opt/riscv/bin/riscv32-unknown-elf-gcc", "-mstrict-align"]) .custom_args(&["--ignore-rust-version"]) }