15template <
typename Builder>
19 result.reserve(witness_indices.size());
20 for (
const auto& idx : witness_indices) {
29 for (
auto&
field : fields) {
34 result.
write(byte_to_append);
41 const std::vector<uint32_t>& public_inputs)
43 std::vector<uint32_t> proof;
44 proof.reserve(proof_in.size() + public_inputs.size());
47 proof.insert(proof.end(), public_inputs.begin(), public_inputs.end());
48 proof.insert(proof.end(), proof_in.begin(), proof_in.end());
54 const std::vector<bb::fr>& proof,
55 const std::vector<bb::fr>&
key,
58 const size_t num_public_inputs_to_extract,
59 const uint32_t proof_type)
62 std::vector<bb::fr> public_inputs(proof.begin(),
63 proof.begin() +
static_cast<ptrdiff_t
>(num_public_inputs_to_extract));
64 std::vector<bb::fr> proof_without_public_inputs(
65 proof.begin() +
static_cast<ptrdiff_t
>(num_public_inputs_to_extract), proof.end());
72 .proof_type = proof_type,
77template <
typename Builder>
89 std::span<const uint32_t>);
98 const std::vector<bb::fr>&);
101 const std::vector<bb::fr>&);
Represents a dynamic array of bytes in-circuit.
byte_array & write(byte_array const &other)
Appends the contents of another byte_array (other) to the end of this one.
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
General class for prime fields see Prime field documentation["field documentation"] for general imple...