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

Is it a wrong value for mnt6_final_exponent_last_chunk_abs_of_w0 in mnt6_init.cpp? #24

Open
3for opened this issue Feb 22, 2019 · 4 comments

Comments

@3for
Copy link

3for commented Feb 22, 2019

I'm following the paper to learn the mnt4 and mnt6 curves, it's said that t6=2-t4, the t4 value is 689871209842287392837045615510547309923794945,so the t6 value should be -689871209842287392837045615510547309923794943 instead of -689871209842287392837045615510547309923794944.
I'm wondering if the value for mnt6_final_exponent_last_chunk_abs_of_w0 in mnt6_init.cpp is wrong.

@ValarDragon
Copy link
Member

/cc @howardwu @Pratyush

Is there an analog of this we can check in Zexe?

@ValarDragon
Copy link
Member

ValarDragon commented Aug 25, 2020

Thanks! The mnt6_final_exponent_last_chunk_abs_of_w0 value matches whats in Zexe's mnt 6 then.

Additionally the mnt4 exponents match whats in Zexe. I'm not familiar enough with the MNT cycle to know if there is a bug here, in the paper, or if there is some optimization / alternate curve being used.

@3for
Copy link
Author

3for commented Aug 26, 2020

Maybe I misunderstood the relation between t4 and t6?

sage: hex(689871209842287392837045615510547309923794944)
'1eef5546609756bec2a33f0dc9a1b671660000'

sage: hex(689871209842287392837045615510547309923794943)
'1eef5546609756bec2a33f0dc9a1b67165ffff'

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

No branches or pull requests

3 participants