Skip to content

Commit

Permalink
Merge pull request #3 from Ayushdubey86/Split-Precompile-Constants-ou…
Browse files Browse the repository at this point in the history
…t-of-Individual-Modules-#2081

Update bls12_381.rs
  • Loading branch information
Ayushdubey86 authored Feb 14, 2025
2 parents dd63090 + 17d3350 commit 86b9ffc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/precompile/src/bls12_381.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
use crate::PrecompileWithAddress;

mod g1;
#[cfg(feature = "blst")]
pub mod g1_add;
#[cfg(feature = "blst")]
pub mod g1_msm;
mod g2;
#[cfg(feature = "blst")]
pub mod g2_add;
#[cfg(feature = "blst")]
pub mod g2_msm;
#[cfg(feature = "blst")]
pub mod map_fp2_to_g2;
#[cfg(feature = "blst")]
pub mod map_fp_to_g1;
pub mod msm;
#[cfg(feature = "blst")]
pub mod pairing;
mod utils;
pub mod reuse_const;
pub mod msm;

/// Returns the BLS12-381 precompiles with their addresses.
#[cfg(feature = "blst")]
pub fn precompiles() -> impl Iterator<Item = PrecompileWithAddress> {
[
g1_add::PRECOMPILE,
Expand Down

0 comments on commit 86b9ffc

Please sign in to comment.