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() );
|
||||
|
||||
@@ -8,8 +8,7 @@ module.exports.buildR1cs = buildR1cs;
|
||||
|
||||
async function buildR1cs(ctx, fileName) {
|
||||
|
||||
const fd = await fastFile.createOverride(fileName);
|
||||
|
||||
const fd = await fastFile.createOverride(fileName, 1<<22, 1<<24);
|
||||
|
||||
const buffBigInt = new Uint8Array(ctx.F.n8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user