Versions in this module Expand all Collapse all v0 v0.1.0 Mar 12, 2018 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") + func NewAuthNeededError(needed string) error + type Account struct + Address common.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) + Open func(passphrase string) error + SelfDerive func(base DerivationPath, chain baboqoo.ChainStateReader) + SignHash func(account Account, hash []byte) ([]byte, error) + SignHashWithPassphrase func(account Account, passphrase string, hash []byte) ([]byte, error) + SignTx func(account Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) + SignTxWithPassphrase func(account Account, passphrase string, tx *types.Transaction, chainID *big.Int) (*types.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