diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2017-01-13 04:29:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-13 04:29:11 +0800 |
commit | e0ceeab0d111ada7d847c83992d2ff3128bfb959 (patch) | |
tree | be9fcaa85d61ba461a3ee2293206f5f73c7e5451 /crypto/crypto_test.go | |
parent | 93077c98e43610122ad0933b20a44f04a8f4b6b2 (diff) | |
download | dexon-e0ceeab0d111ada7d847c83992d2ff3128bfb959.tar.gz dexon-e0ceeab0d111ada7d847c83992d2ff3128bfb959.tar.zst dexon-e0ceeab0d111ada7d847c83992d2ff3128bfb959.zip |
crypto/secp256k1: update to github.com/bitcoin-core/secp256k1 @ 9d560f9 (#3544)
- Use defined constants instead of hard-coding their integer value.
- Allocate secp256k1 structs on the C stack instead of converting []byte
- Remove dead code
Diffstat (limited to 'crypto/crypto_test.go')
-rw-r--r-- | crypto/crypto_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go index f42605d32..d4d309849 100644 --- a/crypto/crypto_test.go +++ b/crypto/crypto_test.go @@ -72,14 +72,6 @@ func BenchmarkSha3(b *testing.B) { fmt.Println(amount, ":", time.Since(start)) } -func Test0Key(t *testing.T) { - key := common.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000000") - _, err := secp256k1.GeneratePubKey(key) - if err == nil { - t.Errorf("expected error due to zero privkey") - } -} - func TestSign(t *testing.T) { key, _ := HexToECDSA(testPrivHex) addr := common.HexToAddress(testAddrHex) |