provide an equality method for public keys