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

Address Code Review Issues #37

Open
wants to merge 7 commits into
base: spec/feature/bls-dependencies
Choose a base branch
from

Conversation

b13decker
Copy link
Collaborator

Closes #27, closes #28, closes #31, closes #32, closes #33.

@b13decker b13decker added this to the Milestone 2 milestone Oct 1, 2024
@b13decker b13decker self-assigned this Oct 1, 2024
@b13decker b13decker changed the base branch from main to spec/feature/bls-dependencies October 1, 2024 23:42
Copy link
Collaborator

@marsella marsella left a comment

Choose a reason for hiding this comment

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

These changes look good, thank you!

Just out of preference, since it makes it clear we are just mapping a
conversion over all the elements in the powers' list.
And hardcode to work on a 384-bit value. I'm doing this for two reasons:
first, because it better matches the Python spec; second, because it
will only ever be used a 384-bit value, so there is no need for it to be
more abstract; and third, because it reduces complexity making the
function be monomorphic.
Previously, I got the LSB by calling the custom int_to_bit function, but
this can be done by indexing the zero-ith bit from the back, using '!0'.
Since it was no longer used and there is a builtin way to get the LSB.
The Python spec function multi_exp handles both G1 and G2 points. Our
g1_multi_exp is hardcoded to G1 points.
Preference for readability and to imply case matching.
In the decompress_G1 function. We now match the Python spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants