We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Uint::to_le_byte_array()
1 parent d67bfa0 commit 7cff72fCopy full SHA for 7cff72f
ed448-goldilocks/src/field/scalar.rs
@@ -728,9 +728,7 @@ impl<C: CurveWithScalar> Scalar<C> {
728
729
/// Convert this `Scalar` to a little-endian byte array.
730
pub fn to_bytes(&self) -> [u8; 56] {
731
- let bytes = self.scalar.to_le_bytes();
732
- let output: [u8; 56] = core::array::from_fn(|i| bytes[i]);
733
- output
+ self.scalar.to_le_byte_array().0
734
}
735
736
/// Invert this scalar
0 commit comments