Skip to content

Move state service maintainence to protocol circuits #382

@rpanic

Description

@rpanic

Until the introduction of Unconstrained in o1js, we had to inject the state record and state services behind the scenes to the prover. This is a ambiguous side effect making the circuits prone to hidden errors.

As a refactoring, we should use this new primitive to use the starting states as unconstrained parameters to the protocol circuits, where a new state service gets created with those values and pushed onto the state service stack.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions