Skip to content

Commit 048df25

Browse files
gballetkaralabe
authored andcommitted
accounts/scwallet: change sc url scheme to keycard (#19632)
1 parent 2388e42 commit 048df25

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎accounts/scwallet/README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
Start `geth` with the `console` command. You will notice the following warning:
2626

2727
```
28-
WARN [04-09|16:58:38.898] Failed to open wallet url=pcsc://044def09 err="smartcard: pairing password needed"
28+
WARN [04-09|16:58:38.898] Failed to open wallet url=keycard://044def09 err="smartcard: pairing password needed"
2929
```
3030

31-
Write down the URL (`pcsc://044def09` in this example). Then ask `geth` to open the wallet:
31+
Write down the URL (`keycard://044def09` in this example). Then ask `geth` to open the wallet:
3232

3333
```
34-
> personal.openWallet("pcsc://044def09")
34+
> personal.openWallet("keycard://044def09")
3535
Please enter the pairing password:
3636
```
3737

@@ -42,12 +42,12 @@
4242

4343
```
4444
> personal
45-
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"
45+
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"
4646
{
4747
listAccounts: [],
4848
listWallets: [{
4949
status: "Empty, waiting for initialization",
50-
url: "pcsc://044def09"
50+
url: "keycard://044def09"
5151
}],
5252
...
5353
}
@@ -56,7 +56,7 @@
5656
So the communication with the card is working, but there is no key associated with this wallet. Let's create it:
5757

5858
```
59-
> personal.initializeWallet("pcsc://044def09")
59+
> personal.initializeWallet("keycard://044def09")
6060
"tilt ... impact"
6161
```
6262

@@ -67,10 +67,10 @@
6767
[{
6868
accounts: [{
6969
address: "0x678b7cd55c61917defb23546a41803c5bfefbc7a",
70-
url: "pcsc://044d/m/44'/60'/0'/0/0"
70+
url: "keycard://044d/m/44'/60'/0'/0/0"
7171
}],
7272
status: "Online",
73-
url: "pcsc://044def09"
73+
url: "keycard://044def09"
7474
}]
7575
```
7676

@@ -84,14 +84,14 @@
8484
```
8585
listWallets: [{
8686
status: "Online, can derive public keys",
87-
url: "pcsc://a4d73015"
87+
url: "keycard://a4d73015"
8888
}]
8989
```
9090

9191
3. Open the wallet, you will be prompted for your pairing password, then PIN:
9292

9393
```
94-
personal.openWallet("pcsc://a4d73015")
94+
personal.openWallet("keycard://a4d73015")
9595
```
9696

9797
4. Check that creation was successful by typing e.g. `personal`. Then use it like a regular wallet.

‎accounts/scwallet/hub.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import (
4949
)
5050

5151
// Scheme is the URI prefix for smartcard wallets.
52-
const Scheme = "pcsc"
52+
const Scheme = "keycard"
5353

5454
// refreshCycle is the maximum time between wallet refreshes (if USB hotplug
5555
// notifications don't work).

0 commit comments

Comments
 (0)