-
Notifications
You must be signed in to change notification settings - Fork 58
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
refactor: move prove_from_frames into Prover trait #1238
refactor: move prove_from_frames into Prover trait #1238
Conversation
fn lang(&self) -> &Arc<Lang<F, C>>; | ||
|
||
/// Converts input into Self::Frames according to the rules of the Prover | ||
fn from_frames( |
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.
I wasn't thrilled about having to add this method, but I didn't have a better way. Suggestions welcome!
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.
Can you provide the default implementation in the trait itself so we don't need to replicate them on both provers?
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.
Well, the problem is that Frame
is an associated type of the Prover
trait, so I can't make it specific to MultiFrame
(or any other concrete type). I could make it generic over Frame
, but that seems bad to me.
2054a7f
to
606147c
Compare
Force-pushed to fix up linter, sorry about that. |
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.
Thanks!!
Closes #1217.
lang()
method to theProver
traitprove_from_frames()
method to theProver
trait with the default implementation extracted from bothNova
andSuperNova
from_frames()
method to theProver
trait to assist theprove_from_frames()
method