From 707492985f7f297f45400e186ed92e113842a268 Mon Sep 17 00:00:00 2001 From: PatStiles <33334338+PatStiles@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:45:39 -0300 Subject: [PATCH] Delete math/src/elliptic_curve/short_weierstrass/curves/bls12_381/default_types.rs --- .../curves/bls12_381/default_types.rs | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 math/src/elliptic_curve/short_weierstrass/curves/bls12_381/default_types.rs diff --git a/math/src/elliptic_curve/short_weierstrass/curves/bls12_381/default_types.rs b/math/src/elliptic_curve/short_weierstrass/curves/bls12_381/default_types.rs deleted file mode 100644 index 32b9ec8d7..000000000 --- a/math/src/elliptic_curve/short_weierstrass/curves/bls12_381/default_types.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::{ - field::{ - element::FieldElement, - fields::montgomery_backed_prime_fields::{IsModulus, MontgomeryBackendPrimeField}, - traits::IsFFTField, - }, - unsigned_integer::element::{UnsignedInteger, U256}, -}; - -#[derive(Clone, Debug)] -pub struct FrConfig; - -/// Modulus of bls 12 381 subgroup -impl IsModulus for FrConfig { - const MODULUS: U256 = U256::from_hex_unchecked( - "73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", - ); -} - -/// FrField using MontgomeryBackend for bls 12 381 -pub type FrField = MontgomeryBackendPrimeField; -/// FrElement using MontgomeryBackend for bls 12 381 -pub type FrElement = FieldElement; - -impl IsFFTField for FrField { - const TWO_ADICITY: u64 = 32; - const TWO_ADIC_PRIMITIVE_ROOT_OF_UNITY: Self::BaseType = UnsignedInteger::from_hex_unchecked( - "2ab00961a08a499d84dd396c349d9b3cc5e433d6fa78eb2b54cc39d9bb30bbb7", - ); -}