-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Simplified kzg-wasm Version / Deprecate Util.initKZG() #3321
Conversation
Additional note: this PR does not update the docs. I would do this along #3297 after this has been merged. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks way cleaner ⚡
cb8ab1c
to
46fd65b
Compare
…somewhat harder cases)
Ok, ready for re-review respectively a final review! 🙂 |
packages/util/src/kzg.ts
Outdated
*/ | ||
export function initKZG(kzgLib: Kzg, trustedSetupPath?: string) { | ||
export function loadKZG(kzgLib: Kzg, _trustedSetupPath?: string) { | ||
kzg = kzgLib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kzg = kzgLib |
i don't think we need this, as well as the exported kzg object because it was earlier only used in helpers which you have updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR integrates a new
kzg-wasm
version from ethereumjs/kzg-wasm#6 providing a simplified interface with a direct setup loading and additionally removes the usage ofUtil.loadKZG()
on the monorepo side and deprecates the respective method.Currently
kzg-wasm
is referenced by Git commit, so this still needs a release before merging here.