Skip to content

Commit

Permalink
blake3 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhemo committed Feb 12, 2024
1 parent afacca5 commit 838043c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions core/src/stark/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ use super::Verifier;
pub struct ProvingKey<SC: StarkGenericConfig> {
pub data: PcsProverData<SC>,
pub byte_trace: RowMajorMatrix<SC::Val>,
// TODO:
// program_trace: RowMajorMatrix<SC::Val>,
}

pub struct VerifyingKey<SC: StarkGenericConfig> {
pub commit: Com<SC>,
pub byte_dimensions: Dimensions,
// TODO:
// program_dimensions: Dimensions,
}

Expand Down
6 changes: 3 additions & 3 deletions core/src/syscall/precompiles/blake3/compress/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub mod compress_tests {
use crate::runtime::Opcode;
use crate::runtime::Register;
use crate::runtime::SyscallCode;
use crate::utils::prove;
use crate::utils::run_test;
use crate::utils::setup_logger;
use crate::utils::tests::BLAKE3_COMPRESS_ELF;
use crate::Program;
Expand Down Expand Up @@ -166,13 +166,13 @@ pub mod compress_tests {
fn prove_babybear() {
setup_logger();
let program = blake3_compress_internal_program();
prove(program);
run_test(program).unwrap();
}

#[test]
fn test_blake3_compress_inner_elf() {
setup_logger();
let program = Program::from(BLAKE3_COMPRESS_ELF);
prove(program);
run_test(program).unwrap();
}
}

0 comments on commit 838043c

Please sign in to comment.