Skip to content

Commit 3571c59

Browse files
author
colinlyguo
committed
fix CI
1 parent 7e69b62 commit 3571c59

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

common/types/message/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77
"math/big"
88

9-
"github.com/ethereum/go-ethereum/common/hexutil"
109
"github.com/scroll-tech/go-ethereum/common"
10+
"github.com/scroll-tech/go-ethereum/common/hexutil"
1111
)
1212

1313
const (

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77
"math/big"
88
"time"
99

10-
"github.com/ethereum/go-ethereum/common/hexutil"
1110
"github.com/gin-gonic/gin"
1211
"github.com/prometheus/client_golang/prometheus"
1312
"github.com/prometheus/client_golang/prometheus/promauto"
1413
"github.com/scroll-tech/da-codec/encoding"
1514
"github.com/scroll-tech/go-ethereum/common"
15+
"github.com/scroll-tech/go-ethereum/common/hexutil"
1616
"github.com/scroll-tech/go-ethereum/log"
1717
"github.com/scroll-tech/go-ethereum/params"
1818
"gorm.io/gorm"
@@ -290,6 +290,8 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
290290
// | bytes32 | bytes32 | bytes48 | bytes48 |
291291
taskDetail.KzgProof = message.Byte48{Big: hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[112:160]))}
292292
taskDetail.KzgCommitment = message.Byte48{Big: hexutil.Big(*new(big.Int).SetBytes(dbBatch.BlobDataProof[64:112]))}
293-
taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32]) // FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest.
293+
// FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest.
294+
// Currently this is bypassed by disabling the sanity checks in the prover.
295+
taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32])
294296
return taskDetail, nil
295297
}

0 commit comments

Comments
 (0)