Service Initialization
Integrate with Snarkify SDK
You can skip this section if you have already followed the steps in Integrate Elastic Prover SDKand verified your change locally.
Switch to your project root directly, and run the following command:
It is simply a shortcut for:
Add
snarkify-sdk
cargo dependency to Cargo.tomlCreate a template
snarkify.rs
file under/src/bin
, in which you have to implement theProofHandler
with your own proof generation logic.
Create your new service
Once your code is ready, running the following command will create a new service on Snarkify platform:
The new service will automatically link to your current project directory, ensuring that all future build and deploy commands seamlessly synchronizes the changes from your working directory to the cloud.
Currently, our platform supports the creation of one service per code directory. We are actively working to enhance this feature, aiming to enable the support of multiple services from a single repository in the near future. Stay tuned for updates!
Query your service
You can use the snarkify service info
command to check the status of your service and get the RPC endpoint (service url
field) once the deployment is done. Below is an example output:
Last updated