func (w localWallet) Lookup(key ed25519.PublicKey) ed25519.PrivateKey {
	for _, entry := range w {
		if bytes.Equal(entry.PublicKey, key) {
			return entry.PrivateKey
		}
	}

	return nil
}
// looks up a public key in the wallet, retrieving the
// private key if one exists, or nil
looks up a public key in the wallet, retrieving the
private key if one exists, or nil
// looks up a public key in the wallet retrieving the // private key if one exists or nil
func (w localWallet) Lookup(key ed25519.PublicKey) ed25519.PrivateKey {
	for _, entry := range w {
		if bytes.Equal(entry.PublicKey, key) {
			return entry.PrivateKey
		}
	}
	return nil
}
func ( w localWallet ) Lookup ( key ed25519 . PublicKey ) ed25519 . PrivateKey { for _ , entry := range w { if bytes . Equal ( entry . PublicKey , key ) { return entry . PrivateKey } } return nil }
looks up a public key in the wallet, retrieving the
private key if one exists, or nil
looks up a public key in the wallet retrieving the private key if one exists or nil