Skip to content

Commit

Permalink
Expose proof module
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Nov 16, 2023
1 parent de77773 commit 6206115
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions optimism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ serde = "1.0.130"
serde_with = "1.10.0"
ark-poly = { version = "0.3.0", features = [ "parallel" ] }
ark-ff = { version = "0.3.0", features = [ "parallel" ] }
ark-ec = { version = "0.3.0", features = [ "parallel" ] }
ark-serialize = "0.3.0"
o1-utils = { path = "../utils", version = "0.1.0" }
clap = "4.4.6"
hex = "0.4.3"
regex = "1.10.2"
Expand Down
1 change: 1 addition & 0 deletions optimism/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod cannon;
pub mod prover_index;
pub mod proof;
pub mod mips;
14 changes: 8 additions & 6 deletions optimism/src/proof.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
use crate::circuits::expr::{ColumnEvaluations, ExprError};
use kimchi::circuits::expr::{ColumnEvaluations, ExprError};
use crate::mips::columns::{
Column, FixedColumns, InstructionParts, InstructionSelectors, LookupCounters, NUM_LOOKUP_TERMS,
SCRATCH_SIZE,
Column, FixedColumns, LookupCounters
};
use crate::proof::PointEvaluations;
use crate::mips::interpreter::{InstructionParts, InstructionSelectors};
use crate::mips::{SCRATCH_SIZE, NUM_LOOKUP_TERMS};

use kimchi::proof::PointEvaluations;
use ark_ec::AffineCurve;
use poly_commitment::{commitment::PolyComm, evaluation_proof::OpeningProof};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -140,7 +142,7 @@ impl<G: AffineCurve> Proof<G> {
ft_eval1,
t_comm,
commitments,
evaluations: evaluations.map(&f),
evaluations: evaluations.map(f),
}
}
}
Expand All @@ -160,7 +162,7 @@ impl<G: AffineCurve> SerializableProof<G> {
ft_eval1,
t_comm,
commitments,
evaluations: evaluations.map(&f),
evaluations: evaluations.map(f),
}
}
}
Expand Down

0 comments on commit 6206115

Please sign in to comment.