implemented public key resolver in client