zksvm_client/types.rs
1use borsh::{BorshDeserialize, BorshSerialize};
2
3/// The instruction data for the on-chain verification program.
4#[derive(BorshDeserialize, BorshSerialize)]
5pub struct InstructionData {
6 pub groth16_proof: SP1Groth16Proof,
7 pub vkey_hash: String,
8}
9
10/// The SP1 proof data for the on-chain verification program.
11#[derive(BorshDeserialize, BorshSerialize)]
12pub struct SP1Groth16Proof {
13 pub proof: Vec<u8>,
14 pub sp1_public_inputs: Vec<u8>,
15}