Skip to content

Commit

Permalink
fix(taiko-client): fix a JWT parsing issue (#17325)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 authored May 24, 2024
1 parent c96c6ee commit 6c30f93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/taiko-client/prover/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
ProverSetAddress: common.HexToAddress(c.String(flags.ProverSetAddress.Name)),
L1ProverPrivKey: l1ProverPrivKey,
RaikoHostEndpoint: c.String(flags.RaikoHostEndpoint.Name),
RaikoJWT: string(jwtSecret),
RaikoJWT: common.Bytes2Hex(jwtSecret),
StartingBlockID: startingBlockID,
Dummy: c.Bool(flags.Dummy.Name),
GuardianProverMinorityAddress: common.HexToAddress(c.String(flags.GuardianProverMinority.Name)),
Expand Down
2 changes: 0 additions & 2 deletions packages/taiko-client/prover/proof_producer/sgx_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ func (s *SGXProofProducer) requestProof(opts *ProofRequestOptions) (*RaikoReques
}
req.Header.Set("Content-Type", "application/json")
if len(s.JWT) > 0 {
log.Info("base string", s.JWT)
log.Info("encode value", base64.StdEncoding.EncodeToString([]byte(s.JWT)))
req.Header.Set("Authorization", "Bearer "+base64.StdEncoding.EncodeToString([]byte(s.JWT)))
}

Expand Down

0 comments on commit 6c30f93

Please sign in to comment.