Scalar::from_{le|be}_bytes_mod_order are implemented generically for any scalar using scalar arithmetic. However, curve library might have a more optimized conversion function. For instance, curve25519_dalek has a functions from_bytes_mod_order and from_bytes_mod_order_wide which are significantly faster.
Scalar::from_{le|be}_bytes_mod_order
are implemented generically for any scalar using scalar arithmetic. However, curve library might have a more optimized conversion function. For instance,curve25519_dalek
has a functionsfrom_bytes_mod_order
andfrom_bytes_mod_order_wide
which are significantly faster.We should leverage this backend optimization.