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: prepare pairing #70

Merged
merged 6 commits into from
Oct 5, 2023
Merged

feat: prepare pairing #70

merged 6 commits into from
Oct 5, 2023

Conversation

chokobole
Copy link
Contributor

@chokobole chokobole commented Oct 3, 2023

Description

These are simple changes without mathematical feature addition during implementing pairing.

For the classes that inherits such as `Group<T>` or `Field<T>`, the type `T`
is assumed to be the most derived class. This commit adds `final` keyword
for this purpose.
@chokobole chokobole force-pushed the feat/prepare-pairing branch from d8b9ed9 to 7c1b524 Compare October 4, 2023 12:08
@chokobole chokobole marked this pull request as ready for review October 4, 2023 12:08
The range of `non_residue` exceeds definitely beyond `uint64_t`, it
should be input with `std::string`.
This commit adds `BasePrimeField` to config class of `Extension Prime Field`
and `SWCurve`.
…ld()`

In addition, before this commit, `GenerateInitField()` generates field
initialization only for `BaseField` and `ScalarField`. `GenerateInitExtField()`
generates extension field initialization only for `BaseField`.
Considering `Frobenius Coefficients`, this needs to expand to BaseField
of BaseField.

| Name     | NonResidue | Frobenius Coefficient       |
|----------|------------|-----------------------------|
| Fp2      | Fp         | Fp(BaseField)               |
| Fp3      | Fp         | Fp(BaseField)               |
| Fp4      | Fp2        | Fp(BaseField of BaseField)  |
| Fp6(2/3) | Fp3        | Fp(BaseField of BaseField)  |
| Fp6(3/2) | Fp2        | Fp2(BaseField)              |
| Fp12     | Fp6        | Fp2(BaseField of BaseField) |
@chokobole chokobole force-pushed the feat/prepare-pairing branch from 7c1b524 to b97734b Compare October 5, 2023 00:14
Copy link
Contributor

@Insun35 Insun35 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@fakedev9999 fakedev9999 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Leegwangwoon Leegwangwoon left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole merged commit 5ef10c6 into main Oct 5, 2023
3 checks passed
@chokobole chokobole deleted the feat/prepare-pairing branch October 5, 2023 16:20
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.

4 participants