move proc_sign to protocol module