-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_proof_manager: calculate hash within the proof storage #11382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apollo_proof_manager: calculate hash within the proof storage #11382
Conversation
e5e04ce to
da8ef68
Compare
90d9641 to
52e19d6
Compare
ee2edf4 to
7995c4f
Compare
2b100d1 to
2b06b3d
Compare
noaov1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noaov1 reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @einat-starkware).
noaov1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noaov1 made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @einat-starkware).
crates/apollo_proof_manager/src/proof_storage.rs line 20 at r1 (raw file):
fn set_proof(&self, proof_facts: ProofFacts, proof: Proof) -> Result<(), Self::Error>; fn get_proof(&self, proof_facts: ProofFacts) -> Result<Option<Proof>, Self::Error>; fn contains_proof(&self, proof_facts: ProofFacts) -> Result<bool, Self::Error>;
Do you need an actual copy of the proof facts?
Suggestion:
fn set_proof(&self, proof_facts: &ProofFacts, proof: Proof) -> Result<(), Self::Error>;
fn get_proof(&self, proof_facts: &ProofFacts) -> Result<Option<Proof>, Self::Error>;
fn contains_proof(&self, proof_facts: &ProofFacts) -> Result<bool, Self::Error>;7995c4f to
1a5aa6f
Compare
einat-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@einat-starkware made 1 comment.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @noaov1).
crates/apollo_proof_manager/src/proof_storage.rs line 20 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Do you need an actual copy of the proof facts?
You're right, I don't need it :), updated to use a reference
1a5aa6f to
f225f91
Compare
einat-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@einat-starkware made 1 comment.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @noaov1).
crates/apollo_proof_manager/src/proof_storage.rs line 20 at r1 (raw file):
Previously, einat-starkware wrote…
You're right, I don't need it :), updated to use a reference
Never mind, I actually do need the proof_facts themselves because for reasons relating to the serde and async requirements in the client, I would need to clone in the client anyways and all the interaction with the proof manager happens through the client so I would be cloning anyways, so there's no benefit to using a reference here. Regardless, the proof facts is wrapped in Arc so the benefit is negligible anyways to avoiding the clone
2b06b3d to
ddec95e
Compare
f225f91 to
178943a
Compare
178943a to
135fe74
Compare
ddec95e to
843f5c8
Compare
einat-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@einat-starkware resolved 1 discussion.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @noaov1).
135fe74 to
bfca5a8
Compare
843f5c8 to
1ab366b
Compare
bfca5a8 to
3db1952
Compare
Merge activity
|
einat-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@einat-starkware reviewed 3 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @einat-starkware).

No description provided.