aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-09 06:50:08 +0800
committerobscuren <geffobscura@gmail.com>2014-02-09 06:50:08 +0800
commit37a89e577c25afe0e0388f154eba1fb97a972971 (patch)
tree6ca1d1e8b8ecae2d40af980a4fc016518443bfd8 /ethereum.go
parent9ac81c5b2b8304fe8e1efed7298998f36267612b (diff)
downloaddexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar.gz
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar.bz2
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar.lz
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar.xz
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.tar.zst
dexon-37a89e577c25afe0e0388f154eba1fb97a972971.zip
Added address
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index bf379184f..4584ff85c 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -36,9 +36,9 @@ func CreateKeyPair(force bool) {
pub, prv := secp256k1.GenerateKeyPair()
- log.Printf("Your new address is %x\n", pub[12:])
+ log.Printf("Your new address is %x\n", ethutil.Sha3Bin(pub)[12:])
- ethutil.Config.Db.Put([]byte("KeyRing"), ethutil.Encode([]interface{}{prv, pub}))
+ ethutil.Config.Db.Put([]byte("KeyRing"), ethutil.Encode([]interface{}{prv, ethutil.Sha3Bin(pub)[12:]}))
}
}