Versions in this module Expand all Collapse all v1 v1.1.1 Oct 29, 2019 Changes in this version + var DefaultBaseDerivationPath = DerivationPath + var DefaultLedgerBaseDerivationPath = DerivationPath + var DefaultRootDerivationPath = DerivationPath + var ErrInvalidPassphrase = errors.New("invalid passphrase") + var ErrNotSupported = errors.New("not supported") + var ErrUnknownAccount = errors.New("unknown account") + var ErrUnknownWallet = errors.New("unknown wallet") + var ErrWalletAlreadyOpen = errors.New("wallet already open") + var ErrWalletClosed = errors.New("wallet closed") + var LogTag = "accounts" + func NewAuthNeededError(needed string) error + type Account struct + Address types.Address + URL URL + type AuthNeededError struct + Needed string + func (err *AuthNeededError) Error() string + type Backend interface + Subscribe func(sink chan<- WalletEvent) event.Subscription + Wallets func() []Wallet + type DerivationPath []uint32 + func ParseDerivationPath(path string) (DerivationPath, error) + func (path DerivationPath) String() string + type Manager struct + func NewManager(backends ...Backend) *Manager + func (am *Manager) Backends(kind reflect.Type) []Backend + func (am *Manager) Close() error + func (am *Manager) Find(account Account) (Wallet, error) + func (am *Manager) Subscribe(sink chan<- WalletEvent) event.Subscription + func (am *Manager) Wallet(url string) (Wallet, error) + func (am *Manager) Wallets() []Wallet + type URL struct + Path string + Scheme string + func (u URL) Cmp(url URL) int + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) String() string + func (u URL) TerminalString() string + type Wallet interface + Accounts func() []Account + Close func() error + Contains func(account Account) bool + Derive func(path DerivationPath, pin bool) (Account, error) + GetKeyWithPassphrase func(account Account, passphrase string) (*ecdsa.PrivateKey, error) + Open func(passphrase string) error + SelfDerive func(base DerivationPath, chain common.ChainStateReader) + SignHash func(account Account, hash []byte) ([]byte, error) + SignHashWithPassphrase func(account Account, passphrase string, hash []byte) ([]byte, error) + SignHeader func(h *block.Header, chainID *big.Int) (*block.Header, error) + SignTx func(account Account, tx *transaction.Transaction, chainID *big.Int) (*transaction.Transaction, error) + SignTxWithPassphrase func(account Account, passphrase string, tx *transaction.Transaction, ...) (*transaction.Transaction, error) + Status func() (string, error) + URL func() URL + type WalletEvent struct + Kind WalletEventType + Wallet Wallet + type WalletEventType int + const WalletArrived + const WalletDropped + const WalletOpened