Major update: Refactor to rename ContentName to Name. Delete KeyName.js. For the moment, the KeyName class is now in KeyLocator.js.
This is done according to the API notes:
http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt
diff --git a/js/ContentObject.js b/js/ContentObject.js
index eb5db79..8caa2df 100644
--- a/js/ContentObject.js
+++ b/js/ContentObject.js
@@ -6,7 +6,7 @@
if (typeof _name === 'string'){
- this.name = new ContentName(_name);
+ this.name = new Name(_name);
}
else{
//TODO Check the class of _name
@@ -110,7 +110,7 @@
this.startSIG = decoder.offset;
- this.name = new ContentName();
+ this.name = new Name();
this.name.from_ccnb(decoder);
//this.startSignedInfo = decoder.offset;