added hashcode method to UserPublicKey