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

Remove hash97 #119

Closed
wants to merge 1 commit into from
Closed

Remove hash97 #119

wants to merge 1 commit into from

Conversation

vbuterin
Copy link
Contributor

@vbuterin vbuterin commented Nov 8, 2018

Because the prime modulus is less than 2**381, we can just use the top bit of the x coordinate for the parity bit. This is what we do for the current alt_bn128 implementation already. So we don't need 97 bytes for anything, 96 works just fine.

Because the prime modulus is less than 2**381, we can just use the top bit of the x coordinate for the parity bit. This is what we do for the current alt_bn128 implementation already. So we don't need 97 bytes for anything, 96 works just fine.
@djrtwo
Copy link
Contributor

djrtwo commented Nov 9, 2018

Already handled in #116

@djrtwo djrtwo closed this Nov 9, 2018
@djrtwo djrtwo deleted the vbuterin-patch-3 branch November 9, 2018 10:39
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.

None yet

2 participants