From b2686ce907fecf039c21ef8632ec1a96809f8692 Mon Sep 17 00:00:00 2001 From: mattdf Date: Thu, 30 Nov 2017 23:21:15 +0000 Subject: [PATCH] crypto/bn256 - fix generator on G1 to match standard generator so that it doesn't conflict with standard libs --- crypto/bn256/curve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bn256/curve.go b/crypto/bn256/curve.go index 233b1f2521..3e679fdc7e 100644 --- a/crypto/bn256/curve.go +++ b/crypto/bn256/curve.go @@ -20,7 +20,7 @@ var curveB = new(big.Int).SetInt64(3) // curveGen is the generator of G₁. var curveGen = &curvePoint{ new(big.Int).SetInt64(1), - new(big.Int).SetInt64(-2), + new(big.Int).SetInt64(2), new(big.Int).SetInt64(1), new(big.Int).SetInt64(1), }