You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

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