Skip to content

Commit

Permalink
remove use of stdlib/primitives/composers files outside stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
maramihali committed Jun 15, 2023
1 parent cf3f95f commit 9691ba8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#include "barretenberg/ecc/curves/bn254/fr.hpp"
#include <benchmark/benchmark.h>
#include <cstddef>
#include "barretenberg/stdlib/primitives/composers/composers_fwd.hpp"
#include "barretenberg/stdlib/primitives/composers/composers.hpp"
#include "barretenberg/honk/composer/ultra_honk_composer.hpp"
#include "barretenberg/stdlib/encryption/ecdsa/ecdsa.hpp"
#include "barretenberg/stdlib/hash/keccak/keccak.hpp"
#include "barretenberg/stdlib/primitives/curves/secp256k1.hpp"
Expand Down
1 change: 0 additions & 1 deletion cpp/src/barretenberg/dsl/acir_format/acir_format.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "acir_format.hpp"
#include "barretenberg/common/log.hpp"
#include "barretenberg/stdlib/primitives/composers/composers.hpp"

namespace acir_format {

Expand Down
1 change: 0 additions & 1 deletion cpp/src/barretenberg/dsl/acir_format/acir_format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "pedersen.hpp"
#include "hash_to_field.hpp"
#include "barretenberg/dsl/types.hpp"
#include "barretenberg/stdlib/primitives/composers/composers_fwd.hpp"

namespace acir_format {

Expand Down
1 change: 0 additions & 1 deletion cpp/src/barretenberg/dsl/acir_format/acir_format.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "barretenberg/common/streams.hpp"
#include "barretenberg/serialize/test_helper.hpp"
#include "ecdsa_secp256k1.hpp"
#include "barretenberg/stdlib/primitives/composers/composers.hpp"

TEST(acir_format, test_a_single_constraint_no_pub_inputs)
{
Expand Down
2 changes: 0 additions & 2 deletions cpp/src/barretenberg/honk/composer/ultra_honk_composer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ template <class Flavor> class UltraHonkComposer_ {
const std::string& err() const { return circuit_constructor.err(); };
void failure(std::string msg) { circuit_constructor.failure(msg); }
};
template class UltraHonkComposer_<honk::flavor::Ultra>;
template class UltraHonkComposer_<honk::flavor::UltraGrumpkin>;
using UltraHonkComposer = UltraHonkComposer_<honk::flavor::Ultra>;
using UltraGrumpkinHonkComposer = UltraHonkComposer_<honk::flavor::UltraGrumpkin>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @brief Defines particular composer and circuit constructor types expected to be used for proof or circuit
construction (outside the proof_system and honk folder) and contains macros for explicit instantiation.
construction in stdlib and contains macros for explicit instantiation.
*
* @details This file is designed to be included in header files to instruct the compiler that these classes exist and
* their instantiation will eventually take place. Given it has no dependencies, it causes no additional compilation or
* propagation. This should be the ONLY file related to these types included in files out side the proof system.
* propagation.
*/
#pragma once

Expand Down

0 comments on commit 9691ba8

Please sign in to comment.