|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
For test purposes only: Native representation and serde for KernelIO public inputs More...
#include <special_public_inputs_test_serde.hpp>
Public Types | |
| using | NativeFF = bb::fr |
| using | NativeG1 = curve::BN254::AffineElement |
| using | NativeFq = curve::BN254::BaseField |
| using | NativePairingPoints = bb::PairingPoints< curve::BN254 > |
| using | NativeTableCommitments = std::array< NativeG1, MegaCircuitBuilder::NUM_WIRES > |
Public Member Functions | |
| void | to_proof (std::vector< NativeFF > &proof, size_t num_public_inputs) const |
| Serialize KernelIO back to a proof vector. | |
Static Public Member Functions | |
| static KernelIOSerde | from_proof (const std::vector< NativeFF > &proof, size_t num_public_inputs) |
| Deserialize KernelIO from a proof vector. | |
Public Attributes | |
| NativePairingPoints | pairing_inputs |
| NativeG1 | kernel_return_data |
| NativeG1 | app_return_data |
| NativeTableCommitments | ecc_op_tables |
| NativeFF | output_hn_accum_hash |
Static Public Attributes | |
| static constexpr size_t | PUBLIC_INPUTS_SIZE = KERNEL_PUBLIC_INPUTS_SIZE |
For test purposes only: Native representation and serde for KernelIO public inputs
Used for testing and verification with native bb::fr vectors. Mirrors the structure of stdlib KernelIO but works with native types.
Definition at line 16 of file special_public_inputs_test_serde.hpp.
Definition at line 18 of file special_public_inputs_test_serde.hpp.
Definition at line 20 of file special_public_inputs_test_serde.hpp.
Definition at line 19 of file special_public_inputs_test_serde.hpp.
| using bb::stdlib::recursion::honk::KernelIOSerde::NativePairingPoints = bb::PairingPoints<curve::BN254> |
Definition at line 21 of file special_public_inputs_test_serde.hpp.
| using bb::stdlib::recursion::honk::KernelIOSerde::NativeTableCommitments = std::array<NativeG1, MegaCircuitBuilder::NUM_WIRES> |
Definition at line 22 of file special_public_inputs_test_serde.hpp.
|
inlinestatic |
Deserialize KernelIO from a proof vector.
| proof | The proof vector (public inputs are at the beginning) |
| num_public_inputs | Total number of public inputs in the proof |
KernelIO is at the END of the public inputs section, so we start at offset (num_public_inputs - PUBLIC_INPUTS_SIZE)
Definition at line 39 of file special_public_inputs_test_serde.hpp.
|
inline |
Serialize KernelIO back to a proof vector.
| proof | The proof vector to write to |
| num_public_inputs | Total number of public inputs in the proof |
Definition at line 70 of file special_public_inputs_test_serde.hpp.
| NativeG1 bb::stdlib::recursion::honk::KernelIOSerde::app_return_data |
Definition at line 28 of file special_public_inputs_test_serde.hpp.
| NativeTableCommitments bb::stdlib::recursion::honk::KernelIOSerde::ecc_op_tables |
Definition at line 29 of file special_public_inputs_test_serde.hpp.
| NativeG1 bb::stdlib::recursion::honk::KernelIOSerde::kernel_return_data |
Definition at line 27 of file special_public_inputs_test_serde.hpp.
| NativeFF bb::stdlib::recursion::honk::KernelIOSerde::output_hn_accum_hash |
Definition at line 30 of file special_public_inputs_test_serde.hpp.
| NativePairingPoints bb::stdlib::recursion::honk::KernelIOSerde::pairing_inputs |
Definition at line 26 of file special_public_inputs_test_serde.hpp.
|
staticconstexpr |
Definition at line 24 of file special_public_inputs_test_serde.hpp.