47 auto deserialize_point = [&]() {
49 NativeG1::PUBLIC_INPUTS_SIZE);
50 idx += NativeG1::PUBLIC_INPUTS_SIZE;
51 return FrCodec::deserialize_from_fields<NativeG1>(limbs);
59 commitment = deserialize_point();
77 auto serialize_fq = [&](
const NativeFq& fq_val) {
78 constexpr uint64_t NUM_LIMB_BITS = 2 * NUM_LIMB_BITS_IN_FIELD_SIMULATION;
81 proof[idx++] =
NativeFF(val & LIMB_MASK);
82 proof[idx++] =
NativeFF((val >> NUM_LIMB_BITS) & LIMB_MASK);
85 auto serialize_point = [&](
const NativeG1& point) {
86 serialize_fq(point.x);
87 serialize_fq(point.y);
95 serialize_point(commitment);
131 auto deserialize_point = [&]() {
133 NativeG1::PUBLIC_INPUTS_SIZE);
134 idx += NativeG1::PUBLIC_INPUTS_SIZE;
135 return FrCodec::deserialize_from_fields<NativeG1>(limbs);
142 commitment = deserialize_point();
157 auto serialize_fq = [&](
const NativeFq& fq_val) {
158 constexpr uint64_t NUM_LIMB_BITS = 2 * NUM_LIMB_BITS_IN_FIELD_SIMULATION;
161 proof[idx++] =
NativeFF(val & LIMB_MASK);
162 proof[idx++] =
NativeFF((val >> NUM_LIMB_BITS) & LIMB_MASK);
165 auto serialize_point = [&](
const NativeG1& point) {
166 serialize_fq(point.x);
167 serialize_fq(point.y);
174 serialize_point(commitment);
210 auto deserialize_point = [&]() {
212 NativeG1::PUBLIC_INPUTS_SIZE);
213 idx += NativeG1::PUBLIC_INPUTS_SIZE;
214 return FrCodec::deserialize_from_fields<NativeG1>(limbs);
233 auto serialize_fq = [&](
const NativeFq& fq_val) {
234 constexpr uint64_t NUM_LIMB_BITS = 2 * NUM_LIMB_BITS_IN_FIELD_SIMULATION;
237 proof[idx++] =
NativeFF(val & LIMB_MASK);
238 proof[idx++] =
NativeFF((val >> NUM_LIMB_BITS) & LIMB_MASK);
241 auto serialize_point = [&](
const NativeG1& point) {
242 serialize_fq(point.x);
243 serialize_fq(point.y);
typename Group::affine_element AffineElement
Native representation and serde for AppIO public inputs.
void to_proof(std::vector< NativeFF > &proof, size_t num_public_inputs) const
Serialize AppIO back to a proof vector.
NativePairingPoints pairing_inputs
static AppIOSerde from_proof(const std::vector< NativeFF > &proof, size_t num_public_inputs)
Deserialize AppIO from a proof vector.
static constexpr size_t PUBLIC_INPUTS_SIZE
curve::BN254::AffineElement NativeG1
Native representation and serde for HidingKernelIO public inputs.
void to_proof(std::vector< NativeFF > &proof, size_t num_public_inputs) const
Serialize HidingKernelIO back to a proof vector.
static constexpr size_t PUBLIC_INPUTS_SIZE
std::array< NativeG1, MegaCircuitBuilder::NUM_WIRES > NativeTableCommitments
curve::BN254::AffineElement NativeG1
NativeG1 kernel_return_data
NativeTableCommitments ecc_op_tables
NativePairingPoints pairing_inputs
static HidingKernelIOSerde from_proof(const std::vector< NativeFF > &proof, size_t num_public_inputs)
Deserialize HidingKernelIO from a proof vector.
For test purposes only: Native representation and serde for KernelIO public inputs
std::array< NativeG1, MegaCircuitBuilder::NUM_WIRES > NativeTableCommitments
NativeFF output_hn_accum_hash
NativePairingPoints pairing_inputs
curve::BN254::AffineElement NativeG1
static constexpr size_t PUBLIC_INPUTS_SIZE
void to_proof(std::vector< NativeFF > &proof, size_t num_public_inputs) const
Serialize KernelIO back to a proof vector.
NativeTableCommitments ecc_op_tables
NativeG1 kernel_return_data
static KernelIOSerde from_proof(const std::vector< NativeFF > &proof, size_t num_public_inputs)
Deserialize KernelIO from a proof vector.
field< Bn254FrParams > fr
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept