Fix bug in Witness decoding
diff --git a/js/security/Witness.js b/js/security/Witness.js
index 1a8c5e0..2378595 100644
--- a/js/security/Witness.js
+++ b/js/security/Witness.js
@@ -116,11 +116,10 @@
 		} else if (witness[i] == 0x04) {
 			if ((witness[i + 1] & 0x80) != 0) {
 				len = witness[i+1] & 0x7F;
-			} else {
-				len = witness[i+1];
 			}
 			if (step == 4) {
 				// Start to decode digest hex string
+				len = witness[i+1];  // XXX: digest hex should always be 32 bytes
 				str = DataUtils.toHex(witness.subarray(i + 2, i + 2 + len));
 				this.path.digestList.push(str);  // digest hex string
 				//console.log(str);