Skip to content

Commit

Permalink
Merge pull request #13 from lattice-complete/prover
Browse files Browse the repository at this point in the history
Mega PR: First iteration of prover and verifier
  • Loading branch information
Junochiu authored Jan 2, 2025
2 parents 6e513e4 + b77aa05 commit 7fdfff9
Show file tree
Hide file tree
Showing 24 changed files with 3,409 additions and 50 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches: [main]


env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -41,7 +39,7 @@ jobs:
toolchain: $(cat rust-toolchain)
components: rustfmt, clippy

- name: Run clippy
- name: Run clippy
run: cargo clippy --all-features --all-targets -- -D warnings

cargo-fmt:
Expand All @@ -56,5 +54,5 @@ jobs:
toolchain: $(cat rust-toolchain)
components: rustfmt, clippy

- name: Run rustfmt
- name: Run rustfmt
run: cargo fmt --all --check
17 changes: 17 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
[workspace]
resolver = "2"
members = [
"labrador",
"algebra"
]

[workspace.package]
version = "0.1.0"
edition = "2021"

[workspace.dependencies]
rand = "0.8"
rayon = "1.10.0"

# profiler deps
ark-std = { version = "0.4.0" }
profiler_macro = { git ="https://github.com/SuccinctPaul/profiler-rs.git", tag = "v0.1.0" }

[workspace.features]
profiler = ["ark-std/print-trace"]
12 changes: 12 additions & 0 deletions algebra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "algebra"
version = { workspace = true }
edition = { workspace = true }

# Optional: Add a description, authors, license, etc.
description = ""
authors = [""]
license = "MIT OR Apache-2.0"

[dependencies]
rand = { workspace = true }
9 changes: 9 additions & 0 deletions algebra/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pub mod polynomial_ring;
pub mod rq_matrix;
pub mod utils;
pub mod zq;

pub use polynomial_ring::PolynomialRing;
pub use rq_matrix::RqMatrix;
pub use utils::*;
pub use zq::Zq;
Loading

0 comments on commit 7fdfff9

Please sign in to comment.