Documentation
¶
Index ¶
- type Wallet
- func (w Wallet) ChangePassword(addr types.Address, pwd string, newPwd string) error
- func (ws *Wallet) Close() error
- func (w *Wallet) CurrentId() (types.Address, error)
- func (w *Wallet) IsWalletExist(address types.Address) (bool, error)
- func (w *Wallet) NewWallet() (types.Address, error)
- func (w *Wallet) NewWalletBySeed(seed, password string) (types.Address, error)
- func (w *Wallet) RemoveWallet(id types.Address) error
- func (w *Wallet) WalletIds() ([]types.Address, error)
- type WalletStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct {
qwallet.WalletStore
// contains filtered or unexported fields
}
func (Wallet) ChangePassword ¶
ChangePassword changes password to a new password
func (*Wallet) IsWalletExist ¶
IsWalletExist check is the wallet exist by master address
func (*Wallet) NewWalletBySeed ¶
NewWalletBySeed create wallet from hex seed string
func (*Wallet) RemoveWallet ¶
RemoveWallet removes wallet by account
type WalletStore ¶
type WalletStore interface {
NewWallet() (types.Address, error)
NewWalletBySeed(seed, password string) (types.Address, error)
CurrentId() (types.Address, error)
WalletIds() ([]types.Address, error)
IsWalletExist(address types.Address) (bool, error)
RemoveWallet(id types.Address) error
ChangePassword(addr types.Address, pwd string, newPwd string) error
}
Click to show internal directories.
Click to hide internal directories.