Versions in this module Expand all Collapse all v0 v0.1.2 Nov 4, 2022 Changes in this version + var DefaultBaseDerivationPath = accounts.DefaultBaseDerivationPath + var DefaultRootDerivationPath = accounts.DefaultRootDerivationPath + func MustParseDerivationPath(path string) accounts.DerivationPath + func NewEntropy(bits int) ([]byte, error) + func NewMnemonic(bits int) (string, error) + func NewMnemonicFromEntropy(entropy []byte) (string, error) + func NewSeed() ([]byte, error) + func NewSeedFromMnemonic(mnemonic string) ([]byte, error) + func ParseDerivationPath(path string) (accounts.DerivationPath, error) + type Wallet struct + func NewFromMnemonic(mnemonic string) (*Wallet, error) + func NewFromSeed(seed []byte) (*Wallet, error) + func (w *Wallet) Accounts() []accounts.Account + func (w *Wallet) Address(account accounts.Account) (common.Address, error) + func (w *Wallet) AddressBytes(account accounts.Account) ([]byte, error) + func (w *Wallet) AddressHex(account accounts.Account) (string, error) + func (w *Wallet) Close() error + func (w *Wallet) Contains(account accounts.Account) bool + func (w *Wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error) + func (w *Wallet) Open(passphrase string) error + func (w *Wallet) Path(account accounts.Account) (string, error) + func (w *Wallet) PrivateKey(account accounts.Account) (*ecdsa.PrivateKey, error) + func (w *Wallet) PrivateKeyBytes(account accounts.Account) ([]byte, error) + func (w *Wallet) PrivateKeyHex(account accounts.Account) (string, error) + func (w *Wallet) PublicKey(account accounts.Account) (*ecdsa.PublicKey, error) + func (w *Wallet) PublicKeyBytes(account accounts.Account) ([]byte, error) + func (w *Wallet) PublicKeyHex(account accounts.Account) (string, error) + func (w *Wallet) SelfDerive(base []accounts.DerivationPath, chain ethereum.ChainStateReader) + func (w *Wallet) SetFixIssue172(fixIssue172 bool) + func (w *Wallet) SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error) + func (w *Wallet) SignDataWithPassphrase(account accounts.Account, passphrase, mimeType string, data []byte) ([]byte, error) + func (w *Wallet) SignHash(account accounts.Account, hash []byte) ([]byte, error) + func (w *Wallet) SignHashWithPassphrase(account accounts.Account, passphrase string, hash []byte) ([]byte, error) + func (w *Wallet) SignText(account accounts.Account, text []byte) ([]byte, error) + func (w *Wallet) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error) + func (w *Wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) + func (w *Wallet) SignTxEIP155(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) + func (w *Wallet) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, ...) (*types.Transaction, error) + func (w *Wallet) Status() (string, error) + func (w *Wallet) URL() accounts.URL + func (w *Wallet) Unpin(account accounts.Account) error