feat: Make public inputs the start of the UH and MH proof#12266
feat: Make public inputs the start of the UH and MH proof#12266lucasxia01 merged 52 commits intomasterfrom
Conversation
… element being added to the proof data
…tocol/aztec-packages into lx/public-inputs-at-proof-start
|
Question, if there is no offset anymore can it just be removed? What was it for ? |
No its still there in the vk, just not redundantly in the proof. The pub_inputs_offset basically represents the number of ecc_ops. I'm not sure if it needs to exist anymore if we don't use MegaHonk with an unstructured trace. |
@codygunton yep, Saleel brought that up as well and that's on my radar as a followup in the immediate future. |
…tocol/aztec-packages into lx/public-inputs-at-proof-start
Contains the changes from #12574 to replace the copy of the noir-repo with a `noir-repo-ref` file to point at the nightly version which we pull during the build. Updated `noir-repo-ref` in the PR to match the last merge sync PR #12624 Alternatively it could be set to include the commits from the open #12669 by setting it to [nightly-2025-03-14](https://github.com/noir-lang/noir/commits/nightly-2025-03-14) Added a patch to replicate the changes to honk test programs in #12266 Opened noir-lang/noir#7706 to migrate the patch back to Noir --------- Co-authored-by: Akosh Farkash <aakoshh@gmail.com> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: aakoshh <akosh@aztecprotocol.com>
Contains the changes from AztecProtocol/aztec-packages#12574 to replace the copy of the noir-repo with a `noir-repo-ref` file to point at the nightly version which we pull during the build. Updated `noir-repo-ref` in the PR to match the last merge sync PR AztecProtocol/aztec-packages#12624 Alternatively it could be set to include the commits from the open AztecProtocol/aztec-packages#12669 by setting it to [nightly-2025-03-14](https://github.com/noir-lang/noir/commits/nightly-2025-03-14) Added a patch to replicate the changes to honk test programs in AztecProtocol/aztec-packages#12266 Opened noir-lang/noir#7706 to migrate the patch back to Noir --------- Co-authored-by: Akosh Farkash <aakoshh@gmail.com> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: aakoshh <akosh@aztecprotocol.com>
|
For UltraHonk used as Noir backend, where can the verifier retrieve public inputs? It seems like previous discussions are saying the proof now begins with public inputs (with no metadata before them), but when I actually print out an UltraHonk proof that I'm using with Noir, the first 4 bytes seem to be metadata and public input bytes are not found anywhere in the proof. FYI, I'm using the following bbup commands. |
|
Hi Ihyun :) You're right that there's 4 bytes of metadata that exist at the beginning of the proof, which are used for deserialization. The public inputs in the current release of bb should exist right after those 4 bytes, in 32 byte chunks. |
Closes AztecProtocol/barretenberg#1089.
Removes the circuitSize, numPublicInputs, and pubInputsOffset metadata from the proof. The result is that the public inputs are at the beginning of the proof.
Followup work includes: