Skip to content

Commit

Permalink
create fr chip
Browse files Browse the repository at this point in the history
  • Loading branch information
S1nus committed Dec 29, 2024
1 parent bfb0c6d commit 5e61111
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/core/machine/src/syscall/precompiles/fptower/fr.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use std::marker::PhantomData;
pub struct FrOpChip<P> {
_marker: PhantomData<P>,
}

impl<P> FrOpChip<P> {
pub const fn new() -> Self {
Self { _marker: PhantomData }
}
}
2 changes: 2 additions & 0 deletions crates/core/machine/src/syscall/precompiles/fptower/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
mod fp;
mod fr;
mod fp2_addsub;
mod fp2_mul;

pub use fp::*;
pub use fp2_addsub::*;
pub use fp2_mul::*;
pub use fr::*;

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 5e61111

Please sign in to comment.