From 3f77d695175f990a2967385c493939f380ee40a3 Mon Sep 17 00:00:00 2001 From: David Lazar Date: Tue, 6 Dec 2016 14:42:06 -0500 Subject: [PATCH] bn256: fix equations in comments Change-Id: Icb220341756f472ade15f5fc6b91016214233da9 Reviewed-on: https://go-review.googlesource.com/34030 Reviewed-by: Brad Fitzpatrick --- bn256/constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bn256/constants.go b/bn256/constants.go index 08ccfdf..1ccefc4 100644 --- a/bn256/constants.go +++ b/bn256/constants.go @@ -16,10 +16,10 @@ func bigFromBase10(s string) *big.Int { // u is the BN parameter that determines the prime: 1868033³. var u = bigFromBase10("6518589491078791937") -// p is a prime over which we form a basic field: 36u⁴+36u³+24u³+6u+1. +// p is a prime over which we form a basic field: 36u⁴+36u³+24u²+6u+1. var p = bigFromBase10("65000549695646603732796438742359905742825358107623003571877145026864184071783") -// Order is the number of elements in both G₁ and G₂: 36u⁴+36u³+18u³+6u+1. +// Order is the number of elements in both G₁ and G₂: 36u⁴+36u³+18u²+6u+1. var Order = bigFromBase10("65000549695646603732796438742359905742570406053903786389881062969044166799969") // xiToPMinus1Over6 is ξ^((p-1)/6) where ξ = i+3.