check public key