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
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
085f604b
Commit
085f604b
authored
Dec 4, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Show newly created private key during startup. Closes #126
parent
a5b27bbc
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/mist/assets/qml/views/wallet.qml
+2
-2
2 additions, 2 deletions
cmd/mist/assets/qml/views/wallet.qml
cmd/utils/cmd.go
+1
-1
1 addition, 1 deletion
cmd/utils/cmd.go
crypto/key_manager.go
+4
-0
4 additions, 0 deletions
crypto/key_manager.go
with
7 additions
and
3 deletions
cmd/mist/assets/qml/views/wallet.qml
+
2
−
2
View file @
085f604b
...
@@ -148,8 +148,8 @@ Rectangle {
...
@@ -148,8 +148,8 @@ Rectangle {
id
:
txTableView
id
:
txTableView
anchors.fill
:
parent
anchors.fill
:
parent
TableViewColumn
{
role
:
"
num
"
;
title
:
"
#
"
;
width
:
30
}
TableViewColumn
{
role
:
"
num
"
;
title
:
"
#
"
;
width
:
30
}
TableViewColumn
{
role
:
"
from
"
;
title
:
"
From
"
;
width
:
28
0
}
TableViewColumn
{
role
:
"
from
"
;
title
:
"
From
"
;
width
:
34
0
}
TableViewColumn
{
role
:
"
to
"
;
title
:
"
To
"
;
width
:
28
0
}
TableViewColumn
{
role
:
"
to
"
;
title
:
"
To
"
;
width
:
34
0
}
TableViewColumn
{
role
:
"
value
"
;
title
:
"
Amount
"
;
width
:
100
}
TableViewColumn
{
role
:
"
value
"
;
title
:
"
Amount
"
;
width
:
100
}
model
:
ListModel
{
model
:
ListModel
{
...
...
This diff is collapsed.
Click to expand it.
cmd/utils/cmd.go
+
1
−
1
View file @
085f604b
...
@@ -145,7 +145,6 @@ func NewDatabase() ethutil.Database {
...
@@ -145,7 +145,6 @@ func NewDatabase() ethutil.Database {
}
}
func
NewClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
string
)
*
wire
.
SimpleClientIdentity
{
func
NewClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
string
)
*
wire
.
SimpleClientIdentity
{
clilogger
.
Infoln
(
"identity created"
)
return
wire
.
NewSimpleClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
)
return
wire
.
NewSimpleClientIdentity
(
clientIdentifier
,
version
,
customIdentifier
)
}
}
...
@@ -240,6 +239,7 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre
...
@@ -240,6 +239,7 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre
exit
(
err
)
exit
(
err
)
}
}
}
}
clilogger
.
Infof
(
"Main address %x
\n
"
,
keyManager
.
Address
())
}
}
func
StartRpc
(
ethereum
*
eth
.
Ethereum
,
RpcPort
int
)
{
func
StartRpc
(
ethereum
*
eth
.
Ethereum
,
RpcPort
int
)
{
...
...
This diff is collapsed.
Click to expand it.
crypto/key_manager.go
+
4
−
0
View file @
085f604b
...
@@ -5,8 +5,11 @@ import (
...
@@ -5,8 +5,11 @@ import (
"sync"
"sync"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
)
)
var
keylogger
=
logger
.
NewLogger
(
"KEY"
)
type
KeyManager
struct
{
type
KeyManager
struct
{
keyRing
*
KeyRing
keyRing
*
KeyRing
session
string
session
string
...
@@ -104,6 +107,7 @@ func (k *KeyManager) Init(session string, cursor int, force bool) error {
...
@@ -104,6 +107,7 @@ func (k *KeyManager) Init(session string, cursor int, force bool) error {
}
}
if
keyRing
==
nil
{
if
keyRing
==
nil
{
keyRing
=
NewGeneratedKeyRing
(
1
)
keyRing
=
NewGeneratedKeyRing
(
1
)
keylogger
.
Infof
(
"Created keypair. Private key: %x
\n
"
,
keyRing
.
keys
[
0
]
.
PrivateKey
)
}
}
return
k
.
reset
(
session
,
cursor
,
keyRing
)
return
k
.
reset
(
session
,
cursor
,
keyRing
)
}
}
...
...
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