From efdf02774dabb9bce7f1ac67387eefc3084a6719 Mon Sep 17 00:00:00 2001 From: leruaa Date: Thu, 7 Nov 2024 10:59:28 -0800 Subject: [PATCH] feat: use include_elf! macro --- script/src/bin/evm.rs | 6 ++++-- script/src/bin/main.rs | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/script/src/bin/evm.rs b/script/src/bin/evm.rs index f694f61..d3c9e14 100644 --- a/script/src/bin/evm.rs +++ b/script/src/bin/evm.rs @@ -14,11 +14,13 @@ use alloy_sol_types::SolType; use clap::{Parser, ValueEnum}; use fibonacci_lib::PublicValuesStruct; use serde::{Deserialize, Serialize}; -use sp1_sdk::{HashableKey, ProverClient, SP1ProofWithPublicValues, SP1Stdin, SP1VerifyingKey}; +use sp1_sdk::{ + include_elf, HashableKey, ProverClient, SP1ProofWithPublicValues, SP1Stdin, SP1VerifyingKey, +}; use std::path::PathBuf; /// The ELF (executable and linkable format) file for the Succinct RISC-V zkVM. -pub const FIBONACCI_ELF: &[u8] = include_bytes!("../../../elf/riscv32im-succinct-zkvm-elf"); +pub const FIBONACCI_ELF: &[u8] = include_elf!("fibonacci-program"); /// The arguments for the EVM command. #[derive(Parser, Debug)] diff --git a/script/src/bin/main.rs b/script/src/bin/main.rs index 33089b1..97d03b7 100644 --- a/script/src/bin/main.rs +++ b/script/src/bin/main.rs @@ -13,10 +13,10 @@ use alloy_sol_types::SolType; use clap::Parser; use fibonacci_lib::PublicValuesStruct; -use sp1_sdk::{ProverClient, SP1Stdin}; +use sp1_sdk::{include_elf, ProverClient, SP1Stdin}; /// The ELF (executable and linkable format) file for the Succinct RISC-V zkVM. -pub const FIBONACCI_ELF: &[u8] = include_bytes!("../../../elf/riscv32im-succinct-zkvm-elf"); +pub const FIBONACCI_ELF: &[u8] = include_elf!("fibonacci-program"); /// The arguments for the command. #[derive(Parser, Debug)]