diff --git a/generic-ec-zkp/src/polynomial.rs b/generic-ec-zkp/src/polynomial.rs index 20ae9ac..d86e98c 100644 --- a/generic-ec-zkp/src/polynomial.rs +++ b/generic-ec-zkp/src/polynomial.rs @@ -78,6 +78,16 @@ impl Polynomial { len => len - 1, } } + + /// Returns polynomial coefficients + pub fn coefs(&self) -> &[C] { + &self.coefs + } + + /// Destructs polynomial, returns its coefficients + pub fn into_coefs(self) -> Vec { + self.coefs + } } impl Polynomial {