pub fn from_slice(
            bytes: &[u8],
        ) -> Result<CompressedEdwardsY, core::array::TryFromSliceError> {
            bytes.try_into().map(CompressedEdwardsY)
        }
Construct a `CompressedEdwardsY` from a slice of bytes.

# Errors

Returns [`TryFromSliceError`] if the input `bytes` slice does not have
a length of 32.
crates/curves/src/lib.rs