diff options
Diffstat (limited to 'crypto/secp256k1')
-rw-r--r-- | crypto/secp256k1/secp256.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crypto/secp256k1/secp256.go b/crypto/secp256k1/secp256.go index 4284115e2..1a152a670 100644 --- a/crypto/secp256k1/secp256.go +++ b/crypto/secp256k1/secp256.go @@ -42,17 +42,9 @@ import ( "unsafe" ) -var ( - context *C.secp256k1_context - N *big.Int - HalfN *big.Int -) +var context *C.secp256k1_context func init() { - N, _ = new(big.Int).SetString("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16) - // N / 2 == 57896044618658097711785492504343953926418782139537452191302581570759080747168 - HalfN, _ = new(big.Int).SetString("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0", 16) - // around 20 ms on a modern CPU. context = C.secp256k1_context_create_sign_verify() C.secp256k1_context_set_illegal_callback(context, C.callbackFunc(C.secp256k1GoPanicIllegal), nil) |