pub struct AttestRequest {
pub program_id: String,
pub input_bytes: Vec<u8>,
pub stdin_items: Vec<Vec<u8>>,
pub claimed_output: Option<Value>,
pub verify_locally: bool,
}Expand description
Request to the attester service to generate a ZK proof
Fields§
§program_id: String§input_bytes: Vec<u8>Input data as raw bytes (bincode-serialized)
Will be passed to the zkVM program via stdin as a single buffer entry.
For programs that call io::read() multiple times, use stdin_items instead.
stdin_items: Vec<Vec<u8>>Multiple stdin buffer entries (each pushed separately).
When present, each entry maps to one sp1_zkvm::io::read() call.
Takes precedence over input_bytes when non-empty.
claimed_output: Option<Value>Expected output for verification (optional, format defined by agent)
verify_locally: boolWhether to verify the proof locally before returning
Trait Implementations§
Source§impl Clone for AttestRequest
impl Clone for AttestRequest
Source§fn clone(&self) -> AttestRequest
fn clone(&self) -> AttestRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttestRequest
impl Debug for AttestRequest
Source§impl<'de> Deserialize<'de> for AttestRequest
impl<'de> Deserialize<'de> for AttestRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AttestRequest
impl RefUnwindSafe for AttestRequest
impl Send for AttestRequest
impl Sync for AttestRequest
impl Unpin for AttestRequest
impl UnsafeUnpin for AttestRequest
impl UnwindSafe for AttestRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more