dfinity-side-projects / bn

Barreto-Naehrig curve implementation and BLS
32 stars 19 forks source link

bn

Build Status

Barreto-Naehrig curve implementation and BLS

Install

Requirements

Your system needs have installed first llvm, g++, gmp and openssl{-dev}. On Ubuntu:

sudo apt install llvm g++ libgmp-dev libssl-dev

From source

To install from source, you can run the following commands:

git clone https://github.com/dfinity/bn
cd bn
make
make install

The library is then installed under /usr/local/. In order to use it as a library for any project (see go-dfinity-crypto for example), your loader must be aware of this location. There are two common solutions:

If you wish to change the path where the libraries are installed, you can use:

make install PREFIX=/my/custom/path

From latest release

Prebuilt libraries are available for select platforms.

You may need to place the libraries in the correct path as explained in the above section.

License

(C) 2017 DFINITY STIFTUNG

All code and designs are open sourced under GPL V3.

image