mirror of https://github.com/zcash/halo2.git
Merge pull request #667 from Orbis-Tertius/fix-plonk-test
Don't use `include_bytes!` for `plonk_api` test
This commit is contained in:
commit
21a79182ed
|
@ -459,13 +459,14 @@ fn plonk_api() {
|
|||
.expect("proof generation should not fail");
|
||||
let proof: Vec<u8> = transcript.finalize();
|
||||
|
||||
std::fs::write("plonk_api_proof.bin", &proof[..])
|
||||
std::fs::write("./tests/plonk_api_proof.bin", &proof[..])
|
||||
.expect("should succeed to write new proof");
|
||||
}
|
||||
|
||||
{
|
||||
// Check that a hardcoded proof is satisfied
|
||||
let proof = include_bytes!("plonk_api_proof.bin");
|
||||
let proof =
|
||||
std::fs::read("./tests/plonk_api_proof.bin").expect("should succeed to read proof");
|
||||
let strategy = SingleVerifier::new(¶ms);
|
||||
let mut transcript = Blake2bRead::<_, _, Challenge255<_>>::init(&proof[..]);
|
||||
assert!(verify_proof(
|
||||
|
|
Loading…
Reference in New Issue