Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
SuccinctPaul committed Mar 7, 2024
1 parent 027e8b4 commit 742caa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions starky/src/stark_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,10 +1141,11 @@ pub mod tests {
log::trace!("verify the proof...");

let serialized = serde_json::to_string(&starkproof).unwrap();
let starkproof: StarkProof<MerkleTreeBN128> = serde_json::from_str(&serialized).unwrap();
let actual: StarkProof<MerkleTreeBN128> = serde_json::from_str(&serialized).unwrap();
assert_eq!(actual, starkproof);// could pass

let result = stark_verify::<MerkleTreeBN128, TranscriptBN128>(
&starkproof,
&actual,
&setup.const_root,
&setup.starkinfo,
&stark_struct,
Expand Down

0 comments on commit 742caa7

Please sign in to comment.