Skip to content

feat: cargo axiom prove --deferred-proof for deferral jobs - #185

Merged
luffykai merged 1 commit into
mainfrom
prove-deferred-proofs
Jul 23, 2026
Merged

feat: cargo axiom prove --deferred-proof for deferral jobs#185
luffykai merged 1 commit into
mainfrom
prove-deferred-proofs

Conversation

@luffykai

Copy link
Copy Markdown
Collaborator

A deferral submission is multipart/form-data on the same POST /proofs endpoint: the 'input' form field carries the JSON body string and each --deferred-proof file becomes a child_proofs file part (flag order = circuit packing order). Plain submissions keep the JSON body byte-for-byte.

Files must be the openvm-codec encoding (VersionedVmStarkProof:: encode_to_vec); the API rejects JSON parts, so the CLI sniffs '{'-leading files and fails before uploading megabytes, with conversion instructions. A codec stream's leading bytes are the version-string length prefix and can never be '{' (unit-tested).

A deferral submission is multipart/form-data on the same POST /proofs
endpoint: the 'input' form field carries the JSON body string and each
--deferred-proof file becomes a child_proofs file part (flag order =
circuit packing order). Plain submissions keep the JSON body byte-for-byte.

Files must be the openvm-codec encoding (VersionedVmStarkProof::
encode_to_vec); the API rejects JSON parts, so the CLI sniffs '{'-leading
files and fails before uploading megabytes, with conversion instructions.
A codec stream's leading bytes are the version-string length prefix and
can never be '{' (unit-tested).
@luffykai
luffykai merged commit 3a12046 into main Jul 23, 2026
3 checks passed
@luffykai
luffykai deleted the prove-deferred-proofs branch July 23, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant