|
|
@ -35,7 +35,7 @@ func CreateKeyPair(force bool) { |
|
|
|
log.Println("Generating new address and keypair") |
|
|
|
log.Println("Generating new address and keypair") |
|
|
|
|
|
|
|
|
|
|
|
pub, prv := secp256k1.GenerateKeyPair() |
|
|
|
pub, prv := secp256k1.GenerateKeyPair() |
|
|
|
addr := ethutil.Sha3Bin(pub)[12:] |
|
|
|
addr := ethutil.Sha3Bin(pub[1:])[12:] |
|
|
|
|
|
|
|
|
|
|
|
log.Printf("Your new address is %x\n", addr) |
|
|
|
log.Printf("Your new address is %x\n", addr) |
|
|
|
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ func main() { |
|
|
|
if r == "n" || r == "y" { |
|
|
|
if r == "n" || r == "y" { |
|
|
|
break |
|
|
|
break |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
fmt.Println("Yes or no?", r) |
|
|
|
fmt.Printf("Yes or no?", r) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|