add rpc debug feature && fix rsa signature bugs