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

fix fmsm benchmark #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

brucechin
Copy link

@brucechin brucechin commented Apr 13, 2022

In the original fixed base MSM G1 and G2 profiling code, the code involving Java’s BigInteger.bitSize() is tricky

final BN254aG1 groupFactory = new BN254aG1Parameters().ONE();
final int scalarSize = groupFactory.bitSize();

Because of Java BigInteger property, the bitSize of groupFactory here is 1 instead of 254. Therefore, we should first generate a random BN254G1/G2 generator using groupFactory, then use the bitSize of the generator.

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

1 participant