milagro-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-milagro-crypto-c] kealan commented on issue #38: Python wrappers
Date Thu, 15 Aug 2019 07:08:02 GMT
kealan commented on issue #38: Python wrappers
   It could be that you need to link the dependent components;
   See if you can build and run one of the examples after installation;
   1. use BLS381 in 
   2. make; cd target/default; make install
   3. cp target/default/examples/example_bls_BLS381.c  /tmp
   4. cd tmp
   5. edit /tmp/example_bls_BLS381.c
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   #include <amcl/config_curve_BLS381.h>
   #include <amcl/randapi.h>
   #if CURVE_SECURITY_BLS381 == 128
   #include <amcl/bls_BLS381.h>
   #elif CURVE_SECURITY_BLS381 == 192
   #include <amcl/bls192_BLS381.h>
   #elif CURVE_SECURITY_BLS381 == 256
   #include <amcl/bls256_BLS381.h>
   6. Build 
   gcc -O0 -g ./example_bls_BLS381.c $(pkg-config --libs --cflags amcl) -o example_bls_BLS381
   For a new library that you want a CFFI interface you need to do the linking - that seems
to be the only step you are missing.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message