Skip to content

Commit

Permalink
chore: update test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
guorong009 committed Oct 18, 2024
1 parent b43497b commit 381eb3e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions halo2_proofs/tests/compress_selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,13 @@ fn test_key_compression() -> Result<(), halo2_proofs::plonk::Error> {
// vk & pk keygen both WITH compression
test_result(
|| test_mycircuit(true, true).expect("should pass"),
"acae50508de5ead584170dd83b139daf40e1026b6debbb78eb05d515173fc2dd",
"44130c6388df3d99263be8da4a280b426dc05f1f315d35d3827347761534bf08",
);

// vk & pk keygen both WITHOUT compression
test_result(
|| test_mycircuit(false, false).expect("should pass"),
"f9c99bd341705ac6a13724a526dd28df0bac1c745e0cde40ab39cab3e1b95309",
"9f58d7a0088fa2c614e8d67bd238f61bc160300e72f5ffd5d52485ed5fb06752",
);

Ok(())
Expand Down
4 changes: 2 additions & 2 deletions halo2_proofs/tests/frontend_backend_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ fn test_mycircuit_full_legacy() {

proof
},
"78aadfd46b5cc58b90d832ee47e4df57af3dfc28d1457c4ceeb5d0323a72f130",
"44a4bca99aec990b2f382d9c2e1dcc8d8e254d49c2e47cab7556918105346474",
);
}

Expand Down Expand Up @@ -626,6 +626,6 @@ fn test_mycircuit_full_split() {

proof
},
"78aadfd46b5cc58b90d832ee47e4df57af3dfc28d1457c4ceeb5d0323a72f130",
"44a4bca99aec990b2f382d9c2e1dcc8d8e254d49c2e47cab7556918105346474",
);
}
4 changes: 2 additions & 2 deletions halo2_proofs/tests/plonk_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ fn plonk_api() {

proof
},
"f87ba1010dede5a2148ed94403ca12a566d3154ebb12ccb6c20a330e9b280af8",
"da790e980ea5a871e7b713f781fb7d6905a321d25427dc54b3accac2aa0d8860",
);
}

Expand Down Expand Up @@ -639,7 +639,7 @@ fn plonk_api() {

proof
},
"0fc67d890faef0ef8ea7ef680cc566b2ab7dabef12fcceb74d3655a0fb08c708",
"88c7197240d5a8db1b51d82e7a2a6d49e8593d64aed624e2a72c2b75fbac0357",
);
}

Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/tests/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ fn test_serialization() {

proof
},
"b51ea51140e9fbd1f0c665c788bab9e4b3e648ac674b6d07a24ca0844f0962ad",
"0be5dca07d18b9ad4ccfbf27fc58a7359d1909e5f762cf5df07ce02d0ab96f94",
);
}
2 changes: 1 addition & 1 deletion halo2_proofs/tests/shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ fn test_shuffle() {

halo2_debug::test_result(
|| test_prover::<EqAffine, W, H>(K, circuit.clone(), true),
"8526b66a372eaeccb687c21daf358d4fdb1c9d2b7e81470317c472634c5c1470",
"08d9c3129b4e2f6dd63cfc2cc23577fb7a39d5f8b333e3fb4e1eb2b223059338",
);

#[cfg(not(feature = "sanity-checks"))]
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/tests/shuffle_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ fn test_shuffle_api() {
prover.assert_satisfied();
test_prover::<EqAffine>(K, circuit, true)
},
"54f4fec1776178aadf8816754d7877f1de685e0ffb5b6af4db20f557d87550d6",
"bf0868d8eb50e3ea00aee981070b8ebf551f24b24792f6157048f605e4c8cf12",
);
}
4 changes: 2 additions & 2 deletions halo2_proofs/tests/vector-ops-unblinded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,13 @@ fn test_vector_ops_unbinded() {
// the commitments will be the first columns of the proof transcript so we can compare them easily
let proof_1 = halo2_debug::test_result(
|| test_prover::<halo2curves::pasta::EqAffine>(k, mul_circuit.clone(), true, c_mul.clone()),
"1f726eaddd926057e6c2aa8a364d1b4192da27f53c38c9f21d8924ef3eb0f0ab",
"8fb24ffebec78e9667e9f9eab6b4b8974d95b5db9023ef78788a08b3daf4b138",
);

// the commitments will be the first columns of the proof transcript so we can compare them easily
let proof_2 = halo2_debug::test_result(
|| test_prover::<halo2curves::pasta::EqAffine>(k, add_circuit.clone(), true, c_add.clone()),
"a42eb2f3e4761e6588bfd8db7e7035ead1cc1331017b6b09a7b75ddfbefefc58",
"ded7a6e1f2463fc1bc40311d409af170d57b3e32fe8d60f53403043ae718f4f9",
);

// the commitments will be the first columns of the proof transcript so we can compare them easily
Expand Down

0 comments on commit 381eb3e

Please sign in to comment.