GuillaumeCisco commented on issue #38: Python wrappers URL: https://github.com/apache/incubator-milagro-crypto-c/issues/38#issuecomment-521249497 Thanks for the precision, using make with a python virtual env set on python 2.7 built the target folder successfully. I now have files like `bls_BLS381.py`... If I understand it correctly, `.py.in` are only template files for a building over a specific curve. Here `BLS381`. In my particular case, I should build these files against `FP256BN`. I also tried the `./scripts/buildMulti.sh` and saw no new files :/ I also looked at the config.mk file. I can see: `AMCL_CURVE:=ED25519,NIST256,GOLDILOCKS,BLS381` Replacing it by `AMCL_CURVE:=FP256BN` and then running `make`, produced files like `bls_FP256BN.py` files which is what I'm looking for :) Thanks! I'm still discovering this project and your help is greatly appreciated. I also see a folder `target/default/lib` with *.so files (I'm on linux). `libamcl_bls_FP256BN.so` `libamcl_core_FP256BN.so` `libamcl_curve_FP256BN.so` `libamcl_mpin_FP256BN.so` `libamcl_pariing_FP256BN.so` `libamcl_rsa_FP256BN.so` `libamcl_wcc_FP256BN.so` `libamcl_x509.so` We have three templates: `bls_ZZZ.py.in` `mpin_ZZZ.py.in` `wcc_ZZZ.py.in` Should we create these others templates too? `core_ZZZ.py.in` `curve_ZZZ.py.in` `pairing_ZZZ.py.in` `rsa_ZZZ.py.in` Now I need an extra help about handling the constants from `rom_curve_FP256BN.c` for example. How from python could I load the `CURVE_Order_FP256BN`. I guess this will be translated to a python tuple... but can't figure out how to import it.
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@milagro.apache.org For additional commands, e-mail: issues-h...@milagro.apache.org