Documentation
¶
Overview ¶
Copyright (C) 2018 go-dappley authors
This file is part of the go-dappley library.
the go-dappley library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
the go-dappley library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the go-dappley library. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func Exists(path string) bool
- func GetWalletFilePath() string
- func RemoveWalletFile()
- type Wallet
- type WalletData
- type WalletManager
- func (wm *WalletManager) AddWallet(wallet *Wallet)
- func (wm *WalletManager) GetAddresses() []core.Address
- func (wm *WalletManager) GetAddressesWithPassphrase(password string) ([]string, error)
- func (wm *WalletManager) GetKeyPairByAddress(address core.Address) *core.KeyPair
- func (wm *WalletManager) GetWalletByAddress(address core.Address) *Wallet
- func (wm *WalletManager) GetWalletByAddressWithPassphrase(address core.Address, password string) (*Wallet, error)
- func (wm *WalletManager) IsFileEmpty() (bool, error)
- func (wm *WalletManager) LoadFromFile() error
- func (wm *WalletManager) NewTimer(timeout time.Duration)
- func (wm *WalletManager) SaveWalletToFile()
- func (wm *WalletManager) SetUnlockTimer(timeout time.Duration)
- func (wm *WalletManager) UnlockExpire()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWalletFilePath ¶ added in v0.1.2
func GetWalletFilePath() string
func RemoveWalletFile ¶ added in v0.1.2
func RemoveWalletFile()
Types ¶
type WalletData ¶ added in v0.1.2
type WalletManager ¶ added in v0.1.2
type WalletManager struct {
Wallets []*Wallet
PassPhrase []byte
Locked bool
// contains filtered or unexported fields
}
func NewWalletManager ¶ added in v0.1.2
func NewWalletManager(fileLoader storage.FileStorage) *WalletManager
func (*WalletManager) AddWallet ¶ added in v0.1.2
func (wm *WalletManager) AddWallet(wallet *Wallet)
func (*WalletManager) GetAddresses ¶ added in v0.1.2
func (wm *WalletManager) GetAddresses() []core.Address
func (*WalletManager) GetAddressesWithPassphrase ¶ added in v0.1.2
func (wm *WalletManager) GetAddressesWithPassphrase(password string) ([]string, error)
func (*WalletManager) GetKeyPairByAddress ¶ added in v0.1.2
func (wm *WalletManager) GetKeyPairByAddress(address core.Address) *core.KeyPair
func (*WalletManager) GetWalletByAddress ¶ added in v0.1.2
func (wm *WalletManager) GetWalletByAddress(address core.Address) *Wallet
func (*WalletManager) GetWalletByAddressWithPassphrase ¶ added in v0.1.2
func (*WalletManager) IsFileEmpty ¶ added in v0.1.2
func (wm *WalletManager) IsFileEmpty() (bool, error)
func (*WalletManager) LoadFromFile ¶ added in v0.1.2
func (wm *WalletManager) LoadFromFile() error
func (*WalletManager) NewTimer ¶ added in v0.1.2
func (wm *WalletManager) NewTimer(timeout time.Duration)
func (*WalletManager) SaveWalletToFile ¶ added in v0.1.2
func (wm *WalletManager) SaveWalletToFile()
SaveToFile saves Wallets to a file
func (*WalletManager) SetUnlockTimer ¶ added in v0.1.2
func (wm *WalletManager) SetUnlockTimer(timeout time.Duration)
func (*WalletManager) UnlockExpire ¶ added in v0.1.2
func (wm *WalletManager) UnlockExpire()