Corpus Core Docs

CMake

general options

Flag descr default
CMAKE_BUILD_TYPE Build type (Debug, Release, RelWithDebInfo, MinSizeRel) Release

.. options

Flag descr default
BLOCK_HASH_CACHE Cache block hashes for faster verification within the same block ON
BLS_DESERIALIZE Store BLS keys deserialized. It is faster but uses 25k more memory in cache per period. ON
C4_PYTHON Build Python bindings OFF
CHAIN_ARB includes the Arbitrum verification support ON
CHAIN_EEZ includes the EEZ
CHAIN_ETH includes the ETH verification support ON
CHAIN_OP includes the OP-Stack verification support
CLI Disable CLI tools for Node addon OFF
CMAKE_OSX_DEPLOYMENT_TARGET Minimum macOS deployment target 10.15
COMBINED_STATIC_LIB Build a combined static library OFF
COVERAGE Enable coverage tracking OFF
CURL Disable CURL for Node addon OFF
DART Build Dart bindings OFF
EL_HEADER_CACHE verifier-side cache of verified execution-layer block headers. Required for hybrid mode and for proofs referencing an already verified block by hash only
EMBEDDED Build for embedded target OFF
ETH_ZKPROOF includes the ETH ZK-Proof verification support ON
ETH_ZKPROOF_BUILD_HOST Build eth-sync-script host binary
FILE_STORAGE if activated the verfifier will use a simple file-implementaion to store states in the current folder or in a folder specified by the env var C4_STATES_DIR ON
HTTP_SERVER Build the HTTP server using libuv and llhttp OFF
HTTP_SERVER_GEO support for geo-location ON
INCLUDE Additional directory to include in build
INSTALLER Build installer packages
KOTLIN Build Kotlin bindings OFF
MEMORY_STORAGE if activated the verifier will use an in-memory storage
MESSAGES if activated the binaries will contain error messages, but for embedded systems this is not needed and can be turned off to save memory ON
NODE_ADDON Build the Node.js native addon
PAP Enable Pragmatic Adaptive Privacy mode in verifier ON
PROVER Build the prover library ON
PROVER_CACHE Caches blockhashes and maps, which makes a lot of sense on a server OFF
PROVER_TRACE Collect lightweight prover-internal spans for server export OFF
SHAREDLIB Build shared library OFF
STATIC_MEMORY if true, the memory will be statically allocated, which only makes sense for embedded systems OFF
SWIFT Build Swift bindings OFF
TEST Build the unit tests OFF
USE_MCL Enable MCL support for ZK-Proof verification OFF
VERIFIER Build the verifier library ON
WASM Build WebAssembly target OFF
WITNESS_SIGNER Enable witness signing ON

chains options

Flag descr default
EXTRA_CHAIN Comma-separated list of third-party chain plugins (local dir or git URL, optionally with #ref)

eth options

Flag descr default
ETH_ACCOUNT support eth account verification. eth_getBalance, eth_getStorageAt, eth_getProof, eth_getCode, eth_getTransactionCount ON
ETH_BLOCK support eth block verification. eth_getBlockByHash, eth_getBlockByNumber, eth_getBlockTransactionCountByHash, eth_getBlockTransactionCountByNumber, eth_getUncleCountByBlockHash, eth_getUncleCountByBlockNumber ON
ETH_CALL support eth call verification. eth_call, eth_estimateGas ON
ETH_LOGS support eth logs verification. eth_getLogs ON
ETH_OBLIVIOUS support oblivious-node delayed-retry path
ETH_RECEIPT support eth receipt verification. eth_getTransactionReceipt ON
ETH_TX support eth Transaction verification. eth_getTransactionByHash, eth_getTransactionByBlockHashAndIndex, eth_getTransactionByBlockNumberAndIndex ON
ETH_UTIL support eth utils like eth_chainId or web3_sha3 ON
EVMLIGHT uses evmlight vor eth_call verification, which is smaller and faster, but does not track gas. OFF
EVMONE uses evmone to verify eth_calls ON
PRECOMPILES_BN128 Precompile BN128
PRECOMPILES_KZG Precompile KZG
PRECOMPILES_RIPEMD160 Precompile ripemd160 ON
USE_CHECKPOINTZ enable checkpoint fetching from checkpointz

precompiles options

Flag descr default
ETH_PRECOMPILE_EMBED Embed KZG trusted setup G2^tau as a generated header ON
ETH_TRUSTED_SETUP_FILE Path to trusted_setup.txt (c-kzg-4844 format) ${CMAKE_CURRENT_SOURCE_DIR}/trusted_setup.txt

kona_bridge options

Flag descr default
BUILD_KONA_BRIDGE Build Kona-P2P bridge as static C-FFI library

util options

Flag descr default
PRECOMPILE_ZERO_HASHES Enable precomputed zero hashes cache

evmone options

Flag descr default
EVMONE_X86_64_ARCH_LEVEL The x86_64 micro-architecture level ${EVMONE_X86_64_ARCH_LEVEL_INIT}

libuv options

Flag descr default
LIBUV_BUILD_TESTS Build libuv tests OFF

zstd options

Flag descr default
BUILD_SHARED_LIBS Build shared libraries OFF
ZSTD_BUILD_PROGRAMS Build zstd programs OFF
ZSTD_BUILD_SHARED Build shared libraries OFF
ZSTD_BUILD_STATIC Build static libraries ON
ZSTD_BUILD_TESTS Build zstd tests OFF

llhttp options

Flag descr default
BUILD_STATIC_LIBS ON

mcl options

Flag descr default
MCL_BUILD_SAMPLE Build samples OFF
MCL_BUILD_TESTING Build tests OFF
MCL_MAX_BIT_SIZE Max bit size (256 for BN254) 256
MCL_STATIC_LIB Build static library ON
MCL_TEST_WITH_GMP Use GMP for tests OFF
MCL_USE_GMP Use GMP OFF
MCL_USE_OPENSSL Use OpenSSL OFF