Documentation ¶
Index ¶
- type ExportMode
- type ImportMode
- type WalletError
- type WalletKeeper
- func (wk *WalletKeeper) CreateWallet(passphrase string) error
- func (wk *WalletKeeper) DeleteWallet(index int, passphrase string) error
- func (wk *WalletKeeper) ExportWallet(index int, mode ExportMode, passphrase string) ([]byte, error)
- func (wk *WalletKeeper) ImportWallet(mode ImportMode, input []byte, passphrase string) error
- func (wk *WalletKeeper) NumberOfAccounts() int
- func (wk *WalletKeeper) PublicKey(index int) (string, error)
- func (wk *WalletKeeper) SignTransaction(chainId *big.Int, tx *types.Transaction, signer gethcommon.Address, ...) (*types.Transaction, error)
- func (wk *WalletKeeper) Unlock(index int, passphrase string) error
- type WalletUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportMode ¶
type ExportMode uint8
const ( ExportModeSeedPhrase ExportMode = iota ExportModePrivateKey )
type ImportMode ¶
type ImportMode uint8
const ( ImportModeSeedPhrase ImportMode = iota ImportModePrivateKey )
type WalletError ¶
type WalletError uint
const ( Unknown WalletError = common.ErrorDomainWallet + iota FileSystemAccess AccountNotFound InvalidPrivateKey InvalidSeedPhrase SigningFailed )
func (WalletError) Error ¶
func (e WalletError) Error() string
type WalletKeeper ¶
type WalletKeeper struct {
// contains filtered or unexported fields
}
func NewWalletKeeper ¶
func NewWalletKeeper(ui WalletUI, autoUnlock bool) (*WalletKeeper, error)
func (*WalletKeeper) CreateWallet ¶
func (wk *WalletKeeper) CreateWallet(passphrase string) error
func (*WalletKeeper) DeleteWallet ¶
func (wk *WalletKeeper) DeleteWallet(index int, passphrase string) error
func (*WalletKeeper) ExportWallet ¶
func (wk *WalletKeeper) ExportWallet(index int, mode ExportMode, passphrase string) ([]byte, error)
func (*WalletKeeper) ImportWallet ¶
func (wk *WalletKeeper) ImportWallet(mode ImportMode, input []byte, passphrase string) error
func (*WalletKeeper) NumberOfAccounts ¶
func (wk *WalletKeeper) NumberOfAccounts() int
func (*WalletKeeper) SignTransaction ¶
func (wk *WalletKeeper) SignTransaction( chainId *big.Int, tx *types.Transaction, signer gethcommon.Address, autosign bool, ) (*types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.