Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhemo committed Mar 12, 2024
1 parent 43c3d50 commit a028a84
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recursion/compiler/src/circuit/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
mod backend;

pub trait CircuitBuilder {
type F;
type Var;
}
4 changes: 4 additions & 0 deletions recursion/compiler/src/syn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ impl<T: BaseBuilder> Builder for T {}
pub trait FieldBuilder<F: Field>: Builder {
type Felt: FieldVariable<Self, F = F>;
}

pub trait IntBuilder: Builder {
type Int: AlgebraicVariable<Self>;
}
4 changes: 4 additions & 0 deletions recursion/compiler/src/syn/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ pub trait LogicalVariable<B: BaseBuilder>:
+ BitXor<Output = Self>
+ Not<Output = Self>;
}

pub trait Eq<B: BaseBuilder, Other = Self> {
fn assert_eq(&self, other: Other);
}

0 comments on commit a028a84

Please sign in to comment.