func WriteWallet(wallet localWallet) {
	data, err := yaml.Marshal(&wallet)
	if err != nil {
		log.Fatal(err)
	}

	if password != "" {
		data = AESEncrypt(data, password)
	}

	err = ioutil.WriteFile(FILENAME, data, 0600)
	if err != nil {
		log.Fatal("Could not write wallet")
	}
}
// WriteWallet writes the localWallet to disk
WriteWallet writes the localWallet to disk
// WriteWallet writes the localWallet to disk
func WriteWallet(wallet localWallet) {
	data, err := yaml.Marshal(&wallet)
	if err != nil {
		log.Fatal(err)
	}
	if password != "" {
		data = AESEncrypt(data, password)
	}
	err = ioutil.WriteFile(FILENAME, data, 0600)
	if err != nil {
		log.Fatal("Could not write wallet")
	}
}
func WriteWallet ( wallet localWallet ) { data , err := yaml . Marshal ( & wallet ) if err != nil { log . Fatal ( err ) } if password != " " { data = AESEncrypt ( data , password ) } err = ioutil . WriteFile ( FILENAME , data , 0600 ) if err != nil { log . Fatal ( " " ) } }
WriteWallet writes the localWallet to disk
WriteWallet writes the localWallet to disk