-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Executable EIP-4844 specs #2901
Closed
Closed
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9811b94
Trying to include EIP-4844 specs to pyspec
hwwhww af7898e
WIP. Add kzg.py
hwwhww 238464d
Rename `SHARDING_FORK_VERSION` to `SHARDING_FORK_VERSION` and fix tests
hwwhww 29b27b3
Add `test-eip4844` CI job
hwwhww 15fe4c9
Fix lint
hwwhww edb3894
Merge branch 'dev' into eip4844-exe
hwwhww 7324b90
PR feedback from @asn-d6
hwwhww 1a3929d
Merge branch 'dev' into eip4844-exe
hwwhww 60fdcac
Fix bugs and include all EIP-4844 files to executable scope
hwwhww b8cbfe5
To avoid confusion with SSZ vector, rename `vector_lincomb` -> `matri…
hwwhww 33829dd
Fix eip4844 state transition functions
hwwhww 79b4d77
Add validator unittest to check `verify_blobs_sidecar`.
hwwhww 13d7c06
Fix `matrix_lincomb`: add int() casting to avoid SSZ overflow/underflow
hwwhww 41c5646
Fix `is_data_available` return value
hwwhww 23afa60
Add KZGProof generation helpers to validator.md and polynomial-commit…
hwwhww f16ca66
Function arguments clean up. Add a link of proto's explainer.
hwwhww 0f17a95
Fix typo `compute_kzg_single` -> `compute_kzg_proof`
hwwhww 71bb4bf
Remove redundant `BLS_MODULUS`
hwwhww 36cdab5
Fix test
hwwhww ec7f607
Renaming KZGCommitment object `kzg` -> `commitment`
hwwhww 247850a
Use full name `kzg_commitment` instead of `commitment`
hwwhww 418b93d
Change evaluation point variable from `x` to `z` in poly functions
asn-d6 57d12d8
Compute KZG proof directly from evaluation form
asn-d6 d4af93d
Fix ToC
hwwhww File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Mainnet preset - Phase0 | ||
|
||
# Misc | ||
# --------------------------------------------------------------- | ||
# `uint64(4096)` | ||
FIELD_ELEMENTS_PER_BLOB: 4096 | ||
# `uint64(2**4)` (= 16) | ||
MAX_BLOBS_PER_BLOCK: 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Minimal preset - Phase0 | ||
|
||
# Misc | ||
# --------------------------------------------------------------- | ||
# [customized] | ||
FIELD_ELEMENTS_PER_BLOB: 4 | ||
# `uint64(2**4)` (= 16) | ||
MAX_BLOBS_PER_BLOCK: 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Here is a py_ecc-based insecure trusted setup you might want to use for this purpose: https://github.com/asn-d6/kzgverify/blob/playground/trusted_setup.py (and corresponding json files on same directory)