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

Which Curve is used? #6

Closed
NickyYangYang opened this issue Jun 21, 2018 · 5 comments
Closed

Which Curve is used? #6

NickyYangYang opened this issue Jun 21, 2018 · 5 comments

Comments

@NickyYangYang
Copy link

hello,I want to know which Curve is used in you code. Is BLS 12-381 or BN254?

@herumi
Copy link
Owner

herumi commented Jun 21, 2018

You can use both BN254 and BLS12-381.
test

@NickyYangYang
Copy link
Author

The signature length of BN254 is 256 bits, the signature length of BLS12-381 is 384 bits, and BLS12-381 is more security than BN254. You use two different length standards. Why you choose BLS12-381, why not BN381? And , why you choose BN254, why not 256 bits BLS? For security reason or other reasons?

@herumi
Copy link
Owner

herumi commented Jun 22, 2018

You can use BN254, BN381, BN462(if compiled with MCLBN_FP_UNIT_SIZE=8) and BLS12-381.
BN254 is selected for fast speed.

@herumi herumi closed this as completed Jun 28, 2018
@NickyYangYang
Copy link
Author

There are two 381 bits BN curve : N-381-1 and BN-381-2. The first one is a A Family of Implementation-Friendly BN Elliptic Curves, the second one is used in relic-toolkit. Which one is used when we set MCLBN_FP_UNIT_SIZE=6? And why ?

@herumi
Copy link
Owner

herumi commented Jul 8, 2018

The default pairing parameter is BN_254, so please call init with (mcl::BN381_1).
https://github.com/herumi/mcl/blob/master/include/mcl/bn.hpp#L2063

colibrishin added a commit to colibrishin/bls that referenced this issue Aug 25, 2022
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