Skip to content

Commit

Permalink
chore: implement ScalarField for ed25519 fields (#254)
Browse files Browse the repository at this point in the history
* chore: impl scalar field for ed25519

* chore: remove patch, add feature gate
  • Loading branch information
jonathanpwang committed Jan 30, 2024
1 parent 88db818 commit ecf5f9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions halo2-base/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,15 @@ mod scalar_field_impls {
impl_scalar_field!(bn254Fq);
impl_scalar_field!(secpFp);
impl_scalar_field!(secpFq);

#[cfg(feature = "halo2-axiom")]
mod ed25519 {
use super::*;
use crate::halo2_proofs::halo2curves::ed25519::{Fq, Fr};

impl_scalar_field!(Fq);
impl_scalar_field!(Fr);
}
}

/// Module for reading parameters for Halo2 proving system from the file system.
Expand Down

0 comments on commit ecf5f9e

Please sign in to comment.