curve25519-dalek icon indicating copy to clipboard operation
curve25519-dalek copied to clipboard

Impl std::num_traits::{One, Zero} for Scalar types

Open Pythoner6 opened this issue 10 months ago • 0 comments

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).

Pythoner6 avatar Apr 07 '24 23:04 Pythoner6