You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current published version of kzg-wasm duplicates the trusted_setup.js file across all three build outputs since it's a Javascript object and requires either a CJS or ESM export style (i.e. module.exports vs export ...). This balloons the bundle size considerably and is really unnecessary.
Ideally, the trusted setup should be converted to something like binary, maybe stored in the the dist/wasm directory alongside the WASM bundle, and then loaded in loadKZG if no alternative trusted setup is provided. It's important that we don't introduce any other deps toward the aim of compressing this. If the trusted setup can't be compressed using either node builtins or browser APIs, we should just use raw binary. Even that should decrease the size of the overall module considerably.
The text was updated successfully, but these errors were encountered:
The current published version of
kzg-wasm
duplicates thetrusted_setup.js
file across all three build outputs since it's a Javascript object and requires either a CJS or ESM export style (i.e.module.exports
vsexport ...
). This balloons the bundle size considerably and is really unnecessary.Ideally, the trusted setup should be converted to something like binary, maybe stored in the the
dist/wasm
directory alongside the WASM bundle, and then loaded inloadKZG
if no alternative trusted setup is provided. It's important that we don't introduce any other deps toward the aim of compressing this. If the trusted setup can't be compressed using either node builtins or browser APIs, we should just use raw binary. Even that should decrease the size of the overall module considerably.The text was updated successfully, but these errors were encountered: