Small changes
This commit is contained in:
parent
291b3cedc8
commit
8a594dc942
@ -473,6 +473,10 @@ wBigInt.leInt2Buff = function(n, len) {
|
||||
return buff;
|
||||
};
|
||||
|
||||
wBigInt.prototype.leInt2Buff = function (len) {
|
||||
return wBigInt.leInt2Buff(this,len);
|
||||
};
|
||||
|
||||
|
||||
module.exports = wBigInt;
|
||||
|
||||
|
@ -45,6 +45,8 @@ function calculateWitness(circuit, inputSignals, log) {
|
||||
for (let s in inputSignals) {
|
||||
ctx.currentComponent = "main";
|
||||
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));
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user