arnaucube
arnaucube/circomlibPublic Self-hosted repository
smtdb key string
Jordi Baylina jordi@baylina.cat
Mon, 20 Apr 2020 11:01:11 +0200
commit

48c721c8afb494404ac1f34819b2b63b2d8f5938

parent

0efecf16fa9da8d486027fe3e2ef9d10ca88b17c

3 files changed, 10 insertions(+), 9 deletions(-)

jump to
M package-lock.json → package-lock.json

@@ -632,12 +632,12 @@ "safe-buffer": "^5.0.1"

} }, "circom": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/circom/-/circom-0.5.9.tgz", - "integrity": "sha512-SCJoY2FoVpFsRlRcmRgLP5ko0jSxREAmQh7CM6gQ6V9KI5wXm8vR+5phj6wek/p0TnO5s3wR88JPMfjAm8P2Mw==", + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/circom/-/circom-0.5.10.tgz", + "integrity": "sha512-50cVHDG7EbkuS6Ht3SDKBDeR/2M+/XSUxfpJMBL1TmFO2B/ucwUIwBNS00bpdtkT080dqwOVtuiYTLQ27prImw==", "requires": { "chai": "^4.2.0", - "circom_runtime": "0.0.5", + "circom_runtime": "0.0.6", "fastfile": "0.0.1", "ffiasm": "0.0.2", "ffjavascript": "0.1.0",

@@ -649,9 +649,9 @@ "wasmbuilder": "0.0.10"

} }, "circom_runtime": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.5.tgz", - "integrity": "sha512-WEZHnRO1AJIDI2w1yX6rq4G1/MMKnExT3qirjBQR7x43i9Ww3E/wusBHTbXWLb8aYyxsBU07LGy0YXPywPGYvA==", + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.6.tgz", + "integrity": "sha512-o0T5MuWzxnxinWG3+CygS/kZouoP+z5ZrufUwqKJy3gsVFJhkbqMpfKmcBGjhExB3uatA7cKyOiRAOLOz5+t5w==", "requires": { "ffjavascript": "0.1.0", "fnv-plus": "^1.3.1"
M package.json → package.json

@@ -26,7 +26,7 @@ "license": "GPL-3.0",

"dependencies": { "blake-hash": "^1.1.0", "blake2b": "^2.1.3", - "circom": "0.5.9", + "circom": "0.5.10", "ffjavascript": "0.1.0", "web3": "^1.2.6" },
M src/smt_memdb.js → src/smt_memdb.js

@@ -1,6 +1,7 @@

const F = require("./poseidon.js").F; const Scalar = require("ffjavascript").Scalar; +const utils = require("ffjavascript").utils; class SMTMemDb { constructor() {

@@ -14,7 +15,7 @@ }

_key2str(k) { // const keyS = bigInt(key).leInt2Buff(32).toString("hex"); - const keyS = Scalar.e(k); + const keyS = k.toString(); return keyS; }