func AddKeyPair(wallet localWallet, publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey) localWallet {
	for _, entry := range wallet {
		if string(entry.PublicKey) == string(publicKey) || string(entry.PrivateKey) == string(privateKey) {
			return wallet
		}
	}
	wallet = append(wallet, credentials{PublicKey: publicKey, PrivateKey: privateKey})
	log.Println("New credentials appended to file")
	return wallet
}
// AddKeyPair appends a given public and private key to
// the localWallet, ignoring them if they already exist
AddKeyPair appends a given public and private key to
the localWallet, ignoring them if they already exist
// AddKeyPair appends a given public and private key to // the localWallet ignoring them if they already exist
func AddKeyPair(wallet localWallet, publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey) localWallet {
	for _, entry := range wallet {
		if string(entry.PublicKey) == string(publicKey) || string(entry.PrivateKey) == string(privateKey) {
			return wallet
		}
	}
	wallet = append(wallet, credentials{PublicKey: publicKey, PrivateKey: privateKey})
	log.Println("New credentials appended to file")
	return wallet
}
func AddKeyPair ( wallet localWallet , publicKey ed25519 . PublicKey , privateKey ed25519 . PrivateKey ) localWallet { for _ , entry := range wallet { if string ( entry . PublicKey ) == string ( publicKey ) || string ( entry . PrivateKey ) == string ( privateKey ) { return wallet } } wallet = append ( wallet , credentials { PublicKey : publicKey , PrivateKey : privateKey } ) log . Println ( " " ) return wallet }
AddKeyPair appends a given public and private key to
the localWallet, ignoring them if they already exist
AddKeyPair appends a given public and private key to the localWallet ignoring them if they already exist