Skip to content

Ensure all the checks and public inputs are set correctly for the hiding circuit #1156

Closed

Description

@maramihali

From @arielgabizon:
"There might be a need to add some kernel-circuit specific stuff. E.g. to check the final stack (inside the public input of the last kernel circuit instance) is empy as done in the seal circuit here:
https://hackmd.io/h0yTcOHiQWeeTXnxTQhTNQ?view#Completing-the-IVC-Seal-Circuit"

Activity

  1. added
    prio
    on Jul 3, 2025
  2. ledwards2225 commented on Jul 3, 2025

    @ledwards2225

    We should get some clarity (in collab with @arielgabizon) on what exactly we need to do here and/or what we want to do if there are multiple valid solutions

  3. added
    question
    on Jul 7, 2025
  4. arielgabizon commented on Jul 11, 2025

    @arielgabizon

    This depends on details of the tail circuit, which I'm not sure are 100% finalized?
    So, especially as we're doing it now in Noir, we should construct the hiding circuit in coordination with @LeilaWang to make sure we're doing all the needed checks on the inputs from the tail circuit.

    From looking at the description of the tail circuit here https://github.com/AztecProtocol/aztec-packages/blob/af0787fc71973d3389a22dffc572fc7cf062176e/docs/docs/protocol-specs/circuits/private-kernel-tail.md?plain=1#L25

    It seems checks that I mentioned like that the function stack is empty are already checked in the tail circuit.

    So I would guess it's enough in the hiding circuit to check

    • the vk belongs to the tail circuit
    • the notes and nullifiers, and other fields passed to the rollup from the public input of the tail circuit, are correctly copied to the public input of the hiding circuit

    But we should run this through Leila.

  5. LeilaWang commented on Aug 12, 2025

    @LeilaWang

    What @arielgabizon said is totally correct! That’s all we need to do in the hiding circuit. The tail checks everything and composes the public inputs that won't leak any private information, so the hiding only needs to make sure the previous one is tail (or tail_to_public) by checking the vk, and pass on the exact public inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prioquestionsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions