mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Skip the first byte in generating addresses
This commit is contained in:
parent
3ecb2ef29c
commit
d831064f65
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user