zkjson 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/encoder.js +5 -0
  2. package/package.json +5 -1
package/encoder.js CHANGED
@@ -441,6 +441,9 @@ function str2val(arr) {
441
441
  return _arr
442
442
  }
443
443
 
444
+ const toSignal = val2str
445
+ const fromSignal = str2val
446
+
444
447
  module.exports = {
445
448
  encode,
446
449
  decode,
@@ -455,4 +458,6 @@ module.exports = {
455
458
  val2str,
456
459
  str2val,
457
460
  id2str,
461
+ toSignal,
462
+ fromSignal,
458
463
  }
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
+ "blake-hash": "^2.0.0",
9
+ "blake2b": "^2.1.4",
10
+ "ethers": "^6.10.0",
11
+ "ffjavascript": "^0.2.63",
8
12
  "ramda": "^0.29.1"
9
13
  }
10
14
  }