Skip to content

Commit

Permalink
feat(taiko-client): introduce TierZkVMRisc0ID (#17915)
Browse files Browse the repository at this point in the history
Co-authored-by: YoGhurt111 <[email protected]>
Co-authored-by: David <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent d6ea6f3 commit 96aa5c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
10 changes: 2 additions & 8 deletions packages/taiko-client/bindings/encoding/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ import (
var (
TierOptimisticID uint16 = 100
TierSgxID uint16 = 200
TierZkVMRisc0ID uint16 = 290
TierSgxAndZkVMID uint16 = 300
TierGuardianMinorityID uint16 = 900
TierGuardianMajorityID uint16 = 1000
ProtocolTiers = []uint16{
TierOptimisticID,
TierSgxID,
TierSgxAndZkVMID,
TierGuardianMinorityID,
TierGuardianMajorityID,
}
GoldenTouchPrivKey = "92954368afd3caa1f3ce3ead0069c1af414054aefe1ef9aeacc1bf426222ce38"
GoldenTouchPrivKey = "92954368afd3caa1f3ce3ead0069c1af414054aefe1ef9aeacc1bf426222ce38"
)

// HookCall should be same with TaikoData.HookCall
Expand Down
3 changes: 2 additions & 1 deletion packages/taiko-client/prover/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func (p *Prover) initProofSubmitters(
Dummy: p.cfg.Dummy,
RaikoRequestTimeout: p.cfg.RaikoRequestTimeout,
}
case encoding.TierSgxAndZkVMID:
case encoding.TierZkVMRisc0ID:
// TODO: Temporarily use SgxAndZKvmProofProducer to generate zkvm proofs
producer = &proofProducer.SgxAndZKvmProofProducer{
ZKProofType: proofProducer.ZKProofTypeR0,
SGX: proofProducer.SGXProofProducer{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,5 +243,6 @@ func (s *SgxAndZKvmProofProducer) requestCancel(

// Tier implements the ProofProducer interface.
func (s *SgxAndZKvmProofProducer) Tier() uint16 {
return encoding.TierSgxAndZkVMID
// TODO: Temporarily use TierZkVMRisc0ID instead of TierSgxAndZkVMID
return encoding.TierZkVMRisc0ID
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
_ Submitter = (*ProofSubmitter)(nil)
submissionDelayRandomBumpRange float64 = 20
proofPollingInterval = 10 * time.Second
ProofTimeout = 90 * time.Minute
ProofTimeout = 3 * time.Hour
)

// ProofSubmitter is responsible requesting proofs for the given L2
Expand Down

0 comments on commit 96aa5c2

Please sign in to comment.