This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::time::Duration; | |
use crate::{entity::{ | |
quote::ProofType, | |
zk::{DcapProof, ProofResponse, ProofSystem, ZkvmProof, DCAP_SP1_ELF} | |
}, zk::extract_proof_output}; | |
use anyhow::Result; | |
use sp1_sdk::{network::FulfillmentStrategy, HashableKey, Prover, ProverClient, SP1Stdin}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-29T01:54:53.203127Z INFO tdx_prover::lambda::function: Event: LambdaEvent { payload: EventBridgeEvent { version: Some("0"), id: Some("4b48e319-3c2d-0cec-05fb-145fd206b7ce"), detail_type: "tdx-quote", source: "com.magic.newton", account: Some("641838893963"), time: Some(2025-04-22T22:11:06Z), region: Some("us-east-2"), resources: Some([]), detail: Object {"proof_type": String("sp1"), "request_id": String("0x3446b352dcf9434354ca995cab0df91396ad2087132a81a4496cdeb68197f781")} }, context: Context { request_id: "f2ce181a-97bc-4ce7-b3c7-d738de62effa", deadline: 600000, invoked_function_arn: "function-arn", xray_trace_id: Some("Root=1-6810316b-b2867abda71a3647f535e1c6;Parent=358f727c8c4ce18b;Sampled=1"), client_context: None, identity: None, env_config: Config { function_name: "tdx-prover", memory: 4096, version: "1", log_stream: "", log_group: "" } } } | |
2025-04-29T01:54:53.203604Z INFO tdx_prover::lambda::function: Request ID hex: 0x3446b352dcf9434354ca995cab0df91396ad2087132a81a4496cdeb68197f781 | |
2025-04-2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-29T01:50:52.967108Z INFO tdx_prover::lambda::function: Event: LambdaEvent { payload: EventBridgeEvent { version: Some("0"), id: Some("4b48e319-3c2d-0cec-05fb-145fd206b7ce"), detail_type: "tdx-quote", source: "com.magic.newton", account: Some("641838893963"), time: Some(2025-04-22T22:11:06Z), region: Some("us-east-2"), resources: Some([]), detail: Object {"proof_type": String("risc0"), "request_id": String("0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe")} }, context: Context { request_id: "5540493e-bc2e-4f85-a5b5-268dd552d32a", deadline: 600000, invoked_function_arn: "function-arn", xray_trace_id: Some("Root=1-6810307b-d72e19cfaf50a980467d77a9;Parent=1c7f7642ef6c9ef2;Sampled=1"), client_context: None, identity: None, env_config: Config { function_name: "tdx-prover", memory: 4096, version: "1", log_stream: "", log_group: "" } } } | |
2025-04-29T01:50:52.968393Z INFO tdx_prover::lambda::function: Request ID hex: 0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe | |
2025-04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-29T01:48:03.626170Z INFO tdx_prover::lambda::function: Event: LambdaEvent { payload: EventBridgeEvent { version: Some("0"), id: Some("4b48e319-3c2d-0cec-05fb-145fd206b7ce"), detail_type: "tdx-quote", source: "com.magic.newton", account: Some("641838893963"), time: Some(2025-04-22T22:11:06Z), region: Some("us-east-2"), resources: Some([]), detail: Object {"proof_type": String("risc0"), "request_id": String("0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe")} }, context: Context { request_id: "f8d689cf-0807-48b3-a1a4-48a6c7edac7f", deadline: 600000, invoked_function_arn: "function-arn", xray_trace_id: Some("Root=1-68102fd1-4c297df6a8feb8e6abe52a7b;Parent=ea994b1203922db0;Sampled=1"), client_context: None, identity: None, env_config: Config { function_name: "tdx-prover", memory: 4096, version: "1", log_stream: "", log_group: "" } } } | |
2025-04-29T01:48:03.626867Z INFO tdx_prover::lambda::function: Request ID hex: 0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe | |
2025-04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-28T22:14:33.399924Z INFO tdx_prover::lambda::function: Event: LambdaEvent { payload: EventBridgeEvent { version: Some("0"), id: Some("4b48e319-3c2d-0cec-05fb-145fd206b7ce"), detail_type: "tdx-quote", source: "com.magic.newton", account: Some("641838893963"), time: Some(2025-04-22T22:11:06Z), region: Some("us-east-2"), resources: Some([]), detail: Object {"proof_type": String("risc0"), "request_id": String("0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe")} }, context: Context { request_id: "426466dd-4073-41f6-a49c-37b7798df6c0", deadline: 600000, invoked_function_arn: "function-arn", xray_trace_id: Some("Root=1-680ffdc7-8ea4c2c874806fc32e985a2e;Parent=d3a4043a30932642;Sampled=1"), client_context: None, identity: None, env_config: Config { function_name: "tdx-prover", memory: 4096, version: "1", log_stream: "", log_group: "" } } } | |
2025-04-28T22:14:33.400662Z INFO tdx_prover::lambda::function: Request ID hex: 0x0d879b28222a939ce05a25eb5ccaed385779e9684b0cfc1782fc6d4ef8cb7efe | |
2025-04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-27T17:48:12.143217Z INFO tdx_prover::lambda::function: Request ID hex: 0x2ca7162ec996ded457feadf49634d6ee73cfc4c6aad7d6e498689a628f167fa7 | |
2025-04-27T17:48:12.143499Z INFO tdx_prover::lambda::function: Proof type: sp1 | |
2025-04-27T17:48:12.654010Z INFO tdx_prover::config::database: Connected to the database! | |
2025-04-27T17:48:12.753237Z INFO tdx_prover::lambda::function: Onchain request found: OnchainRequest { | |
id: 0aef6993-2831-4f45-9419-ffb408bd15c6, | |
creator_address: "0x450c1a0560D8156Ab1a21Fc2DCe42AD693207519", | |
operator_address: "0x548df1990b444F0b658c838bE334149C1eA79833", | |
model_id: "0x682db2fe997945208caa888543ffca2ad2c7edf1ab0b02899b9977e6d18af477", | |
fee_wei: 0, | |
nonce: 92, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-26T23:30:18.794740Z INFO tdx_prover::lambda::function: Event: LambdaEvent { payload: EventBridgeEvent { version: Some("0"), id: Some("4b48e319-3c2d-0cec-05fb-145fd206b7ce"), detail_type: "tdx-quote", source: "com.magic.newton", account: Some("641838893963"), time: Some(2025-04-22T22:11:06Z), region: Some("us-east-2"), resources: Some([]), detail: Object {"request_id": String("0x115317290445a0ad2e5b6d6bcfaab8f97a344779bcab806c56d221bd4b9ba24d")} }, context: Context { request_id: "db13f430-080e-4a0b-8cee-f2c6980f9f56", deadline: 600000, invoked_function_arn: "function-arn", xray_trace_id: Some("Root=1-680d6c8a-70d04ea65ef27347a97bc5f9;Parent=7c9254b636c0ff7a;Sampled=1"), client_context: None, identity: None, env_config: Config { function_name: "tdx-prover", memory: 4096, version: "1", log_stream: "", log_group: "" } } } | |
2025-04-26T23:30:18.795909Z INFO tdx_prover::lambda::function: Request ID hex: 0x115317290445a0ad2e5b6d6bcfaab8f97a344779bcab806c56d221bd4b9ba24d | |
2025-04-26T23:30:19.267919Z INFO tdx_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-25T22:26:49.990086Z INFO tdx_prover::config::database: Connected to the database! | |
2025-04-25T22:26:50.295642Z INFO tdx_prover::lambda::function: Attestation found for request ID: cca6c235-9dc8-4f95-bf2a-4b881476b3f5 pending | |
All collaterals found! Begin uploading input to SP1 Proving Server... | |
2025-04-25T22:27:07.521949Z INFO execute: sp1_core_executor::executor: clk = 0 pc = 0x2032e8 | |
stderr: WARNING: Using insecure random number generator. | |
2025-04-25T22:27:15.745773Z INFO execute: sp1_prover: gas: 8173962 | |
2025-04-25T22:27:30.859425Z INFO execute: sp1_core_executor::executor: clk = 0 pc = 0x2032e8 | |
stderr: WARNING: Using insecure random number generator. | |
2025-04-25T22:27:39.105697Z INFO execute: sp1_prover: gas: 8173962 | |
2025-04-25T22:27:39.107013Z INFO sp1_sdk::network::prover: Requesting proof: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-25T04:57:21.295651Z INFO tdx_prover::sp1::prove: Submitting proof transaction... | |
2025-04-25T04:57:21.295742Z INFO tdx_prover::sp1::chain::attestation: Generating proveRequest calldata | |
2025-04-25T04:57:21.295795Z INFO tdx_prover::sp1::chain::attestation: ProveRequest RequestConfig: TypedRequestConfig { | |
nonce: 23, | |
creator: 0xcc174c58dfdaf1126f76be79902535081c798e4e, | |
operator: 0x548df1990b444f0b658c838be334149c1ea79833, | |
model: 0x682db2fe997945208caa888543ffca2ad2c7edf1ab0b02899b9977e6d18af477, | |
fee: 0, | |
deadline: 1745765605, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-04-25T04:33:18.834259Z INFO tdx_prover::config::database: Connected to the database! | |
2025-04-25T04:33:19.138154Z INFO tdx_prover::lambda::function: Attestation found for request ID: 43c16556-7f70-4aa3-94da-2942ede2e2b2 failure | |
All collaterals found! Begin uploading input to SP1 Proving Server... | |
2025-04-25T04:33:42.006982Z INFO execute: sp1_core_executor::executor: clk = 0 pc = 0x2032e8 | |
stderr: WARNING: Using insecure random number generator. | |
2025-04-25T04:33:53.302365Z INFO execute: sp1_prover: gas: 8173962 | |
2025-04-25T04:34:20.797688Z INFO execute: sp1_core_executor::executor: clk = 0 pc = 0x2032e8 | |
stderr: WARNING: Using insecure random number generator. | |
2025-04-25T04:34:32.067597Z INFO execute: sp1_prover: gas: 8173962 | |
2025-04-25T04:34:32.069362Z INFO sp1_sdk::network::prover: Requesting proof: |
NewerOlder