Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Nov 14, 2024
1 parent e02749f commit 53a9452
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ec/src/scalar_mul/glv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ pub trait GLVConfig: Send + Sync + 'static + SWCurveConfig {
) -> ((bool, Self::ScalarField), (bool, Self::ScalarField)) {
let scalar: BigInt = k.into_bigint().into().into();

let coeff_bigints: [BigInt; 4] = Self::SCALAR_DECOMP_COEFFS
.map(|x| BigInt::from_biguint(if x.0 { Sign::Plus } else { Sign::Minus }, x.1.into()));
let coeff_bigints: [BigInt; 4] = Self::SCALAR_DECOMP_COEFFS.map(|x| {
let sign = if x.0 { Sign::Plus } else { Sign::Minus };
BigInt::from_biguint(sign, x.1.into())
});

let [n11, n12, n21, n22] = coeff_bigints;

Expand Down

0 comments on commit 53a9452

Please sign in to comment.