Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2024 v0.0.1 Jun 25, 2024 Changes in this version + const MimetypeClique + const MimetypeDataWithValidator + const MimetypeTextPlain + const MimetypeTypedData + var DefaultBaseDerivationPath = DerivationPath + var DefaultRootDerivationPath = DerivationPath + var ErrInvalidPassphrase = errors.New("invalid password") + 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 LegacyLedgerBaseDerivationPath = DerivationPath + 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 AccountsByURL []Account + func (a AccountsByURL) Len() int + func (a AccountsByURL) Less(i, j int) bool + func (a AccountsByURL) Swap(i, j int) + type AuthNeededError struct + Needed string + func (err *AuthNeededError) Error() string + type Backend interface + Subscribe func(sink chan<- WalletEvent) event.Subscription + Wallets func() []Wallet + type Config struct + InsecureUnlockAllowed bool + type DerivationPath []uint32 + func ParseDerivationPath(path string) (DerivationPath, error) + func (path *DerivationPath) UnmarshalJSON(b []byte) error + func (path DerivationPath) MarshalJSON() ([]byte, error) + func (path DerivationPath) String() string + type Manager struct + func NewManager(config *Config, backends ...Backend) *Manager + func (am *Manager) Accounts() []common.Address + func (am *Manager) AddBackend(backend Backend) + func (am *Manager) Backends(kind reflect.Type) []Backend + func (am *Manager) Close() error + func (am *Manager) Config() *Config + 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) 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(bases []DerivationPath, chain interfaces.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 WalletsByURL []Wallet + func (w WalletsByURL) Len() int + func (w WalletsByURL) Less(i, j int) bool + func (w WalletsByURL) Swap(i, j int)