Closed t57root closed 4 months ago
mcl/bls has two mode of BLS signature. The built library and the mode of use must be the same. If you use a library libbls384_256.a built with BLS_ETH=1, then you compile bls12_381_smpl.cpp with -DBLS_ETH. see https://github.com/herumi/bls#choice-of-groups
Hi, I run the sample
bls12_381_smpl.cpp
with the following command:But the last command gives out an error says
err -66046
which is returned by the follow code.But in the sample
MCLBN_COMPILED_TIME_VAR
is indeed passed into theblsInit
as the second argument. It seems the value ofMCLBN_COMPILED_TIME_VAR
is46
while it's66
in the library.Is there something I did wrong? Thanks in advance!