Atlantic API
Proof Generation
Proof generation is a process of converting pie.zip
file into STARK proof (proof.json
file), which can be later verified at a lower cost compared to running the program itself. Proof can be generated with either Starkware’s Sharp Prover or Stone Prover hosted by Herodotus.
/v1/proof-generation
This endpoint submits query for proof generation only.
How to use?
This endpoint requires the pie.zip
file as input, along with parameters to define the layout and the prover to be used.
Sending Request
- Query Parameters
apiKey
(string, required)
- Request Body
pieFile
(file -.zip
, required) -pie.zip
generated e.g. usingcairo-run
or with/trace-generation
endpoint (but in that case you should probably send/trace-generation-proof-generation
query instead)prover
(string, required, default:starkware_sharp
) - Prover to be used. If you want to use our stone instance - contact us.layout
(string, required, default:auto
) - Cairo layout of your pie file. Available layouts are:auto
- automatically detect layout based on builtins usagerecursive
recursive_with_poseidon
small
dex
starknet
starknet_with_keccak
dynamic
Responses
-
Success (201 created)
- Content-Type: application/json
- Response Body
- You can use this
atlanticQueryId
to check status of that request.
-
Error responses
- 400 Bad Request - Indicates that parameters are invalid, e.g. not providing
layout
at all. - 500 Internal Server Error - This says error is on our side.
- 400 Bad Request - Indicates that parameters are invalid, e.g. not providing