FIFO-streaming batch verification service for Chonk proofs.
More...
#include <bbapi_chonk.hpp>
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 366 of file bbapi_chonk.hpp.
◆ ChonkBatchVerifierService() [1/2]
| bb::bbapi::ChonkBatchVerifierService::ChonkBatchVerifierService |
( |
| ) |
|
|
default |
◆ ~ChonkBatchVerifierService()
| bb::bbapi::ChonkBatchVerifierService::~ChonkBatchVerifierService |
( |
| ) |
|
◆ ChonkBatchVerifierService() [2/2]
◆ close_fifo_locked()
| void bb::bbapi::ChonkBatchVerifierService::close_fifo_locked |
( |
| ) |
|
|
private |
◆ enqueue()
| void bb::bbapi::ChonkBatchVerifierService::enqueue |
( |
VerifyRequest |
request | ) |
|
◆ ensure_fifo_open()
| bool bb::bbapi::ChonkBatchVerifierService::ensure_fifo_open |
( |
| ) |
|
|
private |
◆ fail_fifo_locked()
| bool bb::bbapi::ChonkBatchVerifierService::fail_fifo_locked |
( |
const std::string & |
message | ) |
|
|
private |
◆ fail_request()
| void bb::bbapi::ChonkBatchVerifierService::fail_request |
( |
uint64_t |
request_id, |
|
|
std::string |
error_message |
|
) |
| |
◆ is_running()
| bool bb::bbapi::ChonkBatchVerifierService::is_running |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ start()
| 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 |
|
) |
| |
◆ stop()
| void bb::bbapi::ChonkBatchVerifierService::stop |
( |
| ) |
|
◆ write_result()
| bool bb::bbapi::ChonkBatchVerifierService::write_result |
( |
VerifyResult |
result | ) |
|
|
private |
◆ fifo_failed_
◆ fifo_fd_
| int bb::bbapi::ChonkBatchVerifierService::fifo_fd_ = -1 |
|
private |
◆ fifo_mutex_
| std::mutex bb::bbapi::ChonkBatchVerifierService::fifo_mutex_ |
|
private |
◆ fifo_path_
| std::string bb::bbapi::ChonkBatchVerifierService::fifo_path_ |
|
private |
◆ running_
◆ verifier_
The documentation for this class was generated from the following files: