Skip to content

Conversation

@emmansun
Copy link
Contributor

for details, pls refer #35

func (e *gfP12) SpecialSquare(a *gfP12) *gfP12 {
tmp := &gfP12{}

f02 := &tmp.y.x
Copy link
Contributor

Choose a reason for hiding this comment

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

Let' make clear what is the isomorphism.

gfp12.go Outdated
// easy part of the final exponentiation. Used in the hard part
// of the final exponentiation. Function uses formulas in
// Granger/Scott (PKC2010).
func (e *gfP12) SpecialSquare(a *gfP12) *gfP12 {
Copy link
Contributor

Choose a reason for hiding this comment

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

it can be renamed to SquareCyclotomic or something more shorter. Similarly for the exponentiation by u

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to SquareCyclo6

gfp12_test.go Outdated
got := &gfP12{}
expected := &gfP12{}

got.SpecialSquare(in)
Copy link
Contributor

Choose a reason for hiding this comment

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

add some warning, since this test assume the input is in the cyclotomic subgroup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added requirement for input

@armfazh armfazh requested a review from bwesterb July 16, 2023 00:49
@bwesterb
Copy link
Member

bwesterb commented Jul 17, 2023

Thanks for this. For ease of review, could you add more explicitly to each function what it does; what it assumes; and why it works.

@emmansun
Copy link
Contributor Author

Thanks for this. For ease of review, could you add more explicitly to each function what it does; what it assumes; and why it works.

Hi @armfazh @bwesterb , i had tried my best to add more comments for all new added functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants