前序博客有:

Polygon zkEVM Prover开源代码见:
Polygon zkEVM Prover负责:
Polygon zkEVM Prover程序中提供了3个RPC服务:
testvectors/config.json 文件中包含了配置不同Prover可选项的配置参数,最重要的相关参数有:
| Parameter | Default | Description |
|---|---|---|
| runProverServer | true | Enable Prover GRPC service |
| runExecutorServer | true | Enable Executor server |
| runStateDBServer | true | Enable StateDB (Merkle-tree) GRPC service |
| runFile | false | Execute the Prover using as input a test file defined in "inputFile" parameter |
| inputFile | input_executor.json | Test input file. It must be located in the testvectors folder |
| outputPath | output | Output path folder to store the result files. It must be located in the testvectors folder |
| databaseURL | local | Connection string for the PostgreSQL database used by the StateDB service. If the value is "local" then the service will not use a database and the data will be stored only in memory (no persistence). The PostgreSQL database connection string has the following format: "postgresql://. For example: "postgresql://statedb:statedb@127.0.0.1:5432/testdb" |
| stateDBURL | local | Connection string for the StateDB service. If the value is "local" then the GRPC StateDB service will not be used and local StateDB client will be used instead. The StateDB service connection string has the following format: ". For example: "127.0.0.1:50061" |
若想运行a proof test,需做如下配置:
config.json文件中的"runFile"参数为“true”,其它参数必须配置为“false”。testvectors/input_executor.json即为一个测试文件。testvectors文件夹内运行$ ../build/zkProver 来启动Prover。