-
Notifications
You must be signed in to change notification settings - Fork 17
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
base: main
Are you sure you want to change the base?
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
pairing_check_hint
for#[cfg(not(target_os = "zkvm"))]
for BN254 and BLS12-381