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 kzg-wasm into monorepo #3294

Merged
merged 26 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7507482
Update to official trusted setup
acolytec3 Feb 19, 2024
03b02f6
Remove devnet6
acolytec3 Feb 19, 2024
6cb837c
Add kzg-wasm
acolytec3 Feb 20, 2024
67760fc
Merge remote-tracking branch 'origin/master' into integate-kzg-wasm
acolytec3 Feb 21, 2024
37592d8
Merge remote-tracking branch 'origin/master' into integate-kzg-wasm
acolytec3 Feb 21, 2024
0b2866a
Update block tests to use kzg-wasm
acolytec3 Feb 21, 2024
b18fe05
Update tests
acolytec3 Feb 21, 2024
f8530b5
Add more 4844 tests to browser run
acolytec3 Feb 21, 2024
4097f5c
Initial integration of kzg-wasm on git
acolytec3 Feb 22, 2024
b94d61f
Update kzg-wasm build
acolytec3 Feb 23, 2024
f6e56ed
Fix linter weirdness
acolytec3 Feb 23, 2024
6202a9d
Move initKzg to `runTests`
acolytec3 Feb 23, 2024
45b5939
Fix tests
acolytec3 Feb 27, 2024
a274192
More cleanup
acolytec3 Feb 27, 2024
8dec1a0
Goodbye c-kzg
acolytec3 Feb 27, 2024
97751f1
fix kzg references
acolytec3 Feb 27, 2024
e684c5b
Replace c-kzg with kzg-wasm in package.json
acolytec3 Feb 27, 2024
82502c7
Merge remote-tracking branch 'origin/master' into integate-kzg-wasm
acolytec3 Feb 27, 2024
404c6a3
Update kzg wasm commit and vm tester config
acolytec3 Feb 27, 2024
586b42b
Update initKzg to createKZG
acolytec3 Feb 28, 2024
d68ef05
fix copy pasta
acolytec3 Feb 28, 2024
6478cc5
Fix more copy pasta
acolytec3 Feb 28, 2024
6ab9423
update kzg-wasm to npm release
acolytec3 Feb 28, 2024
0eecb05
One last bit of copy pasta
acolytec3 Feb 28, 2024
810b669
Address feedback
acolytec3 Feb 28, 2024
f2e17de
client: remove try/catch blocks createKZG() and remove the initKZG st…
jochem-brouwer Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 16 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-simple-import-sort": "7.0.0",
"eslint-plugin-sonarjs": "0.19.0",
"kzg-wasm": "^0.1.0",
"lint-staged": "13.0.3",
"lockfile-lint-api": "^5.5.1",
"prettier": "2.7.1",
Expand Down Expand Up @@ -66,6 +67,9 @@
},
"@vitest/browser": {
"optional": true
},
"kzg-wasm": {
"optional": true
}
},
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions packages/block/examples/4844.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import { Common, Chain, Hardfork } from '@ethereumjs/common'
import { Block } from '@ethereumjs/block'
import { BlobEIP4844Transaction } from '@ethereumjs/tx'
import { Address, initKZG } from '@ethereumjs/util'
import * as kzg from 'c-kzg'
import { createKZG } from 'kzg-wasm'
import { randomBytes } from 'crypto'

const main = async () => {
initKZG(kzg, __dirname + '/../../client/src/trustedSetups/official.txt')
const kzg = await createKZG()
initKZG(kzg, '')
const common = new Common({
chain: Chain.Mainnet,
hardfork: Hardfork.Cancun,
Expand Down
2 changes: 1 addition & 1 deletion packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"ethereum-cryptography": "^2.1.3"
},
"devDependencies": {
"c-kzg": "^2.1.2"
"kzg-wasm": "^0.1.0"
},
"engines": {
"node": ">=18"
Expand Down
Loading
Loading