Rename address.go to wallet.go

This commit is contained in:
Ivan Kuznetsov 2017-09-07 16:33:17 +07:00
parent 70c04fa8ce
commit 24b19381d2
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,12 @@ func (w Wallet) GetAddress() []byte {
return address
}
// NewWallet ...
// SaveToFile saves the wallet to a file
func (w Wallet) SaveToFile() {
}
// NewWallet creates and returns a Wallet
func NewWallet() *Wallet {
private, public := newKeyPair()
wallet := Wallet{private, public}