aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/crypto_test.go')
-rw-r--r--crypto/crypto_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index b579e6e4e..41c05a242 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -6,6 +6,9 @@ import (
"fmt"
"testing"
"time"
+
+ "github.com/ethereum/go-ethereum/ethutil"
+ "github.com/obscuren/secp256k1-go"
)
// These tests are sanity checks.
@@ -47,3 +50,13 @@ func BenchmarkSha3(b *testing.B) {
fmt.Println(amount, ":", time.Since(start))
}
+
+func Test0Key(t *testing.T) {
+
+ key := ethutil.Hex2Bytes("1111111111111111111111111111111111111111111111111111111111111111")
+
+ p, err := secp256k1.GeneratePubKey(key)
+ addr := Sha3(p[1:])[12:]
+ fmt.Printf("%x\n", p)
+ fmt.Printf("%v %x\n", err, addr)
+}