[ZK Stack] - GET /proof_generation_data and POST /verify_proof/:number do not work as expected #1045
-
Team or ProjectNo response Module Affected
Rust Version1.82.0 Operating System
Issue DescriptionWhen starting zkstack_server with the command In particular, I'm following the proving a batch documentation and try to execute The error message below requires to use application/json, but the documentation does not reflect that. Could you update it? Expected Behavior
When executing a GET endpoint (/proof_generation_data) it should return the requested data. Instead, it returns Current Behavior
and
Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Thank you for bringing this to our attention @thecodingshrimp. I’m forwarding your report to the appropriate team to review and address the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @thecodingshrimp, thanks for reaching out! We will take a look at errors and docs(they are indeed outdated). Overall, as far as I understand, the docs are a bit misleading in that case, because you don't really need to run the API yourself to prove a batch.
|
Beta Was this translation helpful? Give feedback.
Yes, that's correct.
The expectation is that they would do so on L1/Settlement Layer (and not server side). The proofs themselves are validated on-chain, so I'm not sure why people on the public network would need them from a centralized (potentially malicious) server when they have all the data needed on-chain.
I'm not sure for the other 2 endpoints, but I can loop …