We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454b625 commit e36293eCopy full SHA for e36293e
1 file changed
lib/evmone_precompiles/ecc.hpp
@@ -692,10 +692,10 @@ std::array<SignedScalar<typename Curve::uint_type>, 2> decompose(
692
// static_assert(Curve::Y2 < Curve::X1);
693
// static_assert(Curve::X2 < Curve::Y2);
694
// static_assert(Curve::MINUS_Y1 < Curve::X2);
695
- // [[maybe_unused]] static constexpr auto K1_MAX = Curve::Y2;
696
- // [[maybe_unused]] static constexpr auto K2_MAX = Curve::X2 - 1;
697
- // assert(k1.value <= K1_MAX);
698
- // assert(k2.value <= K2_MAX);
+ [[maybe_unused]] static constexpr auto K1_MAX = std::numeric_limits<intx::uint128>::max();
+ [[maybe_unused]] static constexpr auto K2_MAX = K1_MAX;
+ assert(k1.value <= K1_MAX);
+ assert(k2.value <= K2_MAX);
699
700
return {k1, k2};
701
}
0 commit comments