Skip to content

Commit

Permalink
Merge pull request #10 from warlock-labs/revert-9-finite-scalar
Browse files Browse the repository at this point in the history
Revert "feat: Scalar type for finite fields"
  • Loading branch information
0xAlcibiades authored Sep 10, 2024
2 parents 076c424 + ee0752b commit 64f3d8e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,11 @@ pub trait Field: EuclideanDomain + MultiplicativeAbelianGroup {}
/// # Properties
/// - The number of elements is always a prime power p^n
pub trait FiniteField: Field {
///allos for an arbitrary size representation without specificing type
type ScalarType: Clone + PartialOrd + Zero + One + Debug;

/// Returns the characteristic of the field.
fn characteristic() -> Self::ScalarType;
fn characteristic() -> u64;

/// Returns the number of elements in the field.
fn order() -> Self::ScalarType;
fn order() -> u64;
}

/// Represents an Ordered Field, a field with a total order compatible with its operations.
Expand Down

0 comments on commit 64f3d8e

Please sign in to comment.