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

Support for Not Using GMP? #19

Closed
rauljordan opened this issue Nov 28, 2018 · 4 comments
Closed

Support for Not Using GMP? #19

rauljordan opened this issue Nov 28, 2018 · 4 comments

Comments

@rauljordan
Copy link

Hi @herumi, do you plan on adding support for not using GMP in the future? We are planning on using this project in https://github.com/prysmaticlabs/prysm and the major blocker is the need for end users to have gmp installed on their machines. Other implementations such as Chia Network have GMP optional: https://github.com/Chia-Network/bls-signatures.

@herumi
Copy link
Owner

herumi commented Nov 28, 2018

mcl can be built without GMP by make MCL_USE_GMP=0 though the alternative library(include/mcl/vint.hpp) should be optimized for hashAndMapToGi.

At first, I'll support to build bls with MCL_USE_GMP=0.

@rauljordan
Copy link
Author

Hi @herumi, we want to have signatures in G2 and public keys in G1. How difficult would this be to change based on your implementation?

@rauljordan
Copy link
Author

Ah so right now, bls doesn't build with MCL_USE_GMP=0? Thank you for the responses!

@herumi
Copy link
Owner

herumi commented Nov 29, 2018

make MCL_USE_GMP=0 for bls runs well.

75cc396

I do not check the performance and please let me know if there is a problem.
(I think it is better to link GMP).

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

No branches or pull requests

2 participants