You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size does not return one more than the degree of the polynomial.
True. Size returns the size of the underlying vector, which is the same as the number of (zero and non-zero) coefficients in the polynomial. Again avoiding degree to have constant time operations.
/// Returns the number of coefficients in the polynomial.pubfn size(&self) -> usize{
oasis-core/secret-sharing/src/poly/univariate.rs
Line 89 in 18da8bc
because we don't trim high degree zeros,
size
does not return one more than the degree of the polynomial.while this is not a bug, it feels like a potential foot gun for careless future users of this code.
The text was updated successfully, but these errors were encountered: