add a little translation. rewrite procedure of encrypt and sign using interactive agent