@crisp-e3/sdk 0.7.0 → 0.7.1

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 CHANGED
@@ -3093,6 +3093,7 @@ 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";
3096
3097
  var _bbApi = null;
3097
3098
  var _bbApiInitPromise = null;
3098
3099
  var getBBApi = async () => {
@@ -3101,7 +3102,15 @@ var getBBApi = async () => {
3101
3102
  _bbApiInitPromise = (async () => {
3102
3103
  try {
3103
3104
  const api = await Barretenberg.new();
3104
- await api.initSRSChonk(2 ** 21);
3105
+ const generator = ZKInputsGenerator3.withDefaults();
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
+ }
3105
3114
  _bbApi = api;
3106
3115
  return api;
3107
3116
  } finally {