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
ec4fba83
Commit
ec4fba83
authored
Mar 20, 2019
by
Guillaume Ballet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting fixes
parent
0a0b9370
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
wallet.go
accounts/scwallet/wallet.go
+16
-11
No files found.
accounts/scwallet/wallet.go
View file @
ec4fba83
...
...
@@ -73,6 +73,7 @@ var (
DerivationSignatureHash
=
sha256
.
Sum256
(
common
.
Hash
{}
.
Bytes
())
)
// List of APDU command-related constants
const
(
claISO7816
=
0
claSCWallet
=
0x80
...
...
@@ -82,13 +83,17 @@ const (
sw1GetResponse
=
0x61
sw1Ok
=
0x90
insVerifyPin
=
0x20
insUnblockPin
=
0x22
insExportKey
=
0xC2
insSign
=
0xC0
insLoadKey
=
0xD0
insDeriveKey
=
0xD1
insStatus
=
0xF2
insVerifyPin
=
0x20
insUnblockPin
=
0x22
insExportKey
=
0xC2
insSign
=
0xC0
insLoadKey
=
0xD0
insDeriveKey
=
0xD1
insStatus
=
0xF2
)
// List of ADPU command parameters
const
(
P1DeriveKeyFromMaster
=
uint8
(
0x00
)
P1DeriveKeyFromParent
=
uint8
(
0x01
)
P1DeriveKeyFromCurrent
=
uint8
(
0x10
)
...
...
@@ -102,12 +107,12 @@ const (
signP2OnlyBlock
=
uint8
(
0x81
)
exportP1Any
=
uint8
(
0x00
)
exportP2Pubkey
=
uint8
(
0x01
)
// Minimum time to wait between self derivation attempts, even it the user is
// requesting accounts like crazy.
selfDeriveThrottling
=
time
.
Second
)
// Minimum time to wait between self derivation attempts, even it the user is
// requesting accounts like crazy.
const
selfDeriveThrottling
=
time
.
Second
// Wallet represents a smartcard wallet instance.
type
Wallet
struct
{
Hub
*
Hub
// A handle to the Hub that instantiated this wallet.
...
...
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