Modified the test htmls to compare the output and signature of lwndn and ccnx. Function to compute the size of the ContentObject
diff --git a/js/Signature.js b/js/Signature.js
index f8f4d69..06badef 100644
--- a/js/Signature.js
+++ b/js/Signature.js
@@ -38,11 +38,11 @@
if (decoder.peekStartElement(CCNProtocolDTags.DigestAlgorithm)) {
- if(LOG>4)console.log('DIGIEST ALGORITHM FOUND');
+ if(LOG>4)console.log('DIGEST ALGORITHM FOUND');
this.DigestAlgorithm = decoder.readUTF8Element(CCNProtocolDTags.DigestAlgorithm);
}
if (decoder.peekStartElement(CCNProtocolDTags.Witness)) {
- if(LOG>4)console.log('WITNESS FOUND FOUND');
+ if(LOG>4)console.log('WITNESS FOUND');
this.Witness = decoder.readBinaryElement(CCNProtocolDTags.Witness);
}