Major update: refactored the API of all classes to make attributes start with a lower case letter and rename encode=>to_ccnb() and decode()=>from_ccnb.
(according to the API notes: http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt )
diff --git a/js/lwNDN.js b/js/lwNDN.js
index 717ac07..c6658cd 100644
--- a/js/lwNDN.js
+++ b/js/lwNDN.js
@@ -70,13 +70,13 @@
var co = this.get("/%C1.M.S.localhost/%C1.M.SRV/ccnd");
- if(!co || !co.SignedInfo || !co.SignedInfo.Publisher || !co.SignedInfo.Publisher.PublisherPublicKeyDigest){
+ if(!co || !co.signedInfo || !co.signedInfo.publisher || !co.signedInfo.publisher.publisherPublicKeyDigest){
alert("Cannot contact router");
return null;
}
- var ccnxnodename = co.SignedInfo.Publisher.PublisherPublicKeyDigest;
+ var ccnxnodename = co.signedInfo.publisher.publisherPublicKeyDigest;
name = name.trim();