@@ -39,6 +39,7 @@ const (
3939
4040// ChunkTaskDetail is a type containing ChunkTask detail for chunk task.
4141type ChunkTaskDetail struct {
42+ Version uint8 `json:"version"`
4243 // use one of the string of "euclidv1" / "euclidv2"
4344 ForkName string `json:"fork_name"`
4445 BlockHashes []common.Hash `json:"block_hashes"`
@@ -90,6 +91,7 @@ func (e *Byte48) UnmarshalJSON(input []byte) error {
9091
9192// BatchTaskDetail is a type containing BatchTask detail.
9293type BatchTaskDetail struct {
94+ Version uint8 `json:"version"`
9395 // use one of the string of "euclidv1" / "euclidv2"
9496 ForkName string `json:"fork_name"`
9597 ChunkInfos []* ChunkInfo `json:"chunk_infos"`
@@ -103,6 +105,7 @@ type BatchTaskDetail struct {
103105
104106// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.
105107type BundleTaskDetail struct {
108+ Version uint8 `json:"version"`
106109 // use one of the string of "euclidv1" / "euclidv2"
107110 ForkName string `json:"fork_name"`
108111 BatchProofs []* OpenVMBatchProof `json:"batch_proofs"`
@@ -124,6 +127,9 @@ type ChunkInfo struct {
124127 TxDataLength uint64 `json:"tx_data_length"`
125128 InitialBlockNumber uint64 `json:"initial_block_number"`
126129 BlockCtxs []BlockContextV2 `json:"block_ctxs"`
130+ PrevBlockhash common.Hash `json:"prev_blockhash"`
131+ PostBlockhash common.Hash `json:"post_blockhash"`
132+ EncryptionKey []byte `json:"encryption_key"`
127133}
128134
129135// BlockContextV2 is the block context for euclid v2
@@ -186,6 +192,7 @@ type OpenVMBatchInfo struct {
186192 ChainID uint64 `json:"chain_id"`
187193 PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
188194 PostMsgQueueHash common.Hash `json:"post_msg_queue_hash"`
195+ EncryptionKey []byte `json:"encryption_key"`
189196}
190197
191198// BatchProof includes the proof info that are required for batch verification and rollup.
@@ -246,6 +253,7 @@ type OpenVMBundleInfo struct {
246253 PrevBatchHash common.Hash `json:"prev_batch_hash"`
247254 BatchHash common.Hash `json:"batch_hash"`
248255 MsgQueueHash common.Hash `json:"msg_queue_hash"`
256+ EncryptionKey []byte `json:"encryption_key"`
249257}
250258
251259// OpenVMBundleProof includes the proof info that are required for verification of a bundle of batch proofs.
0 commit comments