Skip to content
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: residue test #1

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

feat: residue test #1

wants to merge 13 commits into from

Conversation

0xWOLAND
Copy link

Currently, verifying Tate pairings is expensive. For instance, the final_exponentiation step of an unreduced Tate pairing consists of vanishing the r-th roots of the image of the Tate pairing. Instead, we can use a Residue Test.

@0xWOLAND 0xWOLAND self-assigned this Jun 28, 2024
@@ -127,6 +127,25 @@ impl Fp12 {
Fp12 { c0, c1 }
}

pub fn mul_by_034(&self, c0: &Fp2, c3: &Fp2, c4: &Fp2) -> Fp12 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a /// comment on this function indicating what it does? Also why is it named "mul_by_034"?

@@ -0,0 +1,51 @@
use crate::{fp12::Fp12, fp2::Fp2, G1Affine, G2Affine};

fn eval(f: &mut Fp12, lambda: Fp2, p1: &G1Affine, t_x: Fp2, t_y: Fp2) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have a few comments as to what is going on (and also relevant section of the pairings paper)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants