pairing: Pass affine references to Engine::pairing

This commit is contained in:
Jack Grigg 2020-05-30 16:56:58 +12:00
parent 5eb58836ce
commit ee6e00b0e7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ pub fn prepare_verifying_key<E: Engine>(vk: &VerifyingKey<E>) -> PreparedVerifyi
let delta = vk.delta_g2.neg();
PreparedVerifyingKey {
alpha_g1_beta_g2: E::pairing(vk.alpha_g1, vk.beta_g2),
alpha_g1_beta_g2: E::pairing(&vk.alpha_g1, &vk.beta_g2),
neg_gamma_g2: gamma.prepare(),
neg_delta_g2: delta.prepare(),
ic: vk.ic.clone(),