From 2fae48caf19b5bc0fd13f539ea805b1f235ca6d9 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 7 Apr 2024 21:44:35 +0800 Subject: [PATCH] feat(proof_producer): update `sgxProducer` request body --- prover/proof_producer/sgx_producer.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/prover/proof_producer/sgx_producer.go b/prover/proof_producer/sgx_producer.go index 7c99438f5..db113c811 100644 --- a/prover/proof_producer/sgx_producer.go +++ b/prover/proof_producer/sgx_producer.go @@ -41,17 +41,17 @@ type SGXRequestProofBody struct { // SGXRequestProofBodyParam represents the JSON body of RequestProofBody's `param` field. type SGXRequestProofBodyParam struct { - Type string `json:"proofType"` - Block *big.Int `json:"blockNumber"` + Type string `json:"proof_type"` + Block *big.Int `json:"block_number"` L2RPC string `json:"rpc"` - L1RPC string `json:"l1Rpc"` - L1BeaconRPC string `json:"beaconRpc"` + L1RPC string `json:"l1_rpc"` + L1BeaconRPC string `json:"beacon_rpc"` Prover string `json:"prover"` Graffiti string `json:"graffiti"` - ProofParam *ProofParam `json:"proofParam"` + ProofParam *ProofParam `json:"sgx"` } -// ProofParam represents the JSON body of SGXRequestProofBodyParam's `proofParam` field. +// ProofParam represents the JSON body of SGXRequestProofBodyParam's `sgx` field. type ProofParam struct { Setup bool `json:"setup"` Bootstrap bool `json:"bootstrap"`