-
Notifications
You must be signed in to change notification settings - Fork 62
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
Import bindings to a Rust library providing BLS12-381 #13
Comments
Rahul made an initial version of this here, https://github.com/hybridNeo/pairing as a fork of |
|
If we keep the Alpine linux image this is non-trivial. See a possible approach at https://github.com/sbellem/pairing/blob/docker-build/wheel.Dockerfile (instructions are at https://github.com/sbellem/pairing/blob/docker-build/RustBindings.md#python-wheel). The simplest and easiest approach for now will probably be to switch to a glibc friendly image such as ubuntu, as opposed to a musl lib one like Alpine. Notes
The workaround in point 4 was chosen for now (see https://github.com/sbellem/HoneyBadgerMPC/blob/rust-zkcrypto-pairing/Dockerfile) in order to avoid changing the base image of HBMPC. Running the example @hybridNeo gave works. If we encounter weird problem we can always try the other workaround which involves changing HBMPC's base image to a glibc friendly linux distro such as Ubuntu or CentOS. Relevant links |
We're planning on using BLS12-381 for our cryptography and JubJub for elliptic curve cryptography applications within the MPC. The PBC library we're already using does not support BLS12-381, and we don't know of any efficient python libraries. Relic supports it but has bad bindings. We will prefer to use rust for modules, so we're going to try port all of the rust libraries, but just build our own rust module that uses it.
The text was updated successfully, but these errors were encountered: