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

BW6-761 part 1 #100

Merged
merged 6 commits into from
Oct 9, 2020
Merged

BW6-761 part 1 #100

merged 6 commits into from
Oct 9, 2020

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Oct 7, 2020

Part 1 implementation of BW6-761 from https://eprint.iacr.org/2020/351.pdf

The part 1 consists of

  • Finite field Fp
  • Extension fields Fp2 and Fp6
  • G1 curve over Fp
  • G2 curve over Fp

Endomorphisms (GLV, Frobenius, lattice decompositions) and pairings are left for subsequent PRs.

BW6-761 necessitated a complete refactor of the Elliptic affine/projective/jacobian type.
I had to add a new OnTwist dependent type/static enum as:

  1. BW6-761 has an embedding degree of 6
  2. BW6-761 has a sextic twist
  3. The Twisted curve is over Fp^(embedding_degree/twist_degree) = Fp^(6/6) = Fp hence both G1 and G2 are defined on Fp (unlike BN and BLS12 where G1 is on Fp and G2 on Fp2).

so we can't assume G1 or G2 from just the base field.

@mratsim mratsim changed the title BW6-761 BW6-761 part 1 Oct 8, 2020
@mratsim mratsim marked this pull request as ready for review October 8, 2020 23:57
@mratsim mratsim merged commit 71bb4c7 into master Oct 9, 2020
@mratsim mratsim deleted the BW6-761 branch October 9, 2020 09:15
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.

1 participant