Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
blake_circuit.hpp
Go to the documentation of this file.
1#pragma once
5
7 public:
12
13 static constexpr size_t NUM_PUBLIC_INPUTS = 4;
14
15 static Builder generate(uint256_t public_inputs[])
16 {
18
19 byte_array_ct input_buffer(&builder);
20 for (size_t i = 0; i < NUM_PUBLIC_INPUTS; ++i) {
21 input_buffer.write(byte_array_ct(field_ct(public_witness_ct(&builder, public_inputs[i]))));
22 }
23
25
26 return builder;
27 }
28};
static Builder generate(uint256_t public_inputs[])
bb::stdlib::public_witness_t< Builder > public_witness_ct
bb::stdlib::byte_array< Builder > byte_array_ct
bb::stdlib::field_t< Builder > field_ct
static constexpr size_t NUM_PUBLIC_INPUTS
static byte_array_ct hash(const byte_array_ct &input)
Definition blake2s.cpp:122
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.
AluTraceBuilder builder
Definition alu.test.cpp:123
UltraCircuitBuilder_< UltraExecutionTraceBlocks > UltraCircuitBuilder