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

2
Cargo.lock generated
View File

@@ -1989,7 +1989,7 @@ dependencies = [
[[package]]
name = "dalek-ff-group"
version = "0.4.3"
version = "0.4.4"
dependencies = [
"ciphersuite",
"crypto-bigint",

View File

@@ -1,6 +1,6 @@
[package]
name = "dalek-ff-group"
version = "0.4.3"
version = "0.4.4"
description = "ff/group bindings around curve25519-dalek"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dalek-ff-group"

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.