semantically validation of public key
#168