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: Tate pairing #67

Merged
merged 19 commits into from
May 17, 2024
Merged

feat: Tate pairing #67

merged 19 commits into from
May 17, 2024

Conversation

Autoparallel
Copy link
Contributor

@Autoparallel Autoparallel commented May 15, 2024

Implements the Tate pairing for our curves. Adds in a test case which comes from Lynn's thesis. Also added the ability to draw random points from our base curve.

Closes #56 ?

src/curve/pairing.rs Outdated Show resolved Hide resolved
src/curve/pairing.rs Outdated Show resolved Hide resolved
@Autoparallel Autoparallel changed the title (WIP) feat: Tate pairing feat: Tate pairing May 17, 2024
@Autoparallel Autoparallel marked this pull request as ready for review May 17, 2024 16:22
[PrimeField::<59>::ONE, PrimeField::<59>::ZERO, PrimeField::<59>::ONE];
}

/// Returns the multiplication of two [`Ext<2, GF101>`] elements by reducing result modulo
Copy link
Contributor

Choose a reason for hiding this comment

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

This says GF101 but isn't it for Ext<2, GF59>?

/// Retrieves a multiplicative generator for GF(101) inside of [`Ext<2, GF101>`].
/// This can be verified using sage script
/// ```sage
/// F = GF(101)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should also be for GF59 right?


// The curve is given by E: y^2 = x^3 + x over F_59.
// The curve has 60 points and we will take r = 5 to get a group in the 5-torsion called G.
// One generator for this group is P = (25,30) and we get:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice this is good documentation

Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

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

remarkable, actually awesome work here. Very excited about this.

@Autoparallel Autoparallel merged commit a859cbe into main May 17, 2024
4 checks passed
@Autoparallel Autoparallel deleted the feat/pairing branch May 17, 2024 17:52
@github-actions github-actions bot mentioned this pull request Jul 1, 2024
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.

Feat: Pairing Check
2 participants