mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
Small changes
This commit is contained in:
parent
291b3cedc8
commit
8a594dc942
@ -473,6 +473,10 @@ wBigInt.leInt2Buff = function(n, len) {
|
|||||||
return buff;
|
return buff;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wBigInt.prototype.leInt2Buff = function (len) {
|
||||||
|
return wBigInt.leInt2Buff(this,len);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = wBigInt;
|
module.exports = wBigInt;
|
||||||
|
|
||||||
|
@ -45,6 +45,8 @@ function calculateWitness(circuit, inputSignals, log) {
|
|||||||
for (let s in inputSignals) {
|
for (let s in inputSignals) {
|
||||||
ctx.currentComponent = "main";
|
ctx.currentComponent = "main";
|
||||||
iterateSelector(inputSignals[s], [], function(selector, value) {
|
iterateSelector(inputSignals[s], [], function(selector, value) {
|
||||||
|
console.log("xxxx");
|
||||||
|
if (typeof(value) == "undefined") throw new Error("Signal not defined:" + s);
|
||||||
ctx.setSignal(s, selector, bigInt(value));
|
ctx.setSignal(s, selector, bigInt(value));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user