arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/prover/README.md
prover/README.mdRaw
 1## Test Prover
 2
 3### Server Proof API
 4It is necessary to have a docker with server locally.
 5
 6The instructions in the following link can be followed:
 7https://github.com/hermeznetwork/test-info/tree/main/cli-prover
 8
 9> It is necessary to consult the pre-requirements to follow the steps of the next summary
10
11A summary of the steps to follow to run docker would be:
12
13- Clone the repository: https://github.com/hermeznetwork/test-info
14- `cd cli-prover`
15- `./cli-prover.sh -s localhost -v ~/prover_data  -r 22`
16- To enter docker: `docker exec -ti docker_cusnarks bash`
17- Inside the docker: `cd cusnarks; make docker_all FORCE_CPU=1`
18- Inside the docker: `cd config; python3 cusnarks_config.py 22 BN256`
19- To exit docker: `exit`
20- Now, the server API can be used. Helper can be consulted with: `./cli-prover.sh -h`
21- Is necessary to initialize the server with: `./cli-prover.sh --post-start <session>`
22- When `./cli-prover.sh --get-status <session>` is `ready` can be run the test.
23
24> The session can be consulted with `tmux ls`. The session will be the number of the last session on the list.
25
26### Test
27
28`INTEGRATION=1 go test`