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

add fast subgroup check for is_torsion_free #83

Merged
merged 7 commits into from
May 4, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 7, 2022

Similar to #80, this uses Scott's method from https://eprint.iacr.org/2021/1130 as implemented by @simonmasson for arkworks (arkworks-rs/curves#74)

Copy link

@simonmasson simonmasson left a comment

Choose a reason for hiding this comment

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

A .neg() needs to be removed in g1.rs.

src/g1.rs Outdated Show resolved Hide resolved
src/g1.rs Outdated Show resolved Hide resolved
src/g1.rs Outdated Show resolved Hide resolved
src/g1.rs Outdated Show resolved Hide resolved
src/g2.rs Show resolved Hide resolved
Copy link
Author

@ghost ghost left a comment

Choose a reason for hiding this comment

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

while documenting psi I noticed some inconsistencies (e.g. u/i for the field extension, p/q for the base field prime, etc)
I could make this consistent at the same time

src/g1.rs Outdated Show resolved Hide resolved
src/g1.rs Show resolved Hide resolved
src/g1.rs Outdated Show resolved Hide resolved
Copy link
Member

@str4d str4d left a comment

Choose a reason for hiding this comment

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

utACK after comments addressed.

src/notes/design.rs Outdated Show resolved Hide resolved
Comment on lines +421 to +428
pub const BETA: Fp = Fp::from_raw_unchecked([
0x30f1_361b_798a_64e8,
0xf3b8_ddab_7ece_5a2a,
0x16a8_ca3a_c615_77f7,
0xc26a_2ff8_74fd_029b,
0x3636_b766_6070_1c6e,
0x051b_a4ab_241b_6160,
]);
Copy link
Member

Choose a reason for hiding this comment

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

I confirmed that this matches the output of the Sage script.

src/g1.rs Outdated Show resolved Hide resolved
src/notes/design.rs Show resolved Hide resolved
joe and others added 2 commits April 22, 2022 18:34
Co-authored-by: str4d <thestr4d@gmail.com>
Co-authored-by: str4d <thestr4d@gmail.com>
@ghost ghost requested a review from ebfull May 2, 2022 11:05
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.

3 participants