Skip to content

Commit

Permalink
Merge pull request #5 from geet-eth/master
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
geet-eth authored Jan 3, 2025
2 parents 8b62fb7 + c15f4b3 commit 2006fc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/finite_prime_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,16 @@ impl<const L: usize, const D: usize> Distributive for FinitePrimeField<L, D> {}
impl<const L: usize, const D: usize> FiniteField for FinitePrimeField<L, D> {
type ScalarType = FieldElement<L>;

fn characteristic() -> Self::ScalarType {
fn characteristic() -> u64 {
// For a prime field, the characteristic is the same as the modulus
// This is a placeholder implementation
FieldElement([2; L]) // Example: characteristic 2
2 // Example: characteristic 2
}

fn order() -> Self::ScalarType {
fn order() -> u64 {
// For a prime field, the order is the same as the modulus
// This is a placeholder implementation
FieldElement([4; L]) // Example: order 4
4 // Example: order 4
}
}

Expand Down

0 comments on commit 2006fc6

Please sign in to comment.