Updating public key