good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
9e57aac5
Commit
9e57aac5
authored
11 years ago
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/0.2.2'
parents
3a03d091
1ba7ffe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+6
-1
6 additions, 1 deletion
README.md
ethereum.go
+13
-3
13 additions, 3 deletions
ethereum.go
with
19 additions
and
4 deletions
README.md
+
6
−
1
View file @
9e57aac5
...
...
@@ -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
================
...
...
This diff is collapsed.
Click to expand it.
ethereum.go
+
13
−
3
View file @
9e57aac5
...
...
@@ -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
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment