aboutsummaryrefslogtreecommitdiffstats
path: root/test/keygen.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/keygen.go')
-rw-r--r--test/keygen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/keygen.go b/test/keygen.go
index b2c789723..986342368 100644
--- a/test/keygen.go
+++ b/test/keygen.go
@@ -14,7 +14,7 @@ func main() {
panic(err)
}
address := crypto.PubkeyToAddress(privKey.PublicKey).String()
- pk := hex.EncodeToString(crypto.CompressPubkey(&privKey.PublicKey))
+ pk := hex.EncodeToString(crypto.FromECDSAPub(&privKey.PublicKey))
fmt.Printf(`
"%s": {