-
Notifications
You must be signed in to change notification settings - Fork 12
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
New Feature: "Contracts" => enable/disable contract integration tests #80
base: main
Are you sure you want to change the base?
Conversation
|
contracts/src/lib.rs
Outdated
@@ -0,0 +1 @@ | |||
// replace this crate with the actual contracts crate to run integration tests |
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.
is this todo for next PR?
let vk: &VerifyingKey<G1Affine> = pk.get_vk(); | ||
|
||
let circuit_params = circuit.params(); | ||
//let vk_serialized = vk.to_bytes(halo2_base::halo2_proofs::SerdeFormat::RawBytes); |
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.
what about this commented code?
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 guess PR is still WIP, lmk if so
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.
That was included by accident, I removed it now :).
This PR introduces a change that helps satisfy
rust-analyzer
when cloning the spectre repo and opening it in an IDE.I introduce a dummy crate with a readme pointing to the real contracts crate and a
feature
that makes the dependency on contract integration tests optional.I believe that this is an improvement to the workspace since we can't push the compiled binaries to GitHub and we want developers to be able to isolate and test / work on the ZK logic without having to bother setting up Smart Contracts / pulling in the external crate.
@nulltea agrees to my proposal which is why I have decided to create this PR. Please comment for suggestions and further improvements :).