Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::stdlib::IsSerializableToAndFromPublicInputs Concept Reference

A concept defining requirements for types that are to be serialized to and from the public inputs of a circuit via the PublicInputComponent class. More...

#include <public_input_component.hpp>

Concept definition

template<typename ComponentType>
ComponentType component,
std::span<stdlib::field_t<typename ComponentType::Builder>, ComponentType::PUBLIC_INPUTS_SIZE> public_inputs) {
{
component.set_public()
{
ComponentType::reconstruct_from_public(public_inputs)
{
ComponentType::PUBLIC_INPUTS_SIZE
}
A concept defining requirements for types that are to be serialized to and from the public inputs of ...
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13

Detailed Description

A concept defining requirements for types that are to be serialized to and from the public inputs of a circuit via the PublicInputComponent class.

Template Parameters
ComponentTypeThe type of the object to be serialized

Definition at line 21 of file public_input_component.hpp.