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
ec4fba83
"git@gfx.cafe:open/bor.git" did not exist on "1fb84d3c5f486ef0d42a21f3cd8416d6ef211604"
Commit
ec4fba83
authored
Mar 20, 2019
by
Guillaume Ballet
Browse files
Options
Downloads
Patches
Plain Diff
Formatting fixes
parent
0a0b9370
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
accounts/scwallet/wallet.go
+16
-11
16 additions, 11 deletions
accounts/scwallet/wallet.go
with
16 additions
and
11 deletions
accounts/scwallet/wallet.go
+
16
−
11
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
...
...
@@ -89,6 +90,10 @@ const (
insLoadKey
=
0xD0
insDeriveKey
=
0xD1
insStatus
=
0xF2
)
// List of ADPU command parameters
const
(
P1DeriveKeyFromMaster
=
uint8
(
0x00
)
P1DeriveKeyFromParent
=
uint8
(
0x01
)
P1DeriveKeyFromCurrent
=
uint8
(
0x10
)
...
...
@@ -102,11 +107,11 @@ 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
)
const
selfDeriveThrottling
=
time
.
Second
// Wallet represents a smartcard wallet instance.
type
Wallet
struct
{
...
...
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