From 16b4be66638b0109ed9f16ff1a3b16e09d6c42ba Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Sun, 8 Jan 2017 15:04:57 -0500 Subject: [PATCH] Add fixme on SQRT_MINUS_A --- src/constants.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/constants.rs b/src/constants.rs index aeffe6d..a624c6a 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -35,6 +35,9 @@ pub const A: FieldElement = FieldElement([ 486662, 0, 0, 0, 0, 0, 0, 0, 0, 0, ]); /// SQRT_MINUS_A is sqrt(-486662) +// XXX I think that this was used in Adam's code for his elligator +// implementation, but that should maybe be using sqrt(-486664) +// instead...? - hdevalence pub const SQRT_MINUS_A: FieldElement = FieldElement([ // sqrtMinusA 12222970, 8312128, 11511410, -9067497, 15300785, 241793, -25456130, -14121551, 12187136, -3972024, ]);