Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushdubey86 authored Feb 14, 2025
1 parent 86b9ffc commit be13180
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions crates/precompile/src/bls12_381/reuse_const.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
use crate::PrecompileWithAddress;

use crate::bls12_381::g1_add;
use crate::bls12_381::g1_msm;
use crate::bls12_381::g2_add;
use crate::bls12_381::g2_msm;
use crate::bls12_381::pairing;
use crate::bls12_381::map_fp_to_g1;
use crate::bls12_381::map_fp2_to_g2;

#[cfg(feature = "blst")]
pub fn precompiles() -> impl Iterator<Item = PrecompileWithAddress> {

[
g1_add::PRECOMPILE,
g1_msm::PRECOMPILE,
g2_add::PRECOMPILE,
g2_msm::PRECOMPILE,
pairing::PRECOMPILE,
map_fp_to_g1::PRECOMPILE,
map_fp2_to_g2::PRECOMPILE,
]
.into_iter()
}

0 comments on commit be13180

Please sign in to comment.