Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Aug 13, 2024
1 parent 2a479eb commit e7319b9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 156 deletions.
96 changes: 0 additions & 96 deletions src/facts_registry.cairo

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ mod vector_commitment;
mod tests;
// === RECURSIVE END ===

mod facts_registry;
mod verifier;

use cairo_verifier::{
air::public_input::CairoVersion, deserialization::stark::StarkProofWithSerde,
stark::{StarkProof, StarkProofImpl},
Expand Down
6 changes: 3 additions & 3 deletions src/stark.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct StarkProof {

#[generate_trait]
impl StarkProofImpl of StarkProofTrait {
fn verify(self: @StarkProof, security_bits: felt252, contract_address_1: ContractAddress, contract_address_2: ContractAddress) -> (FriVerificationStateConstant, FriVerificationStateVariable, Span<felt252>) {
fn verify_initial(self: @StarkProof, security_bits: felt252, contract_address_1: ContractAddress, contract_address_2: ContractAddress) -> (FriVerificationStateConstant, FriVerificationStateVariable, Span<felt252>) {
// Validate config.
self.config.validate(security_bits);

Expand Down Expand Up @@ -137,8 +137,8 @@ impl StarkProofImpl of StarkProofTrait {
fri_verify_final(stateConstant, stateVariable, last_layer_coefficients)
}

fn verify_full(self: @StarkProof, security_bits: felt252) {
let (mut con, mut var, last_layer_coefficients) = self.verify_initial(security_bits);
fn verify_full(self: @StarkProof, security_bits: felt252, contract_address_1: ContractAddress, contract_address_2: ContractAddress) {
let (mut con, mut var, last_layer_coefficients) = self.verify_initial(security_bits, contract_address_1, contract_address_2);

let n = con.n_layers;
let mut i = 0;
Expand Down
54 changes: 0 additions & 54 deletions src/verifier.cairo

This file was deleted.

0 comments on commit e7319b9

Please sign in to comment.