aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto_test.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-09 07:17:09 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-05-09 07:17:09 +0800
commitba975dc0931b9f2962b2f163675772458ed339fd (patch)
tree9e2e4d2265cfdad52289d15abcc9f2b56fcddebe /crypto/crypto_test.go
parenteab6e5a317acf67409f82bc5c1f4d959413dfd47 (diff)
downloadgo-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar.gz
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar.bz2
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar.lz
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar.xz
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.tar.zst
go-tangerine-ba975dc0931b9f2962b2f163675772458ed339fd.zip
crypto: fix golint warnings (#16710)
Diffstat (limited to 'crypto/crypto_test.go')
-rw-r--r--crypto/crypto_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index 835035462..804de3fe2 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -154,7 +154,7 @@ func TestValidateSignatureValues(t *testing.T) {
minusOne := big.NewInt(-1)
one := common.Big1
zero := common.Big0
- secp256k1nMinus1 := new(big.Int).Sub(secp256k1_N, common.Big1)
+ secp256k1nMinus1 := new(big.Int).Sub(secp256k1N, common.Big1)
// correct v,r,s
check(true, 0, one, one)
@@ -181,9 +181,9 @@ func TestValidateSignatureValues(t *testing.T) {
// correct sig with max r,s
check(true, 0, secp256k1nMinus1, secp256k1nMinus1)
// correct v, combinations of incorrect r,s at upper limit
- check(false, 0, secp256k1_N, secp256k1nMinus1)
- check(false, 0, secp256k1nMinus1, secp256k1_N)
- check(false, 0, secp256k1_N, secp256k1_N)
+ check(false, 0, secp256k1N, secp256k1nMinus1)
+ check(false, 0, secp256k1nMinus1, secp256k1N)
+ check(false, 0, secp256k1N, secp256k1N)
// current callers ensures r,s cannot be negative, but let's test for that too
// as crypto package could be used stand-alone