Skip to content

Commit

Permalink
Merge branch 'main' into setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zmrocze committed Jul 25, 2024
2 parents 71de08e + 5e5c663 commit c678d41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/subcommands/setup.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
use std::{
collections::HashMap,
fs::File,
path::{Path, PathBuf},
};

use ark_groth16::Groth16;
use ark_serialize::CanonicalSerialize;
use ark_snark::SNARK;
use luminal::compiler_utils::ToId;
use rand::{rngs::StdRng, SeedableRng};

use crate::{model::TrainParams, snark::Curve};
Expand Down Expand Up @@ -33,7 +35,7 @@ impl Setup {
}
}

pub async fn run(self) {
pub fn run(self) {
let rng = StdRng::seed_from_u64(1);

let dataset = crate::model::read_dataset(self.dataset_path.as_path()).unwrap();
Expand Down
4 changes: 4 additions & 0 deletions lib/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
use ark_serialize::{CanonicalSerialize, Write};
use serde::Serialize;
use std::path::Path;

#[cfg(not(debug_assertions))]
use human_panic::setup_panic;

Expand Down

0 comments on commit c678d41

Please sign in to comment.