starknet_proof_verifier: accept either PROOF_VERSION_V0 or PROOF_VERSION_V1 in verify_proof#14013
Conversation
PR SummaryMedium Risk Overview Error reporting is updated accordingly (new “unsupported proof version” message and Reviewed by Cursor Bugbot for commit 19501d4. Bugbot is set up for automated code reviews on this repo. Configure here. |
15246df to
9225aec
Compare
01c985a to
a2f547a
Compare
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
crates/starknet_proof_verifier/src/proof_verifier.rs line 132 at r1 (raw file):
} let proof_version = proof_facts.0.first().copied().unwrap_or_default();
plz extract it to a function proof_fact.proof_version()
Code quote:
proof_facts.0.first()9225aec to
c7f441b
Compare
90c0ffc to
e357e34
Compare
c7f441b to
c87ea0c
Compare
e357e34 to
9396eaa
Compare
23075f3 to
c23dea7
Compare
106b8dd to
c1edbac
Compare
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
crates/starknet_proof_verifier/src/proof_verifier.rs line 25 at r2 (raw file):
v1_felt = ProofVersion::V1.as_felt(), v1_str = ProofVersion::V1.as_str(), )]
consider impl debug / display that shows both str and felt
Code quote:
"Unsupported proof version: got {actual}, expected {v0_felt} ({v0_str}) or {v1_felt} \
({v1_str}).",
v0_felt = ProofVersion::V0.as_felt(),
v0_str = ProofVersion::V0.as_str(),
v1_felt = ProofVersion::V1.as_felt(),
v1_str = ProofVersion::V1.as_str(),
)]c1edbac to
e78c9e8
Compare
c23dea7 to
16de791
Compare
2b0ff64 to
8a42f7c
Compare
16de791 to
fa20920
Compare
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on AvivYossef-starkware).
crates/starknet_proof_verifier/src/proof_verifier.rs line 25 at r2 (raw file):
Previously, AvivYossef-starkware wrote…
consider impl debug / display that shows both str and felt
Thanks, done
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
…ION_V1 in verify_proof
fa20920 to
aeaaed1
Compare
8a42f7c to
19501d4
Compare
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
|
Artifacts upload workflows: |
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware reviewed 3 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware reviewed 1 file.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Yoni-Starkware).

No description provided.