Skip to content

Emit chain id in the app circuit public inputs and validate in the kernel circuit #705

@spalladino

Description

@spalladino

To prevent the same proof from being submitted to more than one chain, we should include the chain id in the app circuit public inputs. So, when the user creates a ZKP for their tx, they just include the intended chain id as part of the public inputs. This value should then be validated by the kernel circuit.

TBD: Is it enough that the kernel circuit validates it? And we have a different kernel circuit for each chain, with the chain id hardcoded?

Raised by @LeilaWang in #656 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions