func createWalletFile() []byte {
	fmt.Println("Creating new wallet file.")
	if password == "" {
		fmt.Println("Would you like to set a password? (blank for none)")
		Authenticate(nil)
	}

	var data []byte
	if password != "" {
		data = []byte("AESENCRYPT") // encrypted
	} else {
		data = []byte("") // not encrypted
	}

	err := ioutil.WriteFile(FILENAME, data, 0600)
	if err != nil {
		log.Fatal("Could not create wallet file")
	}

	return data
}
// creates a new, empty wallet file
creates a new, empty wallet file
// creates a new empty wallet file
func createWalletFile() []byte {
	fmt.Println("Creating new wallet file.")
	if password == "" {
		fmt.Println("Would you like to set a password? (blank for none)")
		Authenticate(nil)
	}
	var data []byte
	if password != "" {
		data = []byte("AESENCRYPT") 
	} else {
		data = []byte("") 
	}
	err := ioutil.WriteFile(FILENAME, data, 0600)
	if err != nil {
		log.Fatal("Could not create wallet file")
	}
	return data
}
func createWalletFile ( ) [ ] byte { fmt . Println ( " " ) if password == " " { fmt . Println ( " " ) Authenticate ( nil ) } var data [ ] byte if password != " " { data = [ ] byte ( " " ) } else { data = [ ] byte ( " " ) } err := ioutil . WriteFile ( FILENAME , data , 0600 ) if err != nil { log . Fatal ( " " ) } return data }
creates a new, empty wallet file
creates a new empty wallet file
// encrypted // not encrypted