feat: add function for polynomial differentiation

This commit is contained in:
Alivecow 2024-11-23 10:17:08 +01:00
parent b595276143
commit 4b1bca8ee0
5 changed files with 69 additions and 22 deletions

View file

@ -24,6 +24,10 @@ impl FieldElement {
87, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 01,
];
pub fn zero(self) -> Self {
FieldElement::new(vec![0])
}
pub const fn new(field_element: Vec<u8>) -> Self {
Self { field_element }
}