apollo_starknet_os_program,starknet_os: support PROOF_VERSION_V1 in check_proof_facts#14014
Conversation
PR SummaryMedium Risk Overview Propagates the new constants through Rust ( Reviewed by Cursor Bugbot for commit 7885760. Bugbot is set up for automated code reviews on this repo. Configure here. |
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 1 unresolved discussion.
crates/apollo_starknet_os_program/src/cairo/starkware/starknet/core/os/execution/execution_constraints.cairo line 57 at r1 (raw file):
tempvar v1_diff = proof_header.proof_version - PROOF_VERSION_V1; assert v0_diff * v1_diff = 0; }
Suggestion:
// Validate the proof header.
static_assert ProofHeader.SIZE == 3;
let proof_header = cast(proof_facts, ProofHeader*);
assert proof_header.proof_variant = VIRTUAL_SNOS;
assert is_program_hash_allowed(proof_header.program_hash) = TRUE;
// Proof variant must be VIRTUAL_SNOS; proof version may be V0 (legacy) or V1 (current).
with_attr error_message("Unsupported proof version") {
tempvar proof_version = proof_header.proof_version;
assert (proof_version - PROOF_VERSION_V1) * (proof_version - PROOF_VERSION_V1) = 0;
}af28490 to
39b9d56
Compare
01c985a to
a2f547a
Compare
d0f4a98 to
d72bed0
Compare
90c0ffc to
e357e34
Compare
d72bed0 to
c496f63
Compare
e357e34 to
9396eaa
Compare
04f95dd to
558f5fc
Compare
106b8dd to
c1edbac
Compare
558f5fc to
8436836
Compare
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware reviewed 6 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion.
c1edbac to
e78c9e8
Compare
693e3ee to
4ffdb3c
Compare
2b0ff64 to
8a42f7c
Compare
4ffdb3c to
46e192d
Compare
8a42f7c to
19501d4
Compare
46e192d to
7e33536
Compare
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
Merge activity
|
7e33536 to
7885760
Compare
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware reviewed 6 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).

No description provided.