/v1/l2/atlantic-query/proof-verification
How to use?
To verify the proof, upload theproof.json
file along with stoneVersion
and memoryVerification
settings for the verifier. The endpoint also offers an option to mock the fact hash, which bypasses actual verification on chain. It is useful for testing purposes.
Sending request
- Query Parameters
apiKey
(string, required)
- Request Body
proofFile
(file -.json
, required) - File containing proof to verify.mockFactHash
(boolean, required) - Iftrue
the fact hash will be mocked, bypassing actual verification for testing purposes.stoneVersion
(string, required) -stone5
orstone6
. For Sharp proofs,stone6
has to be used.memoryVerification
(string, required) -strict
,relaxed
orcairo1
. Type of public memory verification.strict
andrelaxed
are for cairo 0.strict
should be used if possible, however for some bootloaders (e.g. one used by Sharp)relaxed
is required.
Responses
-
Success (201 created)
-
Error responses
- 400 Bad Request - Indicates that parameters are invalid such as providing programFile with programHash at the same request
- 500 Internal Server Error - This says error is on our side.