Skip to content

Commit

Permalink
Merge pull request #99 from NilFoundation/98-remove-a-couple-warnings
Browse files Browse the repository at this point in the history
Removed a couple of unused 'using' directives.
  • Loading branch information
martun authored May 8, 2024
2 parents f22ae64 + 081825a commit 4e86f10
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ namespace nil {
template<typename Endianness, typename CommitmentSchemeType>
typename commitment_params<nil::marshalling::field_type<Endianness>, CommitmentSchemeType, std::enable_if_t<nil::crypto3::zk::is_kzg<CommitmentSchemeType>>>::type
fill_commitment_params(const typename CommitmentSchemeType::params_type &kzg_params) {
using CommitmentParamsType = typename CommitmentSchemeType::params_type;
using TTypeBase = typename nil::marshalling::field_type<Endianness>;
using result_type = typename commitment_params<nil::marshalling::field_type<Endianness>, CommitmentSchemeType>::type;

nil::marshalling::types::array_list<
Expand All @@ -267,9 +265,6 @@ namespace nil {
template<typename Endianness, typename CommitmentSchemeType>
typename CommitmentSchemeType::params_type
make_commitment_params(const typename commitment_params<nil::marshalling::field_type<Endianness>, CommitmentSchemeType, std::enable_if_t<nil::crypto3::zk::is_kzg<CommitmentSchemeType>>>::type &filled_kzg_params) {
using CommitmentParamsType = typename CommitmentSchemeType::params_type;
using TTypeBase = typename nil::marshalling::field_type<Endianness>;

return result_type(std::make_tuple(
make_curve_element_vector<typename CommitmentSchemeType::curve_type::template g1_type<>, Endianness>(std::get<0>(filled_kzg_params.value()).value()),
make_curve_element_vector<typename CommitmentSchemeType::curve_type::template g2_type<>, Endianness>(std::get<1>(filled_kzg_params.value()).value())
Expand Down
2 changes: 0 additions & 2 deletions include/nil/crypto3/marshalling/zk/types/commitments/kzg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ namespace nil {
template <typename Endianness, typename KZGScheme>
typename KZGScheme::commitment_type
make_commitment(typename commitment<nil::marshalling::field_type<Endianness>, KZGScheme, std::enable_if_t<nil::crypto3::zk::is_kzg<KZGScheme>>>::type const& filled_commitment) {
using TTypeBase = nil::marshalling::field_type<Endianness>;
typename KZGScheme::commitment_type result;
for( std::size_t i = 0; i < filled_commitment.value().size(); i++ ){
result.push_back(filled_commitment.value()[i].value());
Expand Down Expand Up @@ -119,7 +118,6 @@ namespace nil {
template<typename Endianness, typename KZGScheme>
typename KZGScheme::proof_type
make_eval_proof(const typename eval_proof<nil::marshalling::field_type<Endianness>, KZGScheme, std::enable_if_t<nil::crypto3::zk::is_kzg<KZGScheme>>>::type &filled_proof) {
using TTypeBase = nil::marshalling::field_type<Endianness>;
typename KZGScheme::proof_type proof;

proof.z = make_eval_storage<Endianness, typename KZGScheme::eval_storage_type>(std::get<0>(filled_proof.value()));
Expand Down
2 changes: 0 additions & 2 deletions test/detail/circuits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,6 @@ namespace nil {
constexpr static const std::size_t public_input_columns = public_columns_5;
constexpr static const std::size_t constant_columns = constant_columns_5;
constexpr static const std::size_t selector_columns = selector_columns_5;
constexpr static const std::size_t table_columns =
witness_columns + public_input_columns + constant_columns;

typedef placeholder_circuit_params<FieldType> circuit_params;

Expand Down

0 comments on commit 4e86f10

Please sign in to comment.