deps
This commit is contained in:
parent
7e4cae9c25
commit
fefe0f4220
@ -6189,13 +6189,13 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
|
||||
const outBuf = [ outBuffA, outBuffB ];
|
||||
for (let i=0; i<nCoef; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
const buffCoef = coeffs.slice(4+i*sCoef, 4+i*sCoef+sCoef);
|
||||
const buffCoefV = new DataView(buffCoef.buffer);
|
||||
const m= buffCoefV.getUint32(0, true);
|
||||
const c= buffCoefV.getUint32(4, true);
|
||||
const s= buffCoefV.getUint32(8, true);
|
||||
const coef = buffCoef.slice(12);
|
||||
const coef = buffCoef.slice(12, 12+n8);
|
||||
outBuf[m].set(
|
||||
curve.Fr.add(
|
||||
outBuf[m].slice(c*n8, c*n8+n8),
|
||||
@ -6206,7 +6206,7 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
}
|
||||
|
||||
for (let i=0; i<zkey.domainSize; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
outBuffC.set(
|
||||
curve.Fr.mul(
|
||||
outBuffA.slice(i*n8, i*n8+n8),
|
||||
|
@ -1677,13 +1677,13 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
|
||||
const outBuf = [ outBuffA, outBuffB ];
|
||||
for (let i=0; i<nCoef; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
const buffCoef = coeffs.slice(4+i*sCoef, 4+i*sCoef+sCoef);
|
||||
const buffCoefV = new DataView(buffCoef.buffer);
|
||||
const m= buffCoefV.getUint32(0, true);
|
||||
const c= buffCoefV.getUint32(4, true);
|
||||
const s= buffCoefV.getUint32(8, true);
|
||||
const coef = buffCoef.slice(12);
|
||||
const coef = buffCoef.slice(12, 12+n8);
|
||||
outBuf[m].set(
|
||||
curve.Fr.add(
|
||||
outBuf[m].slice(c*n8, c*n8+n8),
|
||||
@ -1694,7 +1694,7 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
}
|
||||
|
||||
for (let i=0; i<zkey.domainSize; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
outBuffC.set(
|
||||
curve.Fr.mul(
|
||||
outBuffA.slice(i*n8, i*n8+n8),
|
||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
6
package-lock.json
generated
6
package-lock.json
generated
@ -686,9 +686,9 @@
|
||||
"integrity": "sha512-q03PTKc+wptis4WmuFOwPNQx2p5myFUrl/dMgRlW9mymc1Egyc14JPHgiGnWK+sJ0+dBl2Vwtfh5GfSQltYOpw=="
|
||||
},
|
||||
"ffjavascript": {
|
||||
"version": "0.2.31",
|
||||
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.31.tgz",
|
||||
"integrity": "sha512-0Az/HM2pxhE2pqsZSbwIJDz/F5csByIlu0iurLzWjmhJBjEmVbdx7KZshACbDT/zUSJU9boleO5H/VT+zrqUyQ==",
|
||||
"version": "0.2.32",
|
||||
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.32.tgz",
|
||||
"integrity": "sha512-3H7Z4WnyCZg3RVI4+d3FRMWbPUf4FGP8v3EAfV475f3A68/AH0sxQKZh5JZ08Qh9DZNVA54YA5czeoL4V7PQcw==",
|
||||
"requires": {
|
||||
"big-integer": "^1.6.48",
|
||||
"wasmcurves": "0.0.14",
|
||||
|
@ -42,7 +42,7 @@
|
||||
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
|
||||
"circom_runtime": "0.1.5",
|
||||
"fastfile": "0.0.18",
|
||||
"ffjavascript": "0.2.31",
|
||||
"ffjavascript": "0.2.32",
|
||||
"logplease": "^1.2.15",
|
||||
"r1csfile": "0.0.26"
|
||||
},
|
||||
|
@ -127,13 +127,13 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
|
||||
const outBuf = [ outBuffA, outBuffB ];
|
||||
for (let i=0; i<nCoef; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP AB: ${i}/${nCoef}`);
|
||||
const buffCoef = coeffs.slice(4+i*sCoef, 4+i*sCoef+sCoef);
|
||||
const buffCoefV = new DataView(buffCoef.buffer);
|
||||
const m= buffCoefV.getUint32(0, true);
|
||||
const c= buffCoefV.getUint32(4, true);
|
||||
const s= buffCoefV.getUint32(8, true);
|
||||
const coef = buffCoef.slice(12);
|
||||
const coef = buffCoef.slice(12, 12+n8);
|
||||
outBuf[m].set(
|
||||
curve.Fr.add(
|
||||
outBuf[m].slice(c*n8, c*n8+n8),
|
||||
@ -144,7 +144,7 @@ async function buldABC1(curve, zkey, witness, coeffs, logger) {
|
||||
}
|
||||
|
||||
for (let i=0; i<zkey.domainSize; i++) {
|
||||
if ((logger)&&(i%100000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
if ((logger)&&(i%1000000 == 0)) logger.debug(`QAP C: ${i}/${zkey.domainSize}`);
|
||||
outBuffC.set(
|
||||
curve.Fr.mul(
|
||||
outBuffA.slice(i*n8, i*n8+n8),
|
||||
|
Loading…
Reference in New Issue
Block a user