Skip to content

Commit

Permalink
Fixing the compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
martun committed Sep 9, 2024
1 parent cfbe84f commit c5b1b99
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
#include <nil/marshalling/status_type.hpp>

#include <nil/crypto3/algebra/type_traits.hpp>

#include <nil/crypto3/algebra/curves/detail/secp_k1/types.hpp>
#include <nil/crypto3/algebra/curves/detail/secp_k1/g1.hpp>
#include <nil/crypto3/algebra/curves/secp_k1.hpp>

#include <nil/crypto3/marshalling/multiprecision/processing/integral.hpp>
Expand All @@ -48,9 +49,10 @@ namespace nil {

template<std::size_t Version>
struct curve_element_marshalling_params<

typename algebra::curves::secp_k1<Version>::template g1_type<>

typename algebra::curves::detail::secp_k1_g1<
Version,
algebra::curves::forms::short_weierstrass,
algebra::curves::coordinates::jacobian_with_a4_0>
> {
using group_type = typename algebra::curves::secp_k1<Version>::template g1_type<>;

Expand Down Expand Up @@ -89,7 +91,10 @@ namespace nil {
template<std::size_t Version>
struct curve_element_writer<
nil::marshalling::endian::big_endian,
typename algebra::curves::secp_k1<Version>::template g1_type<> > {
typename algebra::curves::detail::secp_k1_g1<
Version,
algebra::curves::forms::short_weierstrass,
algebra::curves::coordinates::jacobian_with_a4_0> > {
using group_type = typename algebra::curves::secp_k1<Version>::template g1_type<>;
using group_value_type = typename group_type::value_type;
using coordinates = typename group_value_type::coordinates;
Expand Down Expand Up @@ -122,10 +127,9 @@ namespace nil {
template<typename Coordinates, std::size_t Version>
struct curve_element_reader<
nil::marshalling::endian::big_endian,
typename algebra::curves::secp_k1<Version>::template g1_type<Coordinates,
algebra::curves::forms::short_weierstrass>> {
using group_type = typename algebra::curves::secp_k1<Version>::
template g1_type<Coordinates, algebra::curves::forms::short_weierstrass>;
typename algebra::curves::detail::secp_k1_g1<Version, algebra::curves::forms::short_weierstrass, Coordinates >> {

using group_type = typename algebra::curves::secp_k1<Version>::template g1_type<>;
using group_value_type = typename group_type::value_type;
using coordinates = typename group_value_type::coordinates;
using form = typename group_value_type::form;
Expand Down

0 comments on commit c5b1b99

Please sign in to comment.