good morning!!!!

Skip to content
Snippets Groups Projects
Commit 37a89e57 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Added address

parent 9ac81c5b
Branches
Tags
No related merge requests found
......@@ -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:]}))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment