I'm currently trying to use the ristretto Scalar type with nalgebra, but cannot do matrix multiplications, because nalgebra requires the type to implement One and Zero for that. Since we have Scalar::ONE and Scalar::ZERO already, it seems reasonable that maybe Scalar should implement the rust std traits for it (and I suppose maybe also std::num_traits::{ConstOne, ConstZero} too).
I'm currently trying to use the ristretto Scalar type with nalgebra, but cannot do matrix multiplications, because nalgebra requires the type to implement
One
andZero
for that. Since we haveScalar::ONE
andScalar::ZERO
already, it seems reasonable that maybeScalar
should implement the rust std traits for it (and I suppose maybe alsostd::num_traits::{ConstOne, ConstZero}
too).