Commit d831064f authored by obscuren's avatar obscuren

Skip the first byte in generating addresses

parent 3ecb2ef2
......@@ -35,7 +35,7 @@ func CreateKeyPair(force bool) {
log.Println("Generating new address and keypair")
pub, prv := secp256k1.GenerateKeyPair()
addr := ethutil.Sha3Bin(pub)[12:]
addr := ethutil.Sha3Bin(pub[1:])[12:]
log.Printf("Your new address is %x\n", addr)
......@@ -67,7 +67,7 @@ func main() {
if r == "n" || r == "y" {
break
} else {
fmt.Println("Yes or no?", r)
fmt.Printf("Yes or no?", r)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment