Skip to content

Commit 2d620dd

Browse files
author
colinlyguo
committed
fix
1 parent 8befb84 commit 2d620dd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

common/types/message/message.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ type EuclidV2ChunkTaskDetail struct {
5555

5656
// BatchTaskDetail is a type containing BatchTask detail.
5757
type BatchTaskDetail struct {
58-
ChunkInfos []*ChunkInfo `json:"chunk_infos"`
59-
ChunkProofs []ChunkProof `json:"chunk_proofs"`
60-
BatchHeader interface{} `json:"batch_header"`
61-
BlobBytes []byte `json:"blob_bytes"`
62-
KzgProof hexutil.Big `json:"kzg_proof"`
63-
KzgCommitment hexutil.Big `json:"kzg_commitment"`
64-
Challenge hexutil.Big `json:"challenge"`
58+
ChunkInfos []*ChunkInfo `json:"chunk_infos"`
59+
ChunkProofs []ChunkProof `json:"chunk_proofs"`
60+
BatchHeader interface{} `json:"batch_header"`
61+
BlobBytes []byte `json:"blob_bytes"`
62+
KzgProof hexutil.Big `json:"kzg_proof"`
63+
KzgCommitment hexutil.Big `json:"kzg_commitment"`
64+
ChallengeDigest hexutil.Big `json:"challenge_digest"`
6565
}
6666

6767
// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,6 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
293293
// | bytes32 | bytes32 | bytes48 | bytes48 |
294294
taskDetail.KzgProof = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[112:160]))
295295
taskDetail.KzgCommitment = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[64:112]))
296-
taskDetail.Challenge = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[0:32]))
296+
taskDetail.ChallengeDigest = hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[0:32])) // FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest.
297297
return taskDetail, nil
298298
}

0 commit comments

Comments
 (0)