[Ndn-interest] How to send a signed interest in ndn-js?
Thompson, Jeff
jefft0 at remap.ucla.edu
Fri Feb 10 10:42:21 PST 2017
Hi Matteo,
Usually the reason to sign an interest is to make a command interest. Have you looked at the example?
https://github.com/named-data/ndn-js/blob/master/examples/node/test-encode-decode-interest.js#L231
Here’s the API for makeCommandInterest:
http://named-data.net/doc/ndn-ccl-api/face.html#face-makecommandinterest-method
Thanks,
- Jeff T
On 2017/2/10, 10:18:08, "Ndn-interest on behalf of Matteo Bertolino" <ndn-interest-bounces at lists.cs.ucla.edu<mailto:ndn-interest-bounces at lists.cs.ucla.edu> on behalf of Matteo.Bertolino at eurecom.fr<mailto:Matteo.Bertolino at eurecom.fr>> wrote:
Good morning all,
I wrote:
var k = new KeyChain();
k.prototype.sign(interest, '/root/site1');
or
k.prototype.signWithSha256(interest');
But... nothing happens.
Any idea ?
-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr
_______________________________________________
Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu<mailto:Ndn-interest at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170210/2116c8da/attachment.html>
More information about the Ndn-interest
mailing list