good morning!!!!

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

Skip the first byte in generating addresses

parent 3ecb2ef2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment