barretenberg
Loading...
Searching...
No Matches
src
barretenberg
dsl
acir_format
hash_to_field.hpp
1
#pragma once
2
#include "barretenberg/dsl/types.hpp"
3
#include "barretenberg/serialize/msgpack.hpp"
4
#include <cstdint>
5
#include <vector>
6
7
namespace
acir_format {
8
9
struct
HashToFieldInput
{
10
uint32_t witness;
11
uint32_t num_bits;
12
13
// For serialization, update with any new fields
14
MSGPACK_FIELDS(witness, num_bits);
15
friend
bool
operator==(
HashToFieldInput
const
& lhs,
HashToFieldInput
const
& rhs) =
default
;
16
};
17
18
struct
HashToFieldConstraint
{
19
std::vector<HashToFieldInput> inputs;
20
uint32_t result;
21
22
// For serialization, update with any new fields
23
MSGPACK_FIELDS(inputs, result);
24
friend
bool
operator==(
HashToFieldConstraint
const
& lhs,
HashToFieldConstraint
const
& rhs) =
default
;
25
};
26
27
template
<
typename
Builder>
void
create_hash_to_field_constraints(
Builder
& builder,
HashToFieldConstraint
constraint);
28
29
}
// namespace acir_format
proof_system::UltraCircuitBuilder_
Definition:
ultra_circuit_builder.hpp:31
acir_format::HashToFieldConstraint
Definition:
hash_to_field.hpp:18
acir_format::HashToFieldInput
Definition:
hash_to_field.hpp:9
Generated by
1.9.6