@dorafactory/maci-sdk 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/contract/utils.ts +9 -0
package/dist/index.mjs
CHANGED
|
@@ -3671,6 +3671,13 @@ function getContractParams(type, circuitType, proofSystem, maxVoter, maxOption)
|
|
|
3671
3671
|
// plonkTallyVkey,
|
|
3672
3672
|
};
|
|
3673
3673
|
case "2" /* ORACLE_MACI */:
|
|
3674
|
+
if (circuitType === "0" /* IP1V */) {
|
|
3675
|
+
groth16ProcessVkey = CIRCUIT_INFO["9-4-3-625"]["groth16"].process_1p1v_vkey;
|
|
3676
|
+
groth16TallyVkey = CIRCUIT_INFO["9-4-3-625"]["groth16"].tally_1p1v_vkey;
|
|
3677
|
+
} else if (circuitType === "1" /* QV */) {
|
|
3678
|
+
groth16ProcessVkey = CIRCUIT_INFO["9-4-3-625"]["groth16"].process_qv_vkey;
|
|
3679
|
+
groth16TallyVkey = CIRCUIT_INFO["9-4-3-625"]["groth16"].tally_qv_vkey;
|
|
3680
|
+
}
|
|
3674
3681
|
return {
|
|
3675
3682
|
parameters: CIRCUIT_INFO["9-4-3-625"].parameter,
|
|
3676
3683
|
groth16ProcessVkey,
|