Updating public key mechanism