colibri-prover
The colibri-prover command is used to create proofs for a given method and parameters. It works without any backend.
# Create a proof for the eth_getBlockByNumber method
colibri-prover -o block_proof.ssz eth_getBlockByNumber latest false
Options
| Option | Argument | Description | Default |
|---|---|---|---|
-c |
<chain_id> |
Selected chain | MAINNET (1) |
-t |
<testname> |
Generates test files in test/data/<testname> |
|
-x |
<cachedir> |
Caches all requests in the cache directory | |
-o |
<outputfile> |
SSZ file with the proof | stdout |
-d |
<chain_store> |
Use chain_data from the chain_store found within the path |
|
-i |
Include code in the proof | ||
-G |
Generate an eth_getLogs completeness proof over the requested block range (proves no matching log was omitted; sets C4_PROVER_FLAG_LOGS_COMPLETENESS) |
||
-N |
Nimbus CL compatibility (slot-scan parent lookup, nimbus historical_summaries; sets C4_PROVER_FLAG_NIMBUS) |
||
-D |
Lodestar CL compatibility (enables self-build fallback for LC bootstrap/update via CompactMultiProof; sets C4_PROVER_FLAG_LODESTAR) |
||
<method> |
The method to execute | ||
<params> |
Parameters for the method |
c4_print_version
Main entry point for the colibri-prover CLI tool. Parses command-line arguments, creates a prover context, and executes the proof generation.
int main(int argc, char* argv[]) {
// Check for --version or -v flag
if (argc >= 2 && (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0)) {
c4_print_version(stdout, "colibri-prover");
Parameters
argc: Number of command-line argumentsargv: Array of command-line argument strings
Returns
EXIT_SUCCESS on success, EXIT_FAILURE on error