Skip to content

Commit 285aeea

Browse files
Remove spartan everywhere
1 parent 74617a3 commit 285aeea

File tree

6 files changed

+6
-284
lines changed

6 files changed

+6
-284
lines changed

circ_blocks/driver.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ def test(features, extra_args):
128128
if "lp" in features:
129129
log_run_check(["./scripts/test_zok_to_ilp.zsh"])
130130
if "r1cs" in features:
131-
if "spartan" in features: # spartan field
132-
log_run_check(["./scripts/spartan_zok_test.zsh"])
133-
else: # bellman field
134-
log_run_check(["./scripts/zokrates_test.zsh"])
135-
if "poly" in features:
136-
log_run_check(["./scripts/cp_test.zsh"])
137-
log_run_check(["./scripts/ram_test.zsh"])
131+
# bellman field
132+
log_run_check(["./scripts/zokrates_test.zsh"])
133+
if "poly" in features:
134+
log_run_check(["./scripts/cp_test.zsh"])
135+
log_run_check(["./scripts/ram_test.zsh"])
138136
if "lp" in features and "r1cs" in features:
139137
log_run_check(["./scripts/test_zok_to_ilp_pf.zsh"])
140138

circ_blocks/examples/cp.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ struct Options {
3232

3333
#[derive(PartialEq, Debug, Clone, ValueEnum)]
3434
/// `Prove`/`Verify` execute proving/verifying in bellman separately
35-
/// `Spartan` executes both proving/verifying in spartan
3635
enum ProofAction {
3736
Prove,
3837
Verify,

circ_blocks/examples/zk.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ use bls12_381::Bls12;
99
#[cfg(feature = "bellman")]
1010
use circ::target::r1cs::{bellman::Bellman, mirage::Mirage, proof::ProofSystem};
1111

12-
#[cfg(feature = "spartan")]
13-
use circ::ir::term::text::parse_value_map;
14-
#[cfg(feature = "spartan")]
15-
use circ::target::r1cs::spartan;
16-
1712
#[derive(Debug, Parser)]
1813
#[command(name = "zk", about = "The CirC ZKP runner")]
1914
struct Options {
@@ -39,11 +34,9 @@ struct Options {
3934

4035
#[derive(PartialEq, Debug, Clone, ValueEnum)]
4136
/// `Prove`/`Verify` execute proving/verifying in bellman separately
42-
/// `Spartan` executes both proving/verifying in spartan
4337
enum ProofAction {
4438
Prove,
4539
Verify,
46-
Spartan,
4740
}
4841

4942
#[derive(PartialEq, Debug, Clone, ValueEnum)]
@@ -89,17 +82,5 @@ fn main() {
8982
}
9083
#[cfg(not(feature = "bellman"))]
9184
(ProofAction::Prove | ProofAction::Verify, _) => panic!("Missing feature: bellman"),
92-
#[cfg(feature = "spartan")]
93-
(ProofAction::Spartan, _) => {
94-
let prover_input_map = parse_value_map(&std::fs::read(opts.pin).unwrap());
95-
println!("Spartan Proving");
96-
let (gens, inst, proof) = spartan::prove(opts.prover_key, &prover_input_map).unwrap();
97-
98-
let verifier_input_map = parse_value_map(&std::fs::read(opts.vin).unwrap());
99-
println!("Spartan Verifying");
100-
spartan::verify(opts.verifier_key, &verifier_input_map, &gens, &inst, proof).unwrap();
101-
}
102-
#[cfg(not(feature = "spartan"))]
103-
(ProofAction::Spartan, _) => panic!("Missing feature: spartan"),
10485
}
10586
}

circ_blocks/src/target/r1cs/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ pub mod bellman;
1818
pub mod mirage;
1919
pub mod opt;
2020
pub mod proof;
21-
#[cfg(feature = "spartan")]
22-
pub mod spartan;
2321
pub mod trans;
2422
pub mod wit_comp;
2523

circ_blocks/src/target/r1cs/spartan.rs

Lines changed: 0 additions & 254 deletions
This file was deleted.

circ_blocks/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# TODO: add in "kahip", "kahypar" binaries dependencies when adding new MPC changes
99
cargo_features = {"aby", "c", "lp", "r1cs", "smt",
10-
"zok", "datalog", "bellman", "spartan", "poly"}
10+
"zok", "datalog", "bellman", "poly"}
1111

1212

1313
def save_mode(mode):

0 commit comments

Comments
 (0)