Skip to content

Commit

Permalink
main verification
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofneto committed Feb 7, 2024
1 parent fa31f99 commit dc4acc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ mod vector_commitment;
mod tests;

use cairo_verifier::{
deserialization::stark::StarkProofWithSerde, stark::{StarkProof, StarkProofImpl}
deserialization::stark::StarkProofWithSerde, stark::{StarkProof, StarkProofImpl},
air::public_input::PublicInputTrait
};

fn main(serialized_proof: Array<felt252>) {
fn main(serialized_proof: Array<felt252>) -> (felt252, felt252) {
let mut serialized_proof_span = serialized_proof.span();
let stark_proof: StarkProof = Serde::<
StarkProofWithSerde
Expand All @@ -27,4 +28,7 @@ fn main(serialized_proof: Array<felt252>) {
.into();

stark_proof.verify();
let (program_hash, output_hash) = stark_proof.public_input.verify();

(program_hash, output_hash)
}

0 comments on commit dc4acc3

Please sign in to comment.