rewriting identity signing process