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
1ecf99bd
Unverified
Commit
1ecf99bd
authored
Jan 27, 2017
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/usbwallet: skip support on iOS altogether
parent
e0fb4d1d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
ledger.go
accounts/usbwallet/ledger.go
+2
-0
ledger_test.go
accounts/usbwallet/ledger_test.go
+2
-0
usbwallet.go
accounts/usbwallet/usbwallet.go
+2
-0
usbwallet_ios.go
accounts/usbwallet/usbwallet_ios.go
+38
-0
No files found.
accounts/usbwallet/ledger.go
View file @
1ecf99bd
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
// wallets. The wire protocol spec can be found in the Ledger Blue GitHub repo:
// wallets. The wire protocol spec can be found in the Ledger Blue GitHub repo:
// https://raw.githubusercontent.com/LedgerHQ/blue-app-eth/master/doc/ethapp.asc
// https://raw.githubusercontent.com/LedgerHQ/blue-app-eth/master/doc/ethapp.asc
// +build !ios
package
usbwallet
package
usbwallet
import
(
import
(
...
...
accounts/usbwallet/ledger_test.go
View file @
1ecf99bd
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !ios
package
usbwallet
package
usbwallet
/*
/*
...
...
accounts/usbwallet/usb.go
→
accounts/usbwallet/usb
wallet
.go
View file @
1ecf99bd
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !ios
// Package usbwallet implements support for USB hardware wallets.
// Package usbwallet implements support for USB hardware wallets.
package
usbwallet
package
usbwallet
...
...
accounts/usbwallet/usbwallet_ios.go
0 → 100644
View file @
1ecf99bd
// Copyright 2017 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// This file contains the implementation for interacting with the Ledger hardware
// wallets. The wire protocol spec can be found in the Ledger Blue GitHub repo:
// https://raw.githubusercontent.com/LedgerHQ/blue-app-eth/master/doc/ethapp.asc
// +build ios
package
usbwallet
import
(
"errors"
"github.com/ethereum/go-ethereum/accounts"
)
// Here be dragons! There is no USB support on iOS.
// ErrIOSNotSupported is returned for all USB hardware backends on iOS.
var
ErrIOSNotSupported
=
errors
.
New
(
"no USB support on iOS"
)
func
NewLedgerHub
()
(
accounts
.
Backend
,
error
)
{
return
nil
,
ErrIOSNotSupported
}
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