Determines if the given public key is valid or not.
true if the public key is valid, false otherwise.
*non-null* byte array.