Skip to content

Commit

Permalink
Replace pairing with zkcrypto/pairing (privacy-scaling-exploratio…
Browse files Browse the repository at this point in the history
…ns#69)

replace local `pairing` with `zkcrypto/pairing`
  • Loading branch information
kilic authored Jul 13, 2023
1 parent 2f32221 commit 1ab41bb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 97 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ bincode = "1.3.3"
subtle = "2.4"
ff = { version = "0.13.0", default-features = false, features = ["std"] }
group = "0.13.0"
pairing = "0.23.0"
pasta_curves = "0.5.0"
static_assertions = "1.1.0"
rand = "0.8"
Expand Down
4 changes: 2 additions & 2 deletions src/bn256/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ use crate::bn256::fr::*;
use crate::ff::{Field, PrimeField};
use crate::group::cofactor::CofactorCurveAffine;
use crate::group::Group;
use crate::pairing::{Engine, MillerLoopResult, MultiMillerLoop, PairingCurveAffine};
use core::borrow::Borrow;
use core::iter::Sum;
use core::ops::{Add, Mul, MulAssign, Neg, Sub};
use pairing::{Engine, MillerLoopResult, MultiMillerLoop, PairingCurveAffine};
use rand_core::RngCore;
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq};

Expand Down Expand Up @@ -633,7 +633,7 @@ pub fn pairing(g1: &G1Affine, g2: &G2Affine) -> Gt {
pub struct Bn256;

impl Engine for Bn256 {
type Scalar = Fr;
type Fr = Fr;
type G1 = G1;
type G1Affine = G1Affine;
type G2 = G2;
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod arithmetic;
pub mod hash_to_curve;
pub mod pairing;
pub mod serde;

pub mod bn256;
Expand Down
94 changes: 0 additions & 94 deletions src/pairing.rs

This file was deleted.

0 comments on commit 1ab41bb

Please sign in to comment.