Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename s to tau for trusted setup secret #286

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cryptography/kzg_multi_open/src/fk20/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ pub struct FK20Verifier {
coset_domain: Domain,
// Pre-computations for the verification algorithm
//
// [s^n]_2
s_pow_n: G2Prepared,
// [tau^n]_2
tau_pow_n: G2Prepared,
// [-1]_2
neg_g2_gen: G2Prepared,
//
Expand All @@ -68,8 +68,8 @@ impl FK20Verifier {
let coset_domain = polynomial::domain::Domain::new(verification_key.coset_size);

let n = verification_key.coset_size;
// [s^n]_2
let s_pow_n = G2Prepared::from(G2Point::from(verification_key.g2s[n]));
// [tau^n]_2
let tau_pow_n = G2Prepared::from(G2Point::from(verification_key.g2s[n]));
// [-1]_2
let neg_g2_gen = G2Prepared::from(-verification_key.g2_gen());

Expand All @@ -91,7 +91,7 @@ impl FK20Verifier {
verification_key,
coset_gens_bit_reversed: coset_gens,
coset_domain,
s_pow_n,
tau_pow_n,
neg_g2_gen,
coset_gens_pow_n,
inv_coset_gens_pow_n,
Expand Down Expand Up @@ -242,7 +242,7 @@ impl FK20Verifier {
let pairing_input_g1 = normalized_vectors[1];

let proof_valid = multi_pairings(&[
(&random_sum_proofs, &self.s_pow_n),
(&random_sum_proofs, &self.tau_pow_n),
(&pairing_input_g1, &self.neg_g2_gen),
]);
if proof_valid {
Expand Down
Loading