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
048df258
Commit
048df258
authored
May 28, 2019
by
Guillaume Ballet
Committed by
Péter Szilágyi
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/scwallet: change sc url scheme to keycard (#19632)
parent
2388e425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
README.md
accounts/scwallet/README.md
+10
-10
hub.go
accounts/scwallet/hub.go
+1
-1
No files found.
accounts/scwallet/README.md
View file @
048df258
...
...
@@ -25,13 +25,13 @@
Start `geth` with the `console` command. You will notice the following warning:
```
WARN [04-09|16:58:38.898] Failed to open wallet url=
pcsc
://044def09 err="smartcard: pairing password needed"
WARN [04-09|16:58:38.898] Failed to open wallet url=
keycard
://044def09 err="smartcard: pairing password needed"
```
Write down the URL (`
pcsc
://044def09` in this example). Then ask `geth` to open the wallet:
Write down the URL (`
keycard
://044def09` in this example). Then ask `geth` to open the wallet:
```
> personal.openWallet("
pcsc
://044def09")
> personal.openWallet("
keycard
://044def09")
Please enter the pairing password:
```
...
...
@@ -42,12 +42,12 @@
```
> personal
WARN [04-09|17:02:07.330] Smartcard wallet account derivation failed url=
pcsc
://044def09 err="Unexpected response status Cla=0x80, Ins=0xd1, Sw=0x6985"
WARN [04-09|17:02:07.330] Smartcard wallet account derivation failed url=
keycard
://044def09 err="Unexpected response status Cla=0x80, Ins=0xd1, Sw=0x6985"
{
listAccounts: [],
listWallets: [{
status: "Empty, waiting for initialization",
url: "
pcsc
://044def09"
url: "
keycard
://044def09"
}],
...
}
...
...
@@ -56,7 +56,7 @@
So the communication with the card is working, but there is no key associated with this wallet. Let's create it:
```
> personal.initializeWallet("
pcsc
://044def09")
> personal.initializeWallet("
keycard
://044def09")
"tilt ... impact"
```
...
...
@@ -67,10 +67,10 @@
[{
accounts: [{
address: "0x678b7cd55c61917defb23546a41803c5bfefbc7a",
url: "
pcsc
://044d/m/44'/60'/0'/0/0"
url: "
keycard
://044d/m/44'/60'/0'/0/0"
}],
status: "Online",
url: "
pcsc
://044def09"
url: "
keycard
://044def09"
}]
```
...
...
@@ -84,14 +84,14 @@
```
listWallets:
[
{
status: "Online, can derive public keys",
url: "
pcsc
://a4d73015"
url: "
keycard
://a4d73015"
}]
```
3. Open the wallet, you will be prompted for your pairing password, then PIN:
```
personal.openWallet("
pcsc
://a4d73015")
personal.openWallet("
keycard
://a4d73015")
```
4.
Check that creation was successful by typing e.g.
`personal`
. Then use it like a regular wallet.
...
...
accounts/scwallet/hub.go
View file @
048df258
...
...
@@ -49,7 +49,7 @@ import (
)
// Scheme is the URI prefix for smartcard wallets.
const
Scheme
=
"
pcsc
"
const
Scheme
=
"
keycard
"
// refreshCycle is the maximum time between wallet refreshes (if USB hotplug
// notifications don't work).
...
...
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