const bigInt = require("snarkjs").bigInt; class SMTMemDb { constructor() { this.nodes = {}; this.root = bigInt(0); } async getRoot() { return this.root; } async get(key) { const res = []; const keyS = bigInt(key).leInt2Buff(32).toString("hex"); for (let i=0; i