Skip to content

Instantly share code, notes, and snippets.

@tiero
Created August 1, 2018 10:44
Show Gist options
  • Save tiero/8c771e5585dbf27b4996935603d18e63 to your computer and use it in GitHub Desktop.
Save tiero/8c771e5585dbf27b4996935603d18e63 to your computer and use it in GitHub Desktop.
Install Dfinity BLS signatures function on Ubuntu
#!/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