From e3cd0e5aa79a750b08cd6f62cd233e68c9758faf Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Sun, 15 Sep 2019 10:52:18 +0200 Subject: [PATCH] Dependencies and publish smt --- index.js | 3 ++- package.json | 4 ++-- src/smt.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index aac370e..b5df488 100644 --- a/index.js +++ b/index.js @@ -4,5 +4,6 @@ exports.mimc7 = require("./src/mimc7"); exports.mimcsponge = require("./src/mimcsponge"); exports.babyJub = require("./src/babyjub"); exports.pedersenHash = require("./src/pedersenHash"); -exports.SMT = require("./src/smt"); +exports.SMT = require("./src/smt").SMT; +exports.SMTMemDB = require("./src/smt_memdb"); exports.poseidon = require("./src/poseidon"); diff --git a/package.json b/package.json index ad1d066..cd99f46 100644 --- a/package.json +++ b/package.json @@ -26,12 +26,12 @@ "dependencies": { "blake-hash": "^1.1.0", "blake2b": "^2.1.3", - "snarkjs": "^0.1.19", + "snarkjs": "^0.1.20", "typedarray-to-buffer": "^3.1.5", "web3": "^1.0.0-beta.55" }, "devDependencies": { - "circom": "0.0.28", + "circom": "0.0.32", "eslint-plugin-mocha": "^5.2.0", "ganache-cli": "^6.4.4", "mocha": "^5.2.0" diff --git a/src/smt.js b/src/smt.js index 841064e..197516e 100644 --- a/src/smt.js +++ b/src/smt.js @@ -310,3 +310,4 @@ async function newMemEmptyTrie() { module.exports.loadFromFile = loadFromFile; module.exports.newMemEmptyTrie = newMemEmptyTrie; module.exports.SMT = SMT; +module.exports.SMTMemDB = SMTMemDB;