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
| make demo-avs chain_id=11155111 | |
| Running demo for chain_id: 11155111 | |
| RUSTFLAGS="-A unused" cargo run --manifest-path ./integration-tests/Cargo.toml -- avs \ | |
| --chain-id 11155111 --skip-registration false \ | |
| Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.36s | |
| Running `target/debug/integration-tests avs --chain-id 11155111 --skip-registration false` | |
| 2025-09-30T23:35:50.328496Z INFO newton_prover_config::dotenv: Loading environment variables from /Users/dennis.won/projects/newton-prover-avs/crates/config/../..//.env | |
| 2025-09-30T23:35:50.333455Z INFO integration_tests::commands::avs: Running AVS demo with parameters: | |
| 2025-09-30T23:35:50.333534Z INFO integration_tests::commands::avs: chain_id: 11155111 |
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
| import { | |
| createWalletClient, | |
| createPublicClient, | |
| http, | |
| parseEther, | |
| keccak256, | |
| encodePacked, | |
| Address, | |
| Hex, | |
| PrivateKeyAccount, |
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
| import { | |
| type Address, | |
| type Hex, | |
| encodePacked, | |
| keccak256, | |
| parseEther, | |
| parseUnits, | |
| type PrivateKeyAccount, | |
| createWalletClient, | |
| http, |
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
| { | |
| "name": "newton", | |
| "website": "https://magicnewton.com/", | |
| "description": "Magic Newton", | |
| "logo": "https://assets.magiclabs.com/assets/magic-panel.png", | |
| "twitter": "https://x.com/MagicNewton" | |
| } |
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
| dennis.won@magic ~/projects/tdx-prover (temp-status ✭ ✗) » RUST_LOG=info LOCAL_ENV=prod cargo run -p tdx-prover-cli | |
| prove -i 0x7d70f895908a78253eef4899753484e771b10c45dc395ae27f0ec33b63856102 -t sp1 -p true | |
| Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.21s | |
| Running `target/debug/tdx-prover-cli prove -i 0x7d70f895908a78253eef4899753484e771b10c45dc395ae27f0ec33b63856102 -t sp1 -p true` | |
| 2025-06-22T02:11:23.120693Z INFO tdx_prover::config::parameter: Loading environment variables from .env.prod | |
| 2025-06-22T02:11:23.123460Z INFO tdx_prover_cli: Proving request_id: 7d70f895908a78253eef4899753484e771b10c45dc395ae27f0ec33b63856102 with proof_type: sp1 and proof_system: groth16 (verify_only: false) | |
| 2025-06-22T02:11:23.123581Z INFO tdx_prover::config::parameter: Loading environment variables from .env.prod | |
| 2025-06-22T02:11:23.126220Z INFO tdx_prover::config::database: Connected to the database! | |
| 2025-06-22T02:11:23.750279Z INFO tdx_prover_cli::prove: Onchain request found: OnchainRequest { |
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-05-15T19:46:24.317586Z INFO tdx_prover::zk::sp1: Prover Request ID: 3423be1502cda04766a0457ca16689bb2dd99af08794b771da975b91ecc48302 | |
| 2025-05-15T19:46:24.784566Z INFO sp1_sdk::network::prover: Proof request assigned, proving... | |
| 2025-05-15T19:48:13.765202Z INFO tdx_prover_cli::prove: Proof generated for request ID: "920544af41146a3f044eac3cb3d7d6c9a478d7a9c3e5ba1920eb2b4490002e64" DcapProof { verified_output: "00048100000000b0c06f000000060102000000000000000000000000005b38e33a6487958b72c3c12a938eaa5e3fd4510c51aeeab58c7d5ecee41d7c436489d6c8e4f92f160b7cad34207b00c100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000e702060000000000c68518a0ebb42136c12b2275164f8c72f25fa9a34392228687ed6e9caeb9c0f1dbd895e9cf475121c029dc47e70e91fd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
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
| dennis.won@magiclabs ~/projects/tdx-prover (sp1-exec-fix ✭ ✔) » RUST_LOG=info LOCAL_ENV=prod cargo run -p tdx-prove | |
| r-cli prove --onchain-request-id 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 -t sp1 -v true | |
| Compiling tdx-prover v0.1.0 (/Users/dennis.won/projects/tdx-prover/prover) | |
| Compiling tdx-prover-cli v0.1.0 (/Users/dennis.won/projects/tdx-prover/cli) | |
| Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.81s | |
| Running `target/debug/tdx-prover-cli prove --onchain-request-id 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 -t sp1 -v true` | |
| 2025-05-09T18:41:37.104712Z INFO tdx_prover::config::parameter: Loading environment variables from .env.prod | |
| 2025-05-09T18:41:37.106600Z INFO tdx_prover_cli: Proving request_id: 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 with proof_type: sp1 and proof_system: groth16 (verify_only: true) | |
| 2025-05-09T18:41:37.106667Z INFO tdx_prover::config::parameter: Loading environment variables from .en |
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
| dennis.won@magiclabs ~/projects/tdx-prover (sp1-exec-fix ✭ ✔) » RUST_LOG=info LOCAL_ENV=prod cargo run -p tdx-prove | |
| r-cli prove --onchain-request-id 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 -t sp1 | |
| Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.87s | |
| Running `target/debug/tdx-prover-cli prove --onchain-request-id 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 -t sp1` | |
| 2025-05-09T18:48:08.581609Z INFO tdx_prover::config::parameter: Loading environment variables from .env.prod | |
| 2025-05-09T18:48:08.583156Z INFO tdx_prover_cli: Proving request_id: 707f4717cb2208cd3fb156af97b827748b08a2a685f0c29740ee49209b491ef3 with proof_type: sp1 and proof_system: groth16 (verify_only: false) | |
| 2025-05-09T18:48:08.583212Z INFO tdx_prover::config::parameter: Loading environment variables from .env.prod | |
| 2025-05-09T18:48:08.585368Z INFO tdx_prover::config::database: Connected to the database! | |
| 2025-05-09T18:48:09.100177Z INFO tdx_prover_cli::prove: Onchain request f |
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 |
NewerOlder