aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-11 03:22:52 +0800
committerobscuren <geffobscura@gmail.com>2014-02-11 03:22:52 +0800
commitd831064f6597220f5013000048cdb0d2285d82a8 (patch)
tree29689c42c5a9738798e027806c95fa78bab7b629 /ethereum.go
parent3ecb2ef29cb5a9a0d2be8e9719875692a305bf3b (diff)
downloadgo-tangerine-d831064f6597220f5013000048cdb0d2285d82a8.tar.gz
go-tangerine-d831064f6597220f5013000048cdb0d2285d82a8.tar.zst
go-tangerine-d831064f6597220f5013000048cdb0d2285d82a8.zip
Skip the first byte in generating addresses
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index 78a22614f..dfb2a955c 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -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)
}
}