implement public key search and retrieval