Skip to content

Commit

Permalink
fri domain
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyathakur44 committed Dec 1, 2024
1 parent 12aaf97 commit 4f661a5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/fri/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use crate::fields::*;
use crate::merkle::*;
//we can use ntt fast fns for optimization, but rn we just implement using direct evaluate and multiply functions of polynomials
use crate::univariate_polynomial::*;

pub struct Fri{

}
pub struct FriDomain{
offset: FieldElement,
omega: FieldElement,
length: usize,
}

impl FriDomain{
fn new(&self, offset: FieldElement,omega: FieldElement, length: usize)->Self{
Self { offset, omega, length }
}
fn call(&self, index: usize)->FieldElement{
let _x = self.omega.pow(index as u128)*self.offset;
_x
}
}
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub mod ntt;
pub mod evaluation_argument;
pub mod permutation_argument;
pub mod merkle;
pub mod fri;

fn main() {
println!("Hello, world!");
Expand Down

0 comments on commit 4f661a5

Please sign in to comment.