-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: pairing_check_hint
for #[cfg(not(target_os = "zkvm"))]
#1168
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: 073315d |
pairing_check_hint
for #[cfg(not(target_os = "zkvm"))]
pairing_check_hint
for #[cfg(not(target_os = "zkvm"))]
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.
please just use the associated functions for the halo2curves types, with some conversion. it is ok on host to enable the halo2curves import always
@@ -275,7 +281,68 @@ impl PairingCheck for Bls12_381 { | |||
) -> (Self::Fp12, Self::Fp12) { | |||
#[cfg(not(target_os = "zkvm"))] | |||
{ | |||
todo!() | |||
let f = Self::multi_miller_loop(P, Q); |
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 would prefer for code maintenance if you just converted to halo2 curves type and called the associated method there. this duplicate code is not good for upkeep
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.
hm, unfortunately halo2curves computes the Gt value for final exponentiation directly and doesn't have a separate residue witness and cubic nonresidue power/scaling factor calculation, so it doesn't seem like there's a good way to calculate these values directly via halo2curves
Closing in favor of #1253 |
pairing_check_hint
for#[cfg(not(target_os = "zkvm"))]
for BN254 and BLS12-381