|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
FIFO-streaming batch verification service for Chonk proofs. More...
#include <bbapi_chonk.hpp>
Public Member Functions | |
| ChonkBatchVerifierService ()=default | |
| ~ChonkBatchVerifierService () | |
| ChonkBatchVerifierService (const ChonkBatchVerifierService &)=delete | |
| ChonkBatchVerifierService & | operator= (const ChonkBatchVerifierService &)=delete |
| void | start (std::vector< std::shared_ptr< MegaZKFlavor::VKAndHash > > vks, uint32_t num_cores, uint32_t batch_size, const std::string &fifo_path) |
| void | enqueue (VerifyRequest request) |
| void | stop () |
| bool | is_running () const |
Private Member Functions | |
| void | writer_loop (const std::string &fifo_path) |
Private Attributes | |
| ChonkBatchVerifier | verifier_ |
| std::mutex | result_mutex_ |
| std::condition_variable | result_cv_ |
| std::queue< VerifyResult > | result_queue_ |
| bool | writer_shutdown_ = false |
| std::thread | writer_thread_ |
| bool | running_ = false |
FIFO-streaming batch verification service for Chonk proofs.
Wraps ChonkBatchVerifier and streams results over a named pipe (FIFO) as size-delimited msgpack payloads: [4-byte big-endian length][msgpack payload].
Lifecycle: start() → enqueue() × N → stop()
Definition at line 365 of file bbapi_chonk.hpp.
|
default |
| bb::bbapi::ChonkBatchVerifierService::~ChonkBatchVerifierService | ( | ) |
Definition at line 449 of file bbapi_chonk.cpp.
|
delete |
| void bb::bbapi::ChonkBatchVerifierService::enqueue | ( | VerifyRequest | request | ) |
Definition at line 420 of file bbapi_chonk.cpp.
|
inline |
Definition at line 379 of file bbapi_chonk.hpp.
|
delete |
| void bb::bbapi::ChonkBatchVerifierService::start | ( | std::vector< std::shared_ptr< MegaZKFlavor::VKAndHash > > | vks, |
| uint32_t | num_cores, | ||
| uint32_t | batch_size, | ||
| const std::string & | fifo_path | ||
| ) |
Definition at line 385 of file bbapi_chonk.cpp.
| void bb::bbapi::ChonkBatchVerifierService::stop | ( | ) |
Definition at line 425 of file bbapi_chonk.cpp.
|
private |
Definition at line 456 of file bbapi_chonk.cpp.
|
private |
Definition at line 387 of file bbapi_chonk.hpp.
|
private |
Definition at line 386 of file bbapi_chonk.hpp.
|
private |
Definition at line 388 of file bbapi_chonk.hpp.
|
private |
Definition at line 392 of file bbapi_chonk.hpp.
|
private |
Definition at line 384 of file bbapi_chonk.hpp.
|
private |
Definition at line 389 of file bbapi_chonk.hpp.
|
private |
Definition at line 390 of file bbapi_chonk.hpp.