Skip to content
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

Frame-like M now is an associated type #1136

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

gabriel-barrett
Copy link
Member

Simple change to simplify the prover trait

@gabriel-barrett gabriel-barrett requested a review from a team as a code owner February 15, 2024 18:31
src/proof/mod.rs Outdated
pub trait Prover<'a, F: CurveCycleEquipped, M: FrameLike<Ptr, FrameIO = Vec<Ptr>>> {
pub trait Prover<'a, F: CurveCycleEquipped> {
/// Associated type for a frame-like datatype
type M: FrameLike<Ptr, FrameIO = Vec<Ptr>>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a more distinctive name other than "M"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions? I think M came from Multiframe, but it is outdated indeed. I guess Frame can work

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Frame or FrameType would work I think

src/proof/mod.rs Outdated
pub trait Prover<'a, F: CurveCycleEquipped, M: FrameLike<Ptr, FrameIO = Vec<Ptr>>> {
pub trait Prover<'a, F: CurveCycleEquipped> {
/// Associated type for a frame-like datatype
type M: FrameLike<Ptr, FrameIO = Vec<Ptr>>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, Frame works

@gabriel-barrett gabriel-barrett added this pull request to the merge queue Feb 15, 2024
Merged via the queue into lurk-lab:main with commit 5190371 Feb 15, 2024
11 checks passed
@gabriel-barrett gabriel-barrett deleted the prover-trait-change branch February 15, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants