mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-11 08:21:33 +01:00
Sync with the recent changes in ark-algebra on pairing and testing (#116)
* Fix another typo in the Jubjub curve comment * fix * progress * get_point_from_x_unchecked * fix * soft link * Fix Bandersnatch * Fix Edwards form of Bandersnatch * Actually fix ed_on_bls12_381_bandersnatch/src/curves/mod.rs * fix * fix * curve-benches * fix the last mul_by_a; fmt Co-authored-by: onewayfunc <onewayfunc@gmail.com> Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
This commit is contained in:
@@ -70,7 +70,7 @@ impl TECurveConfig for JubjubParameters {
|
||||
/// COEFF_A = -1
|
||||
const COEFF_A: Fq = MontFp!("-1");
|
||||
|
||||
/// COEFF_D = (10240/10241) mod q
|
||||
/// COEFF_D = -(10240/10241) mod q
|
||||
const COEFF_D: Fq =
|
||||
MontFp!("19257038036680949359750312669786877991949435402254120286184196891950884077233");
|
||||
|
||||
@@ -81,8 +81,8 @@ impl TECurveConfig for JubjubParameters {
|
||||
|
||||
/// Multiplication by `a` is simply negation here.
|
||||
#[inline(always)]
|
||||
fn mul_by_a(elem: &Self::BaseField) -> Self::BaseField {
|
||||
-(*elem)
|
||||
fn mul_by_a(elem: Self::BaseField) -> Self::BaseField {
|
||||
-elem
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use ark_algebra_test_templates::curves::*;
|
||||
use ark_ec::{AffineCurve, ProjectiveCurve};
|
||||
use ark_ec::{AffineRepr, ProjectiveCurve};
|
||||
use ark_ff::Zero;
|
||||
use ark_std::{ops::Mul, str::FromStr};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user