You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BLS_MODULUS=0x73EDA753299D7D483339D80809A1D80553BDA402FFFE5BFEFFFFFFFF00000001# EIP-2537: Main subgroup order = q # noqa: E501
110
+
# due to BLS_MODULUS every blob byte (uint256) must be smaller than 116
111
+
112
+
# deneb constants that have not changed (https://github.com/ethereum/consensus-specs/blob/cc6996c22692d70e41b7a453d925172ee4b719ad/specs/deneb/polynomial-commitments.md?plain=1#L78)
BLS_MODULUS=0x73EDA753299D7D483339D80809A1D80553BDA402FFFE5BFEFFFFFFFF00000001# EIP-2537: Main subgroup order = q # noqa: E501
36
+
# due to BLS_MODULUS every blob byte (uint256) must be smaller than 116
37
+
38
+
# deneb constants that have not changed (https://github.com/ethereum/consensus-specs/blob/cc6996c22692d70e41b7a453d925172ee4b719ad/specs/deneb/polynomial-commitments.md?plain=1#L78)
39
+
BYTES_PER_PROOF=48
40
+
BYTES_PER_COMMITMENT=48
41
+
KZG_ENDIANNESS: Literal["big"] ="big"
42
+
43
+
# eip-7691
44
+
MAX_BLOBS_PER_BLOCK_ELECTRA=9
45
+
TARGET_BLOBS_PER_BLOCK_ELECTRA=6
46
+
MAX_BLOB_GAS_PER_BLOCK=1179648
47
+
TARGET_BLOB_GAS_PER_BLOCK=786432
48
+
BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE=5007716
49
+
30
50
31
51
# All forks must be listed here !!! in the order they were introduced !!!
f"Expected {Spec.BYTES_PER_COMMITMENT} resulting commitments but got {len(commitment)} commitments"# noqa: E501
150
+
assertlen(commitment) ==BYTES_PER_COMMITMENT, (
151
+
f"Expected {BYTES_PER_COMMITMENT} resulting commitments but got {len(commitment)} commitments"# noqa: E501
137
152
)
138
153
139
154
returncommitment
140
155
141
156
defget_proof(data: Bytes) ->List[Bytes] |Bytes:
142
157
iffork_strin ["cancun", "prague"]:
143
158
z=2# 2 is one of many possible valid field elements z (https://github.com/ethereum/consensus-specs/blob/ad884507f7a1d5962cd3dfb5f7b3e41aab728c55/tests/core/pyspec/eth2spec/test/utils/kzg_tests.py#L58-L66)
# TODO: currently u can only run this file from ./blob.py but not from eest root, fix it
386
+
# TODO: BlobFromFile supports both construction via blob parameters (works fine), and via provided path (here do some where testing which path is cwd if u use it within a test)
372
387
373
388
# TODO after merge: update test_blob_txs_full.py to make use of actual blobs
BLS_MODULUS=0x73EDA753299D7D483339D80809A1D80553BDA402FFFE5BFEFFFFFFFF00000001# EIP-2537: Main subgroup order = q # noqa: E501
30
-
# due to BLS_MODULUS every blob byte (uint256) must be smaller than 116
31
-
32
-
# deneb constants that have not changed (https://github.com/ethereum/consensus-specs/blob/cc6996c22692d70e41b7a453d925172ee4b719ad/specs/deneb/polynomial-commitments.md?plain=1#L78)
0 commit comments