Skip to content

Commit

Permalink
Opt bw6_761
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Aug 17, 2024
1 parent 142b630 commit 987cca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions curves/bw6_761/src/curves/g1.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::CurveHooks;

use ark_bw6_761::g1::Config as ArkConfig;
use ark_ff::Zero;
use ark_models_ext::{
bw6,
{short_weierstrass::SWCurveConfig, CurveConfig},
Expand Down Expand Up @@ -57,7 +58,7 @@ impl<H: CurveHooks> SWCurveConfig for Config<H> {
}

#[inline(always)]
fn mul_by_a(elem: Self::BaseField) -> Self::BaseField {
<ArkConfig as SWCurveConfig>::mul_by_a(elem)
fn mul_by_a(_elem: Self::BaseField) -> Self::BaseField {
Self::BaseField::zero()
}
}
5 changes: 3 additions & 2 deletions curves/bw6_761/src/curves/g2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::CurveHooks;

use ark_bw6_761::g2::Config as ArkConfig;
use ark_ff::Zero;
use ark_models_ext::{
bw6,
{short_weierstrass::SWCurveConfig, CurveConfig},
Expand Down Expand Up @@ -57,7 +58,7 @@ impl<H: CurveHooks> SWCurveConfig for Config<H> {
}

#[inline(always)]
fn mul_by_a(elem: Self::BaseField) -> Self::BaseField {
<ArkConfig as SWCurveConfig>::mul_by_a(elem)
fn mul_by_a(_elem: Self::BaseField) -> Self::BaseField {
Self::BaseField::zero()
}
}

0 comments on commit 987cca3

Please sign in to comment.