func Authenticate(newPassword *string) {
	if newPassword == nil {
		fmt.Print("Enter Password: ")
		bytePassword, err := terminal.ReadPassword(int(syscall.Stdin))
		if err == nil {
			password = strings.TrimSpace(string(bytePassword))
			fmt.Print("\n")
		} else {
			fmt.Println("Error while setting password")
		}
	} else {
		password = *newPassword
	}
}
// Authenticate stores the provided password for use
// when reading and writing to the encrypted wallet
Authenticate stores the provided password for use
when reading and writing to the encrypted wallet
// Authenticate stores the provided password for use // when reading and writing to the encrypted wallet
func Authenticate(newPassword *string) {
	if newPassword == nil {
		fmt.Print("Enter Password: ")
		bytePassword, err := terminal.ReadPassword(int(syscall.Stdin))
		if err == nil {
			password = strings.TrimSpace(string(bytePassword))
			fmt.Print("\n")
		} else {
			fmt.Println("Error while setting password")
		}
	} else {
		password = *newPassword
	}
}
func Authenticate ( newPassword * string ) { if newPassword == nil { fmt . Print ( " " ) bytePassword , err := terminal . ReadPassword ( int ( syscall . Stdin ) ) if err == nil { password = strings . TrimSpace ( string ( bytePassword ) ) fmt . Print ( " \n " ) } else { fmt . Println ( " " ) } } else { password = * newPassword } }
Authenticate stores the provided password for use
when reading and writing to the encrypted wallet
Authenticate stores the provided password for use when reading and writing to the encrypted wallet