-
Notifications
You must be signed in to change notification settings - Fork 177
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
Conversation
There was a problem hiding this 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
.
There was a problem hiding this 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
There was a problem hiding this 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.
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, | ||
]); |
There was a problem hiding this comment.
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.
Co-authored-by: str4d <thestr4d@gmail.com>
Co-authored-by: str4d <thestr4d@gmail.com>
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)