Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions lib/evmone_precompiles/ecc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ class FieldElement
static constexpr auto one() noexcept { return FieldElement{1}; }
};

/// The affine (two coordinates) point on an Elliptic Curve over a prime field.
template <typename ValueT>
struct Point
{
ValueT x = {};
ValueT y = {};

friend constexpr Point operator-(const Point& p) noexcept { return {p.x, -p.y}; }
};

/// The affine (two coordinates) point on an Elliptic Curve over a prime field.
template <typename Curve>
struct AffinePoint
Expand Down Expand Up @@ -217,9 +207,6 @@ struct ProjPoint
friend constexpr ProjPoint operator-(const ProjPoint& p) noexcept { return {p.x, -p.y, p.z}; }
};

template <typename IntT>
using InvFn = IntT (*)(const ModArith<IntT>&, const IntT& x) noexcept;

/// Converts a projected point to an affine point.
template <typename Curve>
inline AffinePoint<Curve> to_affine(const ProjPoint<Curve>& p) noexcept
Expand Down
2 changes: 0 additions & 2 deletions lib/evmone_precompiles/pairing/field_template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ struct ExtFieldElem
return res;
}

static constexpr ExtFieldElem zero() noexcept { return ExtFieldElem{}; }

constexpr ExtFieldElem inv() const noexcept { return inverse(*this); }

friend constexpr ExtFieldElem operator+(const ExtFieldElem& e1, const ExtFieldElem& e2) noexcept
Expand Down