From 5e611116c4adc43ba4046babb932d15ef9299e83 Mon Sep 17 00:00:00 2001 From: c-node Date: Sun, 29 Dec 2024 10:34:08 -0500 Subject: [PATCH] create fr chip --- .../core/machine/src/syscall/precompiles/fptower/fr.rs | 10 ++++++++++ .../machine/src/syscall/precompiles/fptower/mod.rs | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 crates/core/machine/src/syscall/precompiles/fptower/fr.rs diff --git a/crates/core/machine/src/syscall/precompiles/fptower/fr.rs b/crates/core/machine/src/syscall/precompiles/fptower/fr.rs new file mode 100644 index 0000000000..495e5b2119 --- /dev/null +++ b/crates/core/machine/src/syscall/precompiles/fptower/fr.rs @@ -0,0 +1,10 @@ +use std::marker::PhantomData; +pub struct FrOpChip

{ + _marker: PhantomData

, +} + +impl

FrOpChip

{ + pub const fn new() -> Self { + Self { _marker: PhantomData } + } +} \ No newline at end of file diff --git a/crates/core/machine/src/syscall/precompiles/fptower/mod.rs b/crates/core/machine/src/syscall/precompiles/fptower/mod.rs index bf097adc05..123d743e89 100644 --- a/crates/core/machine/src/syscall/precompiles/fptower/mod.rs +++ b/crates/core/machine/src/syscall/precompiles/fptower/mod.rs @@ -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 {