HerodotusDev / integrity

Apache License 2.0
65 stars 19 forks source link

Implement public_input_validate Function #23

Closed Okm165 closed 10 months ago

Okm165 commented 10 months ago

The goal of this task is to implement the public_input_validate function. This function is crucial for verifying that the public input represents a valid Cairo statement, ensuring there exists a memory assignment and a valid corresponding program trace that satisfies the public memory requirements. Key aspects of this validation include checking range configurations, validating the layout, and ensuring the segments for the builtins do not exceed their maximum length. This task requires careful attention to detail to guarantee the function accurately assesses the validity of Cairo statements, while also noting that it does not cover validations related to public memory, which should be handled separately. Reference: https://vscode.dev/github/Okm165/cairo-lang/blob/v0.11.0-run-proof-sw-patch/cairo-lang-0.11.0/starkware/cairo/stark_verifier/air/layouts/all_cairo/public_verify.cairo#L79