diff --git a/common/types/message/message.go b/common/types/message/message.go index de2e0aa0f..a95d66353 100644 --- a/common/types/message/message.go +++ b/common/types/message/message.go @@ -6,8 +6,8 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common" + "github.com/scroll-tech/go-ethereum/common/hexutil" ) const ( diff --git a/coordinator/internal/logic/provertask/batch_prover_task.go b/coordinator/internal/logic/provertask/batch_prover_task.go index b3416ed0a..5d33be617 100644 --- a/coordinator/internal/logic/provertask/batch_prover_task.go +++ b/coordinator/internal/logic/provertask/batch_prover_task.go @@ -7,12 +7,12 @@ import ( "math/big" "time" - "github.com/ethereum/go-ethereum/common/hexutil" "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/scroll-tech/da-codec/encoding" "github.com/scroll-tech/go-ethereum/common" + "github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/params" "gorm.io/gorm" @@ -290,6 +290,8 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []* // | bytes32 | bytes32 | bytes48 | bytes48 | taskDetail.KzgProof = message.Byte48{Big: hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[112:160]))} taskDetail.KzgCommitment = message.Byte48{Big: hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[64:112]))} - taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32]) // FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest. + // FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest. + // Currently this is bypassed by disabling the sanity checks in the prover. + taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32]) return taskDetail, nil }