zkjson 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/uint.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
package/uint.js CHANGED
@@ -464,6 +464,9 @@ function push(json, size, digit, c, overflow = 8) {
464
464
  }
465
465
  return json
466
466
  }
467
+ function str(arr) {
468
+ return arr.map(n => n.toString())
469
+ }
467
470
  function bn(arr) {
468
471
  if (typeof arr == "number") return BigInt(arr)
469
472
  if (!Array.isArray(arr)) return arr