diff options
author | Nick Johnson <arachnid@notdot.net> | 2018-01-08 02:38:11 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-04-08 19:19:37 +0800 |
commit | f7027dd68ce115908ed8e359862cb7b21ddac15f (patch) | |
tree | 46132f008e2410a4e05804e6a846648b852b6711 /node | |
parent | 3996bc1ad91665ad30036713fba11840a36dfff0 (diff) | |
download | go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar.gz go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar.bz2 go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar.lz go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar.xz go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.tar.zst go-tangerine-f7027dd68ce115908ed8e359862cb7b21ddac15f.zip |
accounts, core, internal, node: Add support for smartcard wallets
Diffstat (limited to 'node')
-rw-r--r-- | node/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node/config.go b/node/config.go index 46876c157..244b15459 100644 --- a/node/config.go +++ b/node/config.go @@ -29,6 +29,7 @@ import ( "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/accounts/external" "github.com/ethereum/go-ethereum/accounts/keystore" + "github.com/ethereum/go-ethereum/accounts/scwallet" "github.com/ethereum/go-ethereum/accounts/usbwallet" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" @@ -504,6 +505,12 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) { backends = append(backends, trezorhub) } } + // Start a smart card hub + if schub, err := scwallet.NewHub(scwallet.Scheme, keydir); err != nil { + log.Warn(fmt.Sprintf("Failed to start smart card hub, disabling: %v", err)) + } else { + backends = append(backends, schub) + } } return accounts.NewManager(&accounts.Config{InsecureUnlockAllowed: conf.InsecureUnlockAllowed}, backends...), ephemeral, nil |