Skip to content

Commit

Permalink
Rename point to p
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 1, 2023
1 parent cfb2ccd commit d7b9920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/verify_zkcrypro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use pairing::{group::Group, MultiMillerLoop};
use sha2_v9::Sha256;

pub fn hash_to_curve_g1(msg: &[u8], dst: &[u8]) -> G1Affine {
let g: G1Projective = HashToCurve::<ExpandMsgXmd<Sha256>>::hash_to_curve(msg, dst);
g.into()
let p: G1Projective = HashToCurve::<ExpandMsgXmd<Sha256>>::hash_to_curve(msg, dst);
p.into()
}

pub fn hash_to_curve_g2(msg: &[u8], dst: &[u8]) -> G2Affine {
let g: G2Projective = HashToCurve::<ExpandMsgXmd<Sha256>>::hash_to_curve(msg, dst);
g.into()
let p: G2Projective = HashToCurve::<ExpandMsgXmd<Sha256>>::hash_to_curve(msg, dst);
p.into()
}

/// Checks if e(p, q) == e(r, s)
Expand Down

0 comments on commit d7b9920

Please sign in to comment.