|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
A full proof for the IVC scheme containing a Mega proof showing correctness of the Hiding kernel (which recursive verified the last folding and decider proof) and a Goblin proof (translator VM, ECCVM and last merge proof). More...
#include <chonk.hpp>
Classes | |
| class | DeserializationError |
Public Member Functions | |
| size_t | size () const |
| std::vector< FF > | to_field_elements () const |
| Serialize proof to field elements. | |
| msgpack::sbuffer | to_msgpack_buffer () const |
| uint8_t * | to_msgpack_heap_buffer () const |
| Very quirky method to convert a msgpack buffer to a "heap" buffer. | |
| void | to_file_msgpack (const std::string &filename) const |
| MSGPACK_FIELDS (mega_proof, goblin_proof) | |
| bool | operator== (const Proof &other) const =default |
Static Public Member Functions | |
| static constexpr size_t | PROOF_LENGTH_WITHOUT_PUB_INPUTS (size_t virtual_log_n=MegaZKFlavor::VIRTUAL_LOG_N) |
| The size of a Chonk proof without backend-added public inputs. | |
| static constexpr size_t | PROOF_LENGTH (size_t virtual_log_n=MegaZKFlavor::VIRTUAL_LOG_N) |
| The size of a Chonk proof with backend-added public inputs: HidingKernelIO. | |
| static Proof | from_field_elements (const std::vector< Chonk::FF > &fields) |
| static Proof | from_msgpack_buffer (uint8_t const *&buffer) |
| static Proof | from_msgpack_buffer (const msgpack::sbuffer &buffer) |
| static Proof | from_file_msgpack (const std::string &filename) |
Public Attributes | |
| HonkProof | mega_proof |
| GoblinProof | goblin_proof |
Static Public Attributes | |
| static constexpr const char | MSGPACK_SCHEMA_NAME [] = "ChonkProof" |
A full proof for the IVC scheme containing a Mega proof showing correctness of the Hiding kernel (which recursive verified the last folding and decider proof) and a Goblin proof (translator VM, ECCVM and last merge proof).
This proof will be zero-knowledge.
|
static |
|
static |
|
static |
|
static |
| bb::Chonk::Proof::MSGPACK_FIELDS | ( | mega_proof | , |
| goblin_proof | |||
| ) |
|
default |
|
inlinestaticconstexpr |
The size of a Chonk proof with backend-added public inputs: HidingKernelIO.
| virtual_log_n |
|
inlinestaticconstexpr |
| std::vector< Chonk::FF > bb::Chonk::Proof::to_field_elements | ( | ) | const |
| void bb::Chonk::Proof::to_file_msgpack | ( | const std::string & | filename | ) | const |
| msgpack::sbuffer bb::Chonk::Proof::to_msgpack_buffer | ( | ) | const |
| uint8_t * bb::Chonk::Proof::to_msgpack_heap_buffer | ( | ) | const |
Very quirky method to convert a msgpack buffer to a "heap" buffer.
This method results in a buffer that is double-size-prefixed with the buffer size. This is to mimmic the original bb.js behavior which did a *out_proof = to_heap_buffer(to_buffer(proof));
| GoblinProof bb::Chonk::Proof::goblin_proof |
|
staticconstexpr |