Build the EIF
Build the docker image
Go to the prover_and_ivs_template
directory and build the docker image.
docker build -t cp . -f DockerfileCP
Save the docker image to a tar file
docker save cp -o cp.tar
Build the EIF
oyster-cvm build --platform amd64 --docker-compose ./docker-compose-cp.yaml --docker-images ./cp.tar --output result_cp
The EIF will be saved in the ./result_cp
directory.
Running the docker image locally
docker compose -f docker-compose-cp-local.yaml up
This will start the docker image and expose the ports to the host machine.
Starting the Confidential Prover
You can use the start_cp.sh
script in the scripts
directory in the prover_and_ivs_template
repo to start the Confidential Prover.
info
- The script makes requests to the
localhost
by default. If you're running the confidential prover in a different IP address, you can pass the IP address as an argument to the script. - When running locally, the operator will not receive any jobs because contract attestation is only performed when the operator is running as an enclave.
chmod +x scripts/start_cp.sh
./scripts/start_cp.sh
Example:
./scripts/start_cp.sh 192.168.1.100