Skip to content

Commit

Permalink
pasta curves in tests #20
Browse files Browse the repository at this point in the history
  • Loading branch information
SK0M0R0H committed Mar 20, 2022
1 parent b4485fd commit 90868e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/commitment/fri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#include <nil/crypto3/algebra/curves/mnt4.hpp>
#include <nil/crypto3/algebra/fields/arithmetic_params/mnt4.hpp>
#include <nil/crypto3/algebra/curves/pallas.hpp>
#include <nil/crypto3/algebra/fields/arithmetic_params/pallas.hpp>
#include <nil/crypto3/algebra/random_element.hpp>

#include <nil/crypto3/math/polynomial/polynomial.hpp>
Expand All @@ -53,7 +55,7 @@ BOOST_AUTO_TEST_SUITE(fri_test_suite)
BOOST_AUTO_TEST_CASE(fri_basic_test) {

// setup
using curve_type = algebra::curves::mnt4<298>;
using curve_type = algebra::curves::pallas;
using FieldType = typename curve_type::base_field_type;

typedef hashes::sha2<256> merkle_hash_type;
Expand Down
7 changes: 5 additions & 2 deletions test/systems/plonk/redshift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#include <nil/crypto3/algebra/curves/bls12.hpp>
#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>
#include <nil/crypto3/algebra/curves/pallas.hpp>
#include <nil/crypto3/algebra/fields/arithmetic_params/pallas.hpp>
#include <nil/crypto3/algebra/random_element.hpp>

#include <nil/crypto3/math/algorithms/unity_root.hpp>
Expand Down Expand Up @@ -78,8 +80,9 @@ typename fri_type::params_type create_fri_params(std::size_t degree_log) {

BOOST_AUTO_TEST_SUITE(redshift_prover_test_suite)

using curve_type = algebra::curves::bls12<381>;
using FieldType = typename curve_type::scalar_field_type;
//using curve_type = algebra::curves::bls12<381>;
using curve_type = algebra::curves::pallas;
using FieldType = typename curve_type::base_field_type;

// lpc params
constexpr static const std::size_t m = 2;
Expand Down

0 comments on commit 90868e2

Please sign in to comment.