-
Notifications
You must be signed in to change notification settings - Fork 242
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
Allow running BLS12-381 curve test in the field-only mode #461
Conversation
pub struct Parameters; | ||
|
||
#[cfg(feature = "bls12_381_curve")] | ||
impl Bls12Parameters for Parameters { |
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.
The main reason for this change is that Parameters
requires group definitions.
@@ -22,12 +24,16 @@ pub mod g2_swu_iso; | |||
pub use {fq::*, fq12::*, fq2::*, fq6::*, g1::*, g1_swu_iso::*, g2::*, g2_swu_iso::*}; | |||
|
|||
#[cfg(test)] | |||
#[cfg(feature = "bls12_381_curve")] |
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.
Since Fq is only loaded when bls12_381_curve
, this effectively means that all the tests would require bls12_381_curve
.
I've included the fix for this in #463. If you could check and confirm that it works, that would be great. |
Description
At this moment, if one does the following, which is the case of ark-snark (!)
It would fail because the conditional compilation for bls12_381_scalar_field is not complete. It would report that several modules are missing.
This PR fixes so.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Files changed
in the GitHub PR explorerN/A:
Pending
section inCHANGELOG.md