mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Added address
This commit is contained in:
parent
9ac81c5b2b
commit
37a89e577c
1 changed files with 2 additions and 2 deletions
|
|
@ -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:]}))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue