accounts: refactor API for generalized USB wallets

This commit is contained in:
Péter Szilágyi
2017-08-09 12:51:16 +03:00
parent db568a61e2
commit 5d9ac49c7e
13 changed files with 1450 additions and 1965 deletions

View File

@ -42,8 +42,9 @@ type Wallet interface {
URL() URL
// Status returns a textual status to aid the user in the current state of the
// wallet.
Status() string
// wallet. It also returns an error indicating any failure the wallet might have
// encountered.
Status() (string, error)
// Open initializes access to a wallet instance. It is not meant to unlock or
// decrypt account keys, rather simply to establish a connection to hardware