<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Actually, we have a pending commit waiting to be merged into NDN-TLV specification: <a href="https://gerrit.named-data.net/c/NDN-TLV/+/4942">https://gerrit.named-data.net/c/NDN-TLV/+/4942</a></div><div>This commit defines the new NDN Signed Interest format.</div><div>Also, there is a corresponding implementation in ndn-lite library: <a href="https://github.com/named-data-iot/ndn-lite/blob/master/encode/signed-interest.h">https://github.com/named-data-iot/ndn-lite/blob/master/encode/signed-interest.h</a> and <a href="https://github.com/named-data-iot/ndn-lite/blob/master/encode/signed-interest.c">https://github.com/named-data-iot/ndn-lite/blob/master/encode/signed-interest.c</a>.</div><div><br></div><div>Hope it helps.</div><div><br></div><div>Best,</div><div>Zhiyi</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 11, 2019 at 8:20 PM 侯 ?博 via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="ZH-CN">
<div class="gmail-m_1239373810797417950WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello all,</span></p>
<p class="MsoNormal"><span lang="EN-US">I want to add signature for Interest packet. So I do some actions as follow:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">Firstly, I add a member named m_signature in Interest.hpp.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">Secondly, I add set and get function for this field of m_signature in interest.hpp.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">Thirdly, I change the function of wireEncode and wireDecode in interest.cpp to encode and decode it.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">Finally, I  add a value for m_signature  in ndn-consumer.cpp.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">However, when I run the test program of ndn-simple,it shows the folloing errors</span><span style="font-size:12pt">,<span lang="EN-US">is there anyone can help me to resolve it.
<u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::Interest::Error> >' 
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:21pt"><span lang="EN-US" style="font-size:12pt">what():  unrecognized element of critical type 4294967295<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt">Thanks a lot.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;font-family:SimSun"><u></u> <u></u></span></p>
</div>
</div>

_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
</blockquote></div>