|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Native representation and serde for AppIO 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 > |
Public Member Functions | |
| void | to_proof (std::vector< NativeFF > &proof, size_t num_public_inputs) const |
| Serialize AppIO back to a proof vector. | |
Static Public Member Functions | |
| static AppIOSerde | from_proof (const std::vector< NativeFF > &proof, size_t num_public_inputs) |
| Deserialize AppIO from a proof vector. | |
Public Attributes | |
| NativePairingPoints | pairing_inputs |
Static Public Attributes | |
| static constexpr size_t | PUBLIC_INPUTS_SIZE = DEFAULT_PUBLIC_INPUTS_SIZE |
Native representation and serde for AppIO public inputs.
Used for testing and verification with native bb::fr vectors. Mirrors the structure of stdlib AppIO but works with native types. AppIO contains only pairing points from the app circuit's decider proof verification.
Definition at line 188 of file special_public_inputs_test_serde.hpp.
Definition at line 190 of file special_public_inputs_test_serde.hpp.
Definition at line 192 of file special_public_inputs_test_serde.hpp.
Definition at line 191 of file special_public_inputs_test_serde.hpp.
| using bb::stdlib::recursion::honk::AppIOSerde::NativePairingPoints = bb::PairingPoints<curve::BN254> |
Definition at line 193 of file special_public_inputs_test_serde.hpp.
|
inlinestatic |
Deserialize AppIO 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 |
AppIO is at the END of the public inputs section, so we start at offset (num_public_inputs - PUBLIC_INPUTS_SIZE)
Definition at line 206 of file special_public_inputs_test_serde.hpp.
|
inline |
Serialize AppIO 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 231 of file special_public_inputs_test_serde.hpp.
| NativePairingPoints bb::stdlib::recursion::honk::AppIOSerde::pairing_inputs |
Definition at line 197 of file special_public_inputs_test_serde.hpp.
|
staticconstexpr |
Definition at line 195 of file special_public_inputs_test_serde.hpp.