Skip to content

Files

This branch is 281 commits behind scroll-tech/scroll:develop.

prover

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 19, 2023
Aug 31, 2023
Aug 23, 2023
Nov 22, 2023
Aug 28, 2023
Aug 5, 2023
Aug 1, 2023
Sep 14, 2023
Jul 28, 2023
Aug 23, 2023
Sep 2, 2023
Sep 2, 2023
Jul 28, 2023
Sep 7, 2023

Prover

This directory contains the Scroll Prover module.

Build

make clean
make prover

The built prover binary is in the build/bin directory.

Test

Make sure to lint before testing (or committing):

make lint

For current unit tests, run:

make prover
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./prover/lib
export CHAIN_ID=534353 # for Scroll Alpha
go test -v ./...

When you need to mock prover results and run other prover tests (using core/mock.go instead of core/prover.go), run:

go test -tags="mock_prover" -v -race -covermode=atomic scroll-tech/prover/...

Configure

The prover behavior can be configured using config.json. Check the code comments of Config and ProverCoreConfig in config/config.go for more details.

Start

  1. Set environment variables:
export CHAIN_ID=534353 # change to correct chain ID
export RUST_MIN_STACK=100000000
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./prover/lib
  1. Start the module using settings from config.json:
./build/bin/prover