func (ws *Wallets) GetAddresses() []string {
	var addresses []string
	for address := range ws.Wallets {
		addresses = append(addresses, address)
	}
	return addresses
}
GetAddresses returns an array of addresses stored in the wallet file
package wallet
import (
	"bytes"
	"crypto/elliptic"
	"encoding/gob"
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"github.com/gelembjuk/democoin/lib/utils"
)
type Wallets struct {
	DataDir string
	Wallets map[string]*Wallet
	Logger *utils.LoggerMan
	WalletsFile string
}
type WalletsFile struct {
	Wallets map[string]*Wallet
}
func (ws *Wallets) CreateWallet() (string, error) {
	wallet := Wallet{}
	wallet.MakeWallet()
	address := fmt.Sprintf("%s", wallet.GetAddress())
	ws.Wallets[address] = &wallet
	err := ws.SaveToFile()
	if err != nil {
		return "", err
	}
	return address, nil
}