zkjson 0.2.2 → 0.2.4

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.
package/collection.js CHANGED
@@ -3,12 +3,7 @@ const { pad, toSignal, id2str, encode, toIndex } = require("./encoder")
3
3
  const Doc = require("./doc")
4
4
 
5
5
  class Collection {
6
- constructor({
7
- size_val = 256,
8
- size_path = 256,
9
- size_json = 256,
10
- level = 254,
11
- }) {
6
+ constructor({ size_val = 8, size_path = 4, size_json = 256, level = 168 }) {
12
7
  this.size_val = size_val
13
8
  this.size_path = size_path
14
9
  this.size_json = size_json
package/db.js CHANGED
@@ -6,11 +6,11 @@ const Collection = require("./collection")
6
6
 
7
7
  class DB {
8
8
  constructor({
9
- size_val = 256,
10
- size_path = 256,
11
- level = 254,
9
+ size_val = 8,
10
+ size_path = 4,
11
+ level = 168,
12
12
  size_json = 256,
13
- size_txs = 1000,
13
+ size_txs = 10,
14
14
  level_col = 8,
15
15
  wasm,
16
16
  zkey,
package/json.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { pad, toSignal, encode, encodePath, encodeVal } = require("./encoder")
2
2
 
3
3
  module.exports = class Json {
4
- constructor({ size_val = 256, size_path = 256, size_json = 256 }) {
4
+ constructor({ size_val = 8, size_path = 4, size_json = 256 }) {
5
5
  this.size_val = size_val
6
6
  this.size_path = size_path
7
7
  this.size_json = size_json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",