Update edwards curves constants

This commit is contained in:
Pratyush Mishra
2020-12-08 21:42:36 -08:00
parent 7f6ff28e6c
commit 9a97d75149
2 changed files with 25 additions and 4 deletions

View File

@@ -72,7 +72,12 @@ impl FpParameters for FrParameters {
168160046336021674u64,
]);
const T: BigInteger = BigInteger([0x0, 0x0, 0x0, 0x0]);
const T: BigInteger = Self::MODULUS_MINUS_ONE_DIV_TWO;
const T_MINUS_ONE_DIV_TWO: BigInteger = BigInteger([0x0, 0x0, 0x0, 0x0]);
const T_MINUS_ONE_DIV_TWO: BigInteger = BigInteger([
0xae56bba6b0cff67f,
0x14a4e8ebf10f22bf,
0x660b44d1e5c37b00,
0x12ab655e9a2ca55,
]);
}