repr(transparent) on dalek_ff_group::FieldElement

This commit is contained in:
Luke Parker
2025-08-23 05:17:22 -04:00
parent da3095ed15
commit a7c77f8b5f
3 changed files with 3 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ type ResidueType = Residue<FieldModulus, { FieldModulus::LIMBS }>;
/// A constant-time implementation of the Ed25519 field.
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug, Zeroize)]
#[repr(transparent)]
pub struct FieldElement(ResidueType);
// Square root of -1.