starknet_proof_verifier: accept either PROOF_VERSION_V0 or PROOF_VERSION_V1 in verify_proof#14013
Conversation
PR SummaryMedium Risk Overview Refactors related constants/error reporting: Reviewed by Cursor Bugbot for commit 8a42f7c. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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
e78c9e8 to
2b0ff64
Compare
…ION_V1 in verify_proof
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).

No description provided.