Created
August 1, 2018 10:44
-
-
Save tiero/8c771e5585dbf27b4996935603d18e63 to your computer and use it in GitHub Desktop.
Install Dfinity BLS signatures function on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#tools ubuntu | |
sudo apt install llvm g++ libgmp-dev libssl-dev | |
# Barreto-Naehrig curves. | |
git clone https://github.com/dfinity/bn | |
cd bn | |
make | |
sudo cp mcl/lib/libmcl.a /usr/local/lib | |
sudo cp bls/libbls384.so /usr/local/lib | |
sudo cp -R mcl/include/* /usr/local/include | |
sudo cp -R bls/include/* /usr/local/include | |
cd .. | |
rm -rf bn | |
export LD_LIBRARY_PATH=/usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment