mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
bls12-381 fix and fast r1cs generation
This commit is contained in:
@@ -701,6 +701,9 @@ function execPin(ctx, ast) {
|
||||
if (sel.v[0].t != "N") return NQVAL;
|
||||
selsP.push(Scalar.toNumber(sel.v[0].v));
|
||||
}
|
||||
if (!ctx.components[cIdx]) {
|
||||
return ctx.throwError(ast, "Component not defined yet");
|
||||
}
|
||||
const sIdx = ctx.components[cIdx].names.getSignalIdx(ast.pin.name, selsP);
|
||||
|
||||
if (sIdx<0) return ctx.throwError(ast, "Signal not defined:" + buildFullName() );
|
||||
|
||||
Reference in New Issue
Block a user