Skip to content
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

Merged
merged 15 commits into from
Mar 15, 2024

Conversation

holgerd77
Copy link
Member

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 of Util.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.

@holgerd77
Copy link
Member Author

Additional note: this PR does not update the docs. I would do this along #3297 after this has been merged.

Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 86.91%. Comparing base (906b362) to head (cbf7378).

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.43% <ø> (ø)
blockchain 91.61% <ø> (ø)
client 84.85% <ø> (ø)
common 98.43% <ø> (ø)
devp2p 82.12% <ø> (ø)
ethash ∅ <ø> (∅)
evm 74.16% <ø> (ø)
genesis 99.98% <ø> (ø)
rlp ∅ <ø> (∅)
statemanager 77.00% <ø> (ø)
trie 89.32% <ø> (+0.03%) ⬆️
tx 95.08% <15.00%> (-0.48%) ⬇️
util 89.34% <93.75%> (+0.15%) ⬆️
vm 79.87% <ø> (ø)
wallet 88.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks way cleaner ⚡

@holgerd77 holgerd77 force-pushed the integrate-new-kzg-wasm-version branch from cb8ab1c to 46fd65b Compare March 15, 2024 08:54
@holgerd77
Copy link
Member Author

Ok, ready for re-review respectively a final review! 🙂

*/
export function initKZG(kzgLib: Kzg, trustedSetupPath?: string) {
export function loadKZG(kzgLib: Kzg, _trustedSetupPath?: string) {
kzg = kzgLib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@holgerd77 holgerd77 merged commit a70312d into master Mar 15, 2024
35 of 36 checks passed
@holgerd77 holgerd77 deleted the integrate-new-kzg-wasm-version branch March 15, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants