<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Usually, the client uses a Validator in the NDN library which fetches the public key certificate of the producer using the key name in the data packet. Can you say more about how your application is set up?</div>
<div><br>
</div>
<div>Here is a self-contained example which makes a Data packet, then validates it using a Validator that is pre-loaded with the signer’s public key.</div>
<div><a href="https://github.com/named-data/ndn-cpp/blob/master/examples/test-encode-decode-data.cpp#L323">https://github.com/named-data/ndn-cpp/blob/master/examples/test-encode-decode-data.cpp#L323</a></div>
<div><br>
</div>
<div>Thanks,</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Nfd-dev <<a href="mailto:nfd-dev-bounces@lists.cs.ucla.edu">nfd-dev-bounces@lists.cs.ucla.edu</a>> on behalf of Garegin Grigoryan <<a href="mailto:grigorg@clarkson.edu">grigorg@clarkson.edu</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 9, 2018 at 9:40:00<br>
<span style="font-weight:bold">To: </span>nfd-dev <<a href="mailto:nfd-dev@lists.cs.ucla.edu">nfd-dev@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[Nfd-dev] Signature verification by the consumer<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">I’m new to NFD and NDN. I wonder,  are there any examples of code, where consumer:</div>
<div class=""><br class="">
</div>
<div class="">1) Extracts the public key of the producer;</div>
<div class=""><br class="">
</div>
<div class="">2) Verifies the signature of the data packet using that public key?</div>
<div class=""><br class="">
</div>
<div class="">Thank you very much.</div>
<div class=""><br class="">
</div>
<br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
Sincerely, <br class="">
Garegin Grigoryan<br class="">
<a href="mailto:grigorg@clarkson.edu" class="">grigorg@clarkson.edu</a></div>
</div>
</div>
<br class="">
</div>
</div>
</span>
</body>
</html>