refactor: Split Polynomial class into poly.rs file

This commit is contained in:
Alivecow 2024-11-22 15:28:00 +01:00
parent ad8326b51e
commit a5a3ea61fa
3 changed files with 825 additions and 798 deletions

View file

@ -2,7 +2,7 @@ use anyhow::Result;
use base64::{prelude::BASE64_STANDARD, Engine};
use serde_json::Value;
use crate::utils::field::{sort_polynomial_array, FieldElement, Polynomial};
use crate::utils::{field::FieldElement, poly::Polynomial};
pub fn gfpoly_add(args: &Value) -> Result<Polynomial> {
let poly_a = Polynomial::from_c_array(&args["A"].clone());