Skip to content

Clean up MulByXXX methods, hard-coded non-residue constants in the template generator#10

Merged
ThomasPiellard merged 23 commits intodevelopfrom
refactor-constants
Jul 10, 2020
Merged

Clean up MulByXXX methods, hard-coded non-residue constants in the template generator#10
ThomasPiellard merged 23 commits intodevelopfrom
refactor-constants

Conversation

@ggutoski
Copy link
Copy Markdown
Contributor

@ggutoski ggutoski commented Jul 9, 2020

Solves #7 , #8 .
All the hard-coded constants mentioned in #8 appear only in the MulByXXX methods in pairing.go for each curve. It was decided that pairing code will not be generated from template (see #9 ). As such, I've simply removed code for generating twoInv from the template generator.

ggutoski added 23 commits June 22, 2020 14:45
…plate fpInlineMulByNonResidue, clean up generated comments
…template fpInlineMulByNonResidueInv, more comment cleaning
…template fp2InlineMulByNonResidueInv, clean up some dollar signs
…good thing no one called this code; good thing we had tests... :rolleyes:
…o to pairing.go, delete MulByV2NRInv, MulByNWNRInv, MulByWNRInv
…k commit 7dcd496ba42799bf1d4b695226ce6cc4c1f48792
@ggutoski ggutoski requested a review from ThomasPiellard July 9, 2020 18:29
@ThomasPiellard ThomasPiellard merged commit 8072f19 into develop Jul 10, 2020
@ggutoski ggutoski deleted the refactor-constants branch July 14, 2020 14:29
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