Skip to content

Commit

Permalink
fix(math): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chokobole committed Oct 3, 2023
1 parent 542bede commit 3461652
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tachyon/math/finite_fields/fp6.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ namespace tachyon::math {

template <typename Config>
class Fp6<Config, std::enable_if_t<Config::kDegreeOverBaseField == 2>> final
: public CubicExtensionField<Fp6<Config>> {
: public QuadraticExtensionField<Fp6<Config>> {
public:
using BaseField = typename Config::BaseField;
using BasePrimeField = typename Config::BasePrimeField;

using CubicExtensionField<Fp6<Config>>::CubicExtensionField;
using QuadraticExtensionField<Fp6<Config>>::QuadraticExtensionField;

static_assert(BaseField::ExtensionDegree() == 3);

Expand All @@ -30,12 +30,12 @@ class Fp6<Config, std::enable_if_t<Config::kDegreeOverBaseField == 2>> final

template <typename Config>
class Fp6<Config, std::enable_if_t<Config::kDegreeOverBaseField == 3>> final
: public QuadraticExtensionField<Fp6<Config>> {
: public CubicExtensionField<Fp6<Config>> {
public:
using BaseField = typename Config::BaseField;
using BasePrimeField = typename Config::BasePrimeField;

using QuadraticExtensionField<Fp6<Config>>::QuadraticExtensionField;
using CubicExtensionField<Fp6<Config>>::CubicExtensionField;

static_assert(BaseField::ExtensionDegree() == 2);

Expand Down

0 comments on commit 3461652

Please sign in to comment.