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 ¶
- Constants
- type Wallet
- type Wallets
- func (ws *Wallets) CreateWallet() Wallet
- func (ws *Wallets) DeleteWallet(key *core.KeyPair) error
- func (ws *Wallets) DeleteWallets() error
- func (ws *Wallets) GetAddresses() []core.Address
- func (ws Wallets) GetKeyPairByAddress(address core.Address) core.KeyPair
- func (ws Wallets) GetWalletByAddress(address core.Address) Wallet
- func (ws *Wallets) LoadWalletFromFile() error
- func (ws Wallets) SaveWalletToFile()
Constants ¶
const WalletFile = "../bin/wallets.dat"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallets ¶
type Wallets struct {
Wallets []Wallet
}
func NewWallets ¶
func (*Wallets) CreateWallet ¶
func (*Wallets) DeleteWallets ¶
func (*Wallets) GetAddresses ¶
func (Wallets) GetKeyPairByAddress ¶
func (Wallets) GetWalletByAddress ¶
func (*Wallets) LoadWalletFromFile ¶
func (Wallets) SaveWalletToFile ¶
func (ws Wallets) SaveWalletToFile()
SaveToFile saves wallets to a file