Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
085f604b
Commit
085f604b
authored
Dec 04, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show newly created private key during startup. Closes #126
parent
a5b27bbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
wallet.qml
cmd/mist/assets/qml/views/wallet.qml
+2
-2
cmd.go
cmd/utils/cmd.go
+1
-1
key_manager.go
crypto/key_manager.go
+4
-0
No files found.
cmd/mist/assets/qml/views/wallet.qml
View file @
085f604b
...
...
@@ -148,8 +148,8 @@ Rectangle {
id
:
txTableView
anchors.fill
:
parent
TableViewColumn
{
role
:
"num"
;
title
:
"#"
;
width
:
30
}
TableViewColumn
{
role
:
"from"
;
title
:
"From"
;
width
:
28
0
}
TableViewColumn
{
role
:
"to"
;
title
:
"To"
;
width
:
28
0
}
TableViewColumn
{
role
:
"from"
;
title
:
"From"
;
width
:
34
0
}
TableViewColumn
{
role
:
"to"
;
title
:
"To"
;
width
:
34
0
}
TableViewColumn
{
role
:
"value"
;
title
:
"Amount"
;
width
:
100
}
model
:
ListModel
{
...
...
cmd/utils/cmd.go
View file @
085f604b
...
...
@@ -145,7 +145,6 @@ func NewDatabase() ethutil.Database {
}
func
NewClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
string
)
*
wire
.
SimpleClientIdentity
{
clilogger
.
Infoln
(
"identity created"
)
return
wire
.
NewSimpleClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
)
}
...
...
@@ -240,6 +239,7 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre
exit
(
err
)
}
}
clilogger
.
Infof
(
"Main address %x
\n
"
,
keyManager
.
Address
())
}
func
StartRpc
(
ethereum
*
eth
.
Ethereum
,
RpcPort
int
)
{
...
...
crypto/key_manager.go
View file @
085f604b
...
...
@@ -5,8 +5,11 @@ import (
"sync"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
)
var
keylogger
=
logger
.
NewLogger
(
"KEY"
)
type
KeyManager
struct
{
keyRing
*
KeyRing
session
string
...
...
@@ -104,6 +107,7 @@ func (k *KeyManager) Init(session string, cursor int, force bool) error {
}
if
keyRing
==
nil
{
keyRing
=
NewGeneratedKeyRing
(
1
)
keylogger
.
Infof
(
"Created keypair. Private key: %x
\n
"
,
keyRing
.
keys
[
0
]
.
PrivateKey
)
}
return
k
.
reset
(
session
,
cursor
,
keyRing
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment