@crisp-e3/sdk 0.7.1 → 0.7.2
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 +1 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3093,7 +3093,6 @@ fn assert_pedersen() {
|
|
|
3093
3093
|
|
|
3094
3094
|
// src/vote.ts
|
|
3095
3095
|
import { bytesToHex, encodeAbiParameters, parseAbiParameters, numberToHex, getAddress } from "viem/utils";
|
|
3096
|
-
import { ZKInputsGenerator as ZKInputsGenerator3 } from "@crisp-e3/zk-inputs";
|
|
3097
3096
|
var _bbApi = null;
|
|
3098
3097
|
var _bbApiInitPromise = null;
|
|
3099
3098
|
var getBBApi = async () => {
|
|
@@ -3102,15 +3101,7 @@ var getBBApi = async () => {
|
|
|
3102
3101
|
_bbApiInitPromise = (async () => {
|
|
3103
3102
|
try {
|
|
3104
3103
|
const api = await Barretenberg.new();
|
|
3105
|
-
|
|
3106
|
-
const params = generator.getBFVParams();
|
|
3107
|
-
switch (Number(params.polynomial_degree)) {
|
|
3108
|
-
case 8192:
|
|
3109
|
-
await api.initSRSChonk(2 ** 21);
|
|
3110
|
-
break;
|
|
3111
|
-
default:
|
|
3112
|
-
await api.initSRSChonk();
|
|
3113
|
-
}
|
|
3104
|
+
await api.initSRSChonk(2 ** 21);
|
|
3114
3105
|
_bbApi = api;
|
|
3115
3106
|
return api;
|
|
3116
3107
|
} finally {
|