Versions in this module Expand all Collapse all v3 v3.3.5 May 9, 2020 Changes in this version + const MimetypeClique + const MimetypeTextPlain + const MimetypeTextWithValidator + const MimetypeTypedData + 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 + func TextAndHash(data []byte) ([]byte, string) + func TextHash(data []byte) []byte + 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, name string) + Unsubscribe func(sink chan<- WalletEvent) + 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, name string) + func (am *Manager) Unsubscribe(sink chan<- WalletEvent) + func (am *Manager) Wallet(url string) (Wallet, error) + func (am *Manager) Wallets() []Wallet + type URL struct + Path string + Scheme string + func (u *URL) UnmarshalJSON(input []byte) error + 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 gochain.ChainStateReader) + SignData func(account Account, mimeType string, data []byte) ([]byte, error) + SignDataWithPassphrase func(account Account, passphrase, mimeType string, data []byte) ([]byte, error) + SignText func(account Account, text []byte) ([]byte, error) + SignTextWithPassphrase 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 + type WalletFeed struct + func (f *WalletFeed) Close() + func (f *WalletFeed) Len() int + func (f *WalletFeed) Send(e WalletEvent) + func (f *WalletFeed) Subscribe(ch chan<- WalletEvent, name string) + func (f *WalletFeed) Unsubscribe(ch chan<- WalletEvent) Other modules containing this package github.com/beyonderyue/gochain