ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
265 stars 111 forks source link

Zero Polynomial degree is returning 0 #146

Closed MatanHamilis closed 2 years ago

MatanHamilis commented 2 years ago

The degree of a zero polynomial is computed as zero while this is incorrect in algebraic terms (which is usually considered as infinity). https://github.com/ZenGo-X/curv/blob/646a9468101ec3e013476472ae7a2d2b063b91fd/src/cryptographic_primitives/secret_sharing/polynomial.rs#L102