From 4cb8b3fbd4b4fbe93dd987e92065a360f940478f Mon Sep 17 00:00:00 2001 From: Bhargav Annem Date: Tue, 18 Jun 2024 22:03:45 -0700 Subject: [PATCH] refactor: Remove unused constants in consts.rs --- src/consts.rs | 69 --------------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/src/consts.rs b/src/consts.rs index c1b174a..fadbab3 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -215,72 +215,3 @@ pub const SCALE2_ROOT_OF_UNITY: [[u64; 4]; 32] = [ 0x4b5371495990693f, ], ]; - -// /// INV = -(q^{-1} mod 2^64) mod 2^64 -// pub const INV: u64 = 0xffff_fffe_ffff_ffff; - -// /// R = 2^256 mod q -// pub const R: Scalar = Scalar::from_raw([ -// 0x0000_0001_ffff_fffe, -// 0x5884_b7fa_0003_4802, -// 0x998c_4fef_ecbc_4ff5, -// 0x1824_b159_acc5_056f, -// ]); - -// /// R^2 = 2^512 mod q -// pub const R2: Scalar = Scalar::from_raw([ -// 0xc999_e990_f3f2_9c6d, -// 0x2b6c_edcb_8792_5c23, -// 0x05d3_1496_7254_398f, -// 0x0748_d9d9_9f59_ff11, -// ]); - -// /// R^3 = 2^768 mod q -// pub const R3: Scalar = Scalar::from_raw([ -// 0xc62c_1807_439b_73af, -// 0x1b3e_0d18_8cf0_6990, -// 0x73d1_3c71_c7b5_f418, -// 0x6e2a_5bb9_c8db_33e9, -// ]); - -// /// 2^-1 -// pub const TWO_INV: Scalar = Scalar::from_raw([ -// 0x0000_0000_ffff_ffff, -// 0xac42_5bfd_0001_a401, -// 0xccc6_27f7_f65e_27fa, -// 0x0c12_58ac_d662_82b7, -// ]); - -// // 2^S * t = MODULUS - 1 with t odd -// pub const S: u32 = 32; - -// /// GENERATOR^t where t * 2^s + 1 = q -// /// with t odd. In other words, this -// /// is a 2^s root of unity. -// /// -// /// `GENERATOR = 7 mod q` is a generator -// /// of the q - 1 order multiplicative -// /// subgroup. -// pub const ROOT_OF_UNITY: Scalar = Scalar::from_raw([ -// 0xb9b5_8d8c_5f0e_466a, -// 0x5b1b_4c80_1819_d7ec, -// 0x0af5_3ae3_52a3_1e64, -// 0x5bf3_adda_19e9_b27b, -// ]); - -// /// ROOT_OF_UNITY^-1 -// pub const ROOT_OF_UNITY_INV: Scalar = Scalar::from_raw([ -// 0x4256_481a_dcf3_219a, -// 0x45f3_7b7f_96b6_cad3, -// 0xf9c3_f1d7_5f7a_3b27, -// 0x2d2f_c049_658a_fd43, -// ]); - -// /// GENERATOR^{2^s} where t * 2^s + 1 = q with t odd. -// /// In other words, this is a t root of unity. -// pub const DELTA: Scalar = Scalar::from_raw([ -// 0x70e3_10d3_d146_f96a, -// 0x4b64_c089_19e2_99e6, -// 0x51e1_1418_6a8b_970d, -// 0x6185_d066_27c0_67cb, -// ]);