Skip to content

Commit

Permalink
release 0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat committed Nov 5, 2023
1 parent 4e4b026 commit 1e5cbb8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [
]
name = "ec-pairing"
description = 'Tate pairing implementation'
version = "0.0.13"
version = "0.0.14"
edition = "2021"
license = "Apache-2.0"
homepage = 'https://github.com/KogarashiNetwork/Kogarashi/'
Expand All @@ -19,10 +19,10 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]

[dependencies]
zkstd = { version = "0.0.21", default-features = false }
bls-12-381 = { version = "0.0.22", default-features = false }
jub-jub = { version = "0.0.19", default-features = false }
zkstd = { version = "0.0.22", default-features = false }
bls-12-381 = { version = "0.0.23", default-features = false }
jub-jub = { version = "0.0.20", default-features = false }
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }

[dev-dependencies]
rand_core = { version="0.6.4", features = ["getrandom"] }
rand_core = { version = "0.6.4", features = ["getrandom"] }
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

use bls_12_381::params::{BLS_X, BLS_X_IS_NEGATIVE};
use bls_12_381::{Fq12, Fr, G1Affine, G1Projective, G2Affine, G2PairingAffine, G2Projective, Gt};
use jub_jub::{Fp, JubjubAffine, JubjubExtended};
use jub_jub::EDWARDS_D;
use zkstd::common::Vec;
use zkstd::common::*;

Expand All @@ -33,13 +33,11 @@ impl Pairing for TatePairing {
type G2Affine = G2Affine;
type G1Projective = G1Projective;
type G2Projective = G2Projective;
type JubjubAffine = JubjubAffine;
type JubjubExtended = JubjubExtended;
type G2PairngRepr = G2PairingAffine;
type PairingRange = Fq12;
type Gt = Gt;
type ScalarField = Fr;
type JubjubScalar = Fp;
const PARAM_D: Fr = EDWARDS_D;
const X: u64 = BLS_X;
const X_IS_NEGATIVE: bool = BLS_X_IS_NEGATIVE;

Expand Down
5 changes: 1 addition & 4 deletions tests/pairing.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use bls_12_381::{Fq12, Fr, G1Affine, G2Affine, G2PairingAffine, Gt};
use ec_pairing::TatePairing;
use rand_core::OsRng;
use zkstd::{
behave::{Group, Pairing, PairingRange},
common::CurveGroup,
};
use zkstd::common::{CurveGroup, Group, Pairing, PairingRange};

#[test]
fn generator_pairing_test() {
Expand Down

0 comments on commit 1e5cbb8

Please sign in to comment.