aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-15 19:10:25 +0800
committerobscuren <geffobscura@gmail.com>2014-02-15 19:10:25 +0800
commit9e57aac5eb58a475ef85b3929527248d6e5657a8 (patch)
treece7a45713a72dacc290c8e76113a0be03c70ef75
parent3a03d091eb337ac2d5fdec50b49bf9ac5cda86f5 (diff)
parent1ba7ffe9f8eb468c11c20c933a85022a3b2dabe1 (diff)
downloadgo-tangerine-0.2.2.tar.gz
go-tangerine-0.2.2.tar.zst
go-tangerine-0.2.2.zip
Merge branch 'release/0.2.2'0.2.2
-rw-r--r--README.md7
-rw-r--r--ethereum.go16
2 files changed, 19 insertions, 4 deletions
diff --git a/README.md b/README.md
index 4deaf4579..4fa8d3c5a 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,12 @@ Contribution
If you'd like to contribute to Ethereum Go please fork, fix, commit and
send a pull request. Commits who do not comply with the coding standards
-are ignored.
+are ignored. If you send pull requests make absolute sure that you
+commit on the `develop` branch and that you do not merge to master.
+Commits that are directly based on master are simply ignored.
+
+To make life easier try [git flow](http://nvie.com/posts/a-successful-git-branching-model/) it sets
+this all up and streamlines your work flow.
Coding standards
================
diff --git a/ethereum.go b/ethereum.go
index 9907de740..372d434af 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -32,12 +32,22 @@ func RegisterInterupts(s *eth.Ethereum) {
func CreateKeyPair(force bool) {
data, _ := ethutil.Config.Db.Get([]byte("KeyRing"))
if len(data) == 0 || force {
- log.Println("Generating new address and keypair")
-
pub, prv := secp256k1.GenerateKeyPair()
addr := ethutil.Sha3Bin(pub[1:])[12:]
- log.Printf("Your new address is %x\n", addr)
+ fmt.Printf(`
+Generating new address and keypair.
+Please keep your keys somewhere save.
+Currently Ethereum(G) does not support
+exporting keys.
+
+++++++++++++++++ KeyRing +++++++++++++++++++
+addr: %x
+prvk: %x
+pubk: %x
+++++++++++++++++++++++++++++++++++++++++++++
+
+`, addr, prv, pub)
keyRing := ethutil.NewValue([]interface{}{prv, addr, pub[1:]})
ethutil.Config.Db.Put([]byte("KeyRing"), keyRing.Encode())