Skip to content

Commit 1509b22

Browse files
authored
Merge pull request #3557 from ethereum/polynomial-commitments-sampling
EIP-7594: Add cryptography specs for sampling
2 parents 9f533cf + b7d9ea9 commit 1509b22

File tree

25 files changed

+17353
-8331
lines changed

25 files changed

+17353
-8331
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,19 @@ jobs:
194194
command: make citest fork=whisk
195195
- store_test_results:
196196
path: tests/core/pyspec/test-reports
197+
test-eip7594:
198+
docker:
199+
- image: circleci/python:3.9
200+
working_directory: ~/specs-repo
201+
steps:
202+
- restore_cache:
203+
key: v3-specs-repo-{{ .Branch }}-{{ .Revision }}
204+
- restore_pyspec_cached_venv
205+
- run:
206+
name: Run py-tests
207+
command: make citest fork=eip7594
208+
- store_test_results:
209+
path: tests/core/pyspec/test-reports
197210
table_of_contents:
198211
docker:
199212
- image: circleci/node:10.16.3
@@ -323,6 +336,9 @@ workflows:
323336
- test-whisk:
324337
requires:
325338
- install_pyspec_test
339+
- test-eip7594:
340+
requires:
341+
- install_pyspec_test
326342
- table_of_contents
327343
- codespell
328344
- lint:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
needs: [preclear,lint,codespell,table_of_contents]
7272
strategy:
7373
matrix:
74-
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "eip6110", "eip7002", "whisk"]
74+
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "eip6110", "eip7002", "whisk", "eip7594"]
7575
steps:
7676
- name: Checkout this repo
7777
uses: actions/[email protected]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tests/core/pyspec/eth2spec/deneb/
2424
tests/core/pyspec/eth2spec/eip6110/
2525
tests/core/pyspec/eth2spec/eip7002/
2626
tests/core/pyspec/eth2spec/whisk/
27+
tests/core/pyspec/eth2spec/eip7594/
2728

2829
# coverage reports
2930
.htmlcov

configs/mainnet.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,7 @@ BLOB_SIDECAR_SUBNET_COUNT: 6
154154
WHISK_EPOCHS_PER_SHUFFLING_PHASE: 256
155155
# `Epoch(2)`
156156
WHISK_PROPOSER_SELECTION_GAP: 2
157+
158+
# EIP7594
159+
EIP7594_FORK_VERSION: 0x06000001
160+
EIP7594_FORK_EPOCH: 18446744073709551615

configs/minimal.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,7 @@ BLOB_SIDECAR_SUBNET_COUNT: 6
153153
# Whisk
154154
WHISK_EPOCHS_PER_SHUFFLING_PHASE: 4
155155
WHISK_PROPOSER_SELECTION_GAP: 1
156+
157+
# EIP7594
158+
EIP7594_FORK_VERSION: 0x06000001
159+
EIP7594_FORK_EPOCH: 18446744073709551615

presets/mainnet/eip7594.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Mainnet preset - EIP7594
2+
3+
# Misc
4+
# ---------------------------------------------------------------
5+
# `uint64(2**6)` (= 64)
6+
FIELD_ELEMENTS_PER_CELL: 64

presets/mainnet/trusted_setups/trusted_setup_4096.json

Lines changed: 8258 additions & 4160 deletions
Large diffs are not rendered by default.

presets/minimal/eip7594.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Minimal preset - EIP7594
2+
3+
# Misc
4+
# ---------------------------------------------------------------
5+
# `uint64(2**6)` (= 64)
6+
FIELD_ELEMENTS_PER_CELL: 64

presets/minimal/trusted_setups/trusted_setup_4096.json

Lines changed: 8258 additions & 4160 deletions
Large diffs are not rendered by default.

pysetup/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
EIP6110 = 'eip6110'
88
EIP7002 = 'eip7002'
99
WHISK = 'whisk'
10+
EIP7594 = 'eip7594'
1011

1112

1213

0 commit comments

Comments
 (0)