From f7027dd68ce115908ed8e359862cb7b21ddac15f Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Sun, 7 Jan 2018 18:38:11 +0000 Subject: accounts, core, internal, node: Add support for smartcard wallets --- node/config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'node') 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 -- cgit v1.2.3