Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include <map>
#include "barretenberg/common/streams.hpp"
#include "barretenberg/srs/reference_string/reference_string.hpp"
#include "barretenberg/srs/reference_string/env_reference_string.hpp"
#include "barretenberg/ecc/curves/bn254/fr.hpp"
Expand Down Expand Up @@ -113,4 +114,15 @@ template <typename B> inline void write(B& buf, verification_key const& key)
write(buf, key.recursive_proof_public_input_indices);
}

inline std::ostream& operator<<(std::ostream& os, verification_key const& key)
{
return os
<< "key.composer_type: " << key.composer_type << "\n"
<< "key.circuit_size: " << static_cast<uint32_t>(key.circuit_size) << "\n"
<< "key.num_public_inputs: " << static_cast<uint32_t>(key.num_public_inputs) << "\n"
<< "key.commitments: " << key.commitments << "\n"
<< "key.contains_recursive_proof: " << key.contains_recursive_proof << "\n"
<< "key.recursive_proof_public_input_indices: " << key.recursive_proof_public_input_indices << "\n";
};

} // namespace bonk
13 changes: 1 addition & 12 deletions cpp/src/barretenberg/stdlib/hash/blake3s/blake3s.test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "blake3s.hpp"
#include "blake3s_plookup.hpp"
#include "barretenberg/crypto/blake3s/blake3s.hpp"
#include "barretenberg/common/streams.hpp"
#include <gtest/gtest.h>
#include "barretenberg/plonk/composer/turbo_composer.hpp"
#include "barretenberg/plonk/composer/ultra_composer.hpp"
Expand All @@ -14,18 +15,6 @@ typedef stdlib::byte_array<plonk::UltraComposer> byte_array_plookup;
typedef stdlib::public_witness_t<Composer> public_witness_t;
typedef stdlib::public_witness_t<plonk::UltraComposer> public_witness_t_plookup;

namespace std {
inline std::ostream& operator<<(std::ostream& os, std::vector<uint8_t> const& t)
{
os << "[ ";
for (auto e : t) {
os << std::setfill('0') << std::hex << std::setw(2) << (int)e << " ";
}
os << "]";
return os;
}
} // namespace std

TEST(stdlib_blake3s, test_single_block)
{
Composer composer = Composer();
Expand Down
12 changes: 0 additions & 12 deletions cpp/src/barretenberg/stdlib/hash/keccak/keccak.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ namespace {
auto& engine = numeric::random::get_debug_engine();
}

namespace std {
inline std::ostream& operator<<(std::ostream& os, std::vector<uint8_t> const& t)
{
os << "[ ";
for (auto e : t) {
os << std::setfill('0') << std::hex << std::setw(2) << (int)e << " ";
}
os << "]";
return os;
}
} // namespace std

TEST(stdlib_keccak, keccak_format_input_table)
{
Composer composer = Composer();
Expand Down