-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: transaction prover service #881
Conversation
Thank you! Not a review - just a couple of small comments:
|
243d3cd
to
debb0e7
Compare
I've removed thing related to |
I added an unimplemented for the async feature because the |
791208a
to
568ffb5
Compare
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.
Thank you! Looks good. I left some comments inline.
bin/miden-tx-prover/build.rs
Outdated
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 this file could be quite a bit simpler. The main reason we have most of this complexity in miden-node
is because .proto
files are not in the crate directory and so we need to copy them otherwise building on crates.io` doesn't work.
But here, things are pretty standard - so, we should be able to avoid many complexity here including the need for BUILD_PROTO
environment variable.
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.
Ok, I'll check this.
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.
Looks good! Thank you! I left some more comments inline.
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.
Looks good! Thank you! I left a few more small comments inline. Once these are addressed, we can merge.
Regarding:
I'm on it, internally TransactionMastStore uses a cc @bobbinth |
Using |
I'm using the |
Yeah, we could use pub struct RpcApi {
prover: Mutex<Arc<LocalTransactionProver>>,
} Or would that not work for some reason? |
That wouldn't solve the issue of Regarding |
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.
LGTM!
Thinking more about this, I wonder if the previous approach of using |
Yes, I agree with that. Making |
85828b8
to
1cbb27d
Compare
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.
Looks good! Thank you!
// We need to implement Send and Sync for the generated code to be able to use the prover in the | ||
// shared context. | ||
unsafe impl Send for RpcApi {} | ||
unsafe impl Sync for RpcApi {} |
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'll merge as is, but ideally, the comment should explain why it is OK to implement Send
and Sync
.
closes #860