Skip to content

Commit

Permalink
Move memoset to coroutine module.
Browse files Browse the repository at this point in the history
  • Loading branch information
porcuquine committed Jan 16, 2024
1 parent fbac1cf commit 5bd5d95
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/coprocessor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{

pub mod circom;
pub mod gadgets;
pub mod memoset;
pub mod sha256;
pub mod trie;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use super::{
CircuitScope, CircuitTranscript, LogMemo, Scope,
};
use crate::circuit::gadgets::constraints::alloc_is_zero;
use crate::circuit::gadgets::pointer::AllocatedPtr;
use crate::coprocessor::gadgets::construct_list;
use crate::coprocessor::AllocatedPtr;
use crate::field::LurkField;
use crate::lem::circuit::GlobalAllocator;
use crate::lem::{pointers::Ptr, store::Store};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ use bellpepper_core::{boolean::Boolean, num::AllocatedNum, ConstraintSystem, Syn
use itertools::Itertools;
use once_cell::sync::OnceCell;

use super::gadgets::construct_cons;
use crate::circuit::gadgets::{
constraints::{enforce_equal, enforce_equal_zero, invert, sub},
pointer::AllocatedPtr,
};
use crate::coprocessor::gadgets::construct_cons; // FIXME: Move to common location.
use crate::field::LurkField;
use crate::lem::circuit::GlobalAllocator;
use crate::lem::tag::Tag;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bellpepper_core::{ConstraintSystem, SynthesisError};

use super::{CircuitScope, CircuitTranscript, LogMemo, Scope};
use crate::coprocessor::AllocatedPtr;
use crate::circuit::gadgets::pointer::AllocatedPtr;
use crate::field::LurkField;
use crate::lem::circuit::GlobalAllocator;
use crate::lem::{pointers::Ptr, store::Store};
Expand Down
1 change: 1 addition & 0 deletions src/coroutine/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod memoset;
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod circuit;
pub mod cli;
pub mod config;
pub mod coprocessor;
pub mod coroutine;
pub mod error;
pub mod eval;
pub mod field;
Expand Down

0 comments on commit 5bd5d95

Please sign in to comment.