From c5b1b99c1de602d2eed81ed03a575276797fbac1 Mon Sep 17 00:00:00 2001 From: Martun Karapetyan Date: Mon, 9 Sep 2024 12:29:05 +0400 Subject: [PATCH] Fixing the compilation. --- .../algebra/processing/secp_k1.hpp | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/libs/marshalling/algebra/include/nil/crypto3/marshalling/algebra/processing/secp_k1.hpp b/libs/marshalling/algebra/include/nil/crypto3/marshalling/algebra/processing/secp_k1.hpp index bc15027ed..30a75632f 100644 --- a/libs/marshalling/algebra/include/nil/crypto3/marshalling/algebra/processing/secp_k1.hpp +++ b/libs/marshalling/algebra/include/nil/crypto3/marshalling/algebra/processing/secp_k1.hpp @@ -34,7 +34,8 @@ #include #include - +#include +#include #include #include @@ -48,9 +49,10 @@ namespace nil { template struct curve_element_marshalling_params< - - typename algebra::curves::secp_k1::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::template g1_type<>; @@ -89,7 +91,10 @@ namespace nil { template struct curve_element_writer< nil::marshalling::endian::big_endian, - typename algebra::curves::secp_k1::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::template g1_type<>; using group_value_type = typename group_type::value_type; using coordinates = typename group_value_type::coordinates; @@ -122,10 +127,9 @@ namespace nil { template struct curve_element_reader< nil::marshalling::endian::big_endian, - typename algebra::curves::secp_k1::template g1_type> { - using group_type = typename algebra::curves::secp_k1:: - template g1_type; + typename algebra::curves::detail::secp_k1_g1> { + + using group_type = typename algebra::curves::secp_k1::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;