mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-25 13:13:49 +01:00
Twisted Edwards parameters for BLS12-377 (#76)
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
///! Bls12-377 scalar field.
|
||||
//! Bls12-377 scalar field.
|
||||
///
|
||||
/// Roots of unity computed from modulus and R using this sage code:
|
||||
///
|
||||
@@ -76,7 +76,8 @@ impl FpParameters for FrParameters {
|
||||
|
||||
/// GENERATOR = 22
|
||||
/// Encoded in Montgomery form, so the value is
|
||||
/// (22 * R) % q = 5642976643016801619665363617888466827793962762719196659561577942948671127251
|
||||
/// (22 * R) % q =
|
||||
/// 5642976643016801619665363617888466827793962762719196659561577942948671127251
|
||||
#[rustfmt::skip]
|
||||
const GENERATOR: BigInteger = BigInteger([
|
||||
2984901390528151251u64,
|
||||
|
||||
@@ -7,8 +7,7 @@ use ark_ff::{
|
||||
One, UniformRand, Zero,
|
||||
};
|
||||
use ark_serialize::{buffer_bit_byte_size, CanonicalSerialize};
|
||||
use ark_std::rand::Rng;
|
||||
use ark_std::test_rng;
|
||||
use ark_std::{rand::Rng, test_rng};
|
||||
use core::{
|
||||
cmp::Ordering,
|
||||
ops::{AddAssign, MulAssign, SubAssign},
|
||||
|
||||
Reference in New Issue
Block a user