Skip to content

Commit a09050d

Browse files
authored
rename s to tau (#286)
1 parent a3d89c6 commit a09050d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cryptography/kzg_multi_open/src/fk20/verifier.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ pub struct FK20Verifier {
4141
coset_domain: Domain,
4242
// Pre-computations for the verification algorithm
4343
//
44-
// [s^n]_2
45-
s_pow_n: G2Prepared,
44+
// [tau^n]_2
45+
tau_pow_n: G2Prepared,
4646
// [-1]_2
4747
neg_g2_gen: G2Prepared,
4848
//
@@ -68,8 +68,8 @@ impl FK20Verifier {
6868
let coset_domain = polynomial::domain::Domain::new(verification_key.coset_size);
6969

7070
let n = verification_key.coset_size;
71-
// [s^n]_2
72-
let s_pow_n = G2Prepared::from(G2Point::from(verification_key.g2s[n]));
71+
// [tau^n]_2
72+
let tau_pow_n = G2Prepared::from(G2Point::from(verification_key.g2s[n]));
7373
// [-1]_2
7474
let neg_g2_gen = G2Prepared::from(-verification_key.g2_gen());
7575

@@ -91,7 +91,7 @@ impl FK20Verifier {
9191
verification_key,
9292
coset_gens_bit_reversed: coset_gens,
9393
coset_domain,
94-
s_pow_n,
94+
tau_pow_n,
9595
neg_g2_gen,
9696
coset_gens_pow_n,
9797
inv_coset_gens_pow_n,
@@ -242,7 +242,7 @@ impl FK20Verifier {
242242
let pairing_input_g1 = normalized_vectors[1];
243243

244244
let proof_valid = multi_pairings(&[
245-
(&random_sum_proofs, &self.s_pow_n),
245+
(&random_sum_proofs, &self.tau_pow_n),
246246
(&pairing_input_g1, &self.neg_g2_gen),
247247
]);
248248
if proof_valid {

0 commit comments

Comments
 (0)