Skip to content

Commit

Permalink
refactor: Remove unused constants in consts.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND committed Jun 19, 2024
1 parent 330c068 commit 4cb8b3f
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
// ]);

0 comments on commit 4cb8b3f

Please sign in to comment.