-
Notifications
You must be signed in to change notification settings - Fork 322
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: ServerCircuitProver return values #9391
Conversation
527a4c9
to
6ec88c6
Compare
5351c4b
to
6ec88c6
Compare
@@ -427,7 +425,7 @@ export class MemoryProvingQueue implements ServerCircuitProver, ProvingJobSource | |||
inputs: AvmCircuitInputs, | |||
signal?: AbortSignal, | |||
epochNumber?: number, | |||
): Promise<ProofAndVerificationKey<Proof>> { | |||
): Promise<ProofAndVerificationKey<number>> { |
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.
Wonder if type Unbounded = number is too hacky :)
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.
Ah good shout! I think it would it clean and I can leave a comment at the definition point about it
@@ -36,18 +36,30 @@ export class MockProver implements ServerCircuitProver { | |||
getAvmProof() { | |||
return Promise.resolve( | |||
makeProofAndVerificationKey( | |||
makeEmptyProof(), | |||
makeEmptyRecursiveProof<number>(0), |
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'm not really sure why the type is even called recursive proof, why separates it structurally from a non-recursive proof?
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 think it's a leftover from when we were proving with plonk
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.
Indeed, all the (non)recursive proof terminology comes from the days of plonk
6ec88c6
to
ca65f95
Compare
This PR changes some of the types returned by functions on the
ServerCircuitProver
interface to make them more friendly for serialisation/deserialisation