Closed greatdreams closed 4 years ago
@greatdreams sorry for the delay. thanks!
You'are welcome. @jakinyele
Thank you so much, my friend. Your description solved my problem configuring BN curves of MIRACL for CHARM.
In case this could help others:
In my case, following all the steps in documentation to configure miracl for BN curves, execution of scripts reported problems finding the selected curves. Even though my "configure_miracl.sh" file included the "mrzzn4.c" for compilation, the "-fPIC" g++ parameter was not included. I added it continued the process as indicated in Charm page, and finally worked.
NOTE: Do not forget to run "sudo ldconfig" after all this configuration process to recover the correct system variables for you python version.
When I use charm framework with MIRACL, runtime error happened, the detail was
The step is the following:
charm-dev/charm/core/math/pairing/miracl
this will generate .a file in
/usr/lib/local/miracl-bn.a
from charm.config import libs, pairing_lib
if pairing_lib == libs.miracl: params = {'MNT160':80, 'BN256':128, 'SS512':80, 'SS1536':128} print(params)
count = 10
group = PairingGroup("BN256") g = group.random(GT) print(g)
Test passed, when using the correct script to recompile the
MIRACL
and reinstallcharm
.