smtdb key string

This commit is contained in:
Jordi Baylina
2020-04-20 11:01:11 +02:00
parent 0efecf16fa
commit 48c721c8af
3 changed files with 10 additions and 9 deletions

View File

@@ -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 @@ class SMTMemDb {
_key2str(k) {
// const keyS = bigInt(key).leInt2Buff(32).toString("hex");
const keyS = Scalar.e(k);
const keyS = k.toString();
return keyS;
}