diff --git a/src/unipoly.rs b/src/unipoly.rs index 0a0549f..c4c7c46 100644 --- a/src/unipoly.rs +++ b/src/unipoly.rs @@ -5,15 +5,15 @@ use super::transcript::{AppendToTranscript, ProofTranscript}; use merlin::Transcript; use serde::{Deserialize, Serialize}; -// ax^2 + bx + c stored as vec![a,b,c] -// ax^3 + bx^2 + cx + d stored as vec![a,b,c,d] +// ax^2 + bx + c stored as vec![c,b,a] +// ax^3 + bx^2 + cx + d stored as vec![d,c,b,a] #[derive(Debug)] pub struct UniPoly { coeffs: Vec, } -// ax^2 + bx + c stored as vec![a,c] -// ax^3 + bx^2 + cx + d stored as vec![a,c,d] +// ax^2 + bx + c stored as vec![c,a] +// ax^3 + bx^2 + cx + d stored as vec![d,b,a] #[derive(Serialize, Deserialize, Debug)] pub struct CompressedUniPoly { coeffs_except_linear_term: Vec,