feat: Add task runner for the sff task

This commit is contained in:
Alivecow 2024-11-25 14:19:41 +01:00
parent 1c9948ac62
commit 6856420ff9
6 changed files with 62 additions and 24 deletions

View file

@ -22,6 +22,10 @@ impl Polynomial {
Self { polynomial }
}
pub fn degree(&self) -> usize {
self.polynomial.len()
}
pub fn from_c_array(array: &Value) -> Self {
let mut polynomial: Vec<FieldElement> = vec![];
let c_array: Vec<String> = array