Skip to content

Commit 23a22f9

Browse files
committed
Update proto & ssz file based on latest spec change
1 parent de8d65f commit 23a22f9

15 files changed

+494
-242
lines changed

config/fieldparams/mainnet.go

+5
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ const (
5454
MaxRandomByte = uint64(1<<8 - 1) // MaxRandomByte defines max for a random byte using for proposer and sync committee sampling.
5555
MaxRandomValueElectra = uint64(1<<16 - 1) // MaxRandomValueElectra defines max for a random value using for proposer and sync committee sampling.
5656
NumberOfColumns = 128 // NumberOfColumns refers to the specified number of data columns that can exist in a network.
57+
58+
// Introduced in Fulu network upgrade.
59+
FieldElementsPerCell = 64 // FieldElementsPerCell refers to the specified number of field elements that can exist in a cell.
60+
FieldElementsPerExtBlob = 8192 // FieldElementsPerExtBlob refers to the specified number of field elements that can exist in an extended blob.
61+
KZGCommitmentsInclusionProofDepth = 4 // KZGCommitmentsInclusionProofDepth refers to the specified depth of the KZG commitments inclusion proof.
5762
)

config/fieldparams/minimal.go

+5
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ const (
5454
MaxRandomByte = uint64(1<<8 - 1) // Maximum value for a random value using for proposer and sync committee sampling.
5555
MaxRandomValueElectra = uint64(1<<16 - 1) // Maximum value for a random value using for proposer and sync committee sampling.
5656
NumberOfColumns = 128 // NumberOfColumns refers to the specified number of data columns that can exist in a network.
57+
58+
// Introduced in Fulu network upgrade.
59+
FieldElementsPerCell = 64 // FieldElementsPerCell refers to the specified number of field elements that can exist in a cell.
60+
FieldElementsPerExtBlob = 8192 // FieldElementsPerExtBlob refers to the specified number of field elements that can exist in an extended blob.
61+
KZGCommitmentsInclusionProofDepth = 4 // KZGCommitmentsInclusionProofDepth refers to the specified depth of the KZG commitments inclusion proof.
5762
)

proto/engine/v1/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ ssz_proto_files(
113113
name = "ssz_proto_files",
114114
srcs = [
115115
"execution_engine.proto",
116+
"execution_engine_eip7594.proto",
116117
"electra.proto",
117118
"fulu.proto",
118119
],

proto/engine/v1/engine.ssz.go

+6-66
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/engine/v1/execution_engine.pb.go

+22-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/engine/v1/execution_engine.proto

-14
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ message BlobsBundle {
231231
(ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"
232232
];
233233

234-
// The proofs of the blobs (< fulu), it should be empty for >= fulu.
235234
repeated bytes proofs = 2 [
236235
(ethereum.eth.ext.ssz_size) = "?,48",
237236
(ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"
@@ -242,12 +241,6 @@ message BlobsBundle {
242241
(ethereum.eth.ext.ssz_size) = "?,blob.size",
243242
(ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"
244243
];
245-
246-
// The cell proofs (>= fulu), it should be empty for < fulu.
247-
repeated bytes cell_proofs = 4 [
248-
(ethereum.eth.ext.ssz_size) = "?,48",
249-
(ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"
250-
];
251244
}
252245

253246
// Blob contains the data that is to be committed on chain.
@@ -259,12 +252,5 @@ message Blob {
259252
message BlobAndProof {
260253
bytes blob = 1 [ (ethereum.eth.ext.ssz_size) = "blob.size" ];
261254

262-
// The KZG proof of the blob, empty after Fulu.
263255
bytes kzg_proof = 2 [ (ethereum.eth.ext.ssz_size) = "48" ];
264-
265-
// The cell proofs, empty before Fulu.
266-
repeated bytes cell_proofs = 3 [
267-
(ethereum.eth.ext.ssz_size) = "?,48",
268-
(ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"
269-
];
270256
}

0 commit comments

Comments
 (0)