dfinity-side-projects / bn

Barreto-Naehrig curve implementation and BLS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • To use it for the current session:
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
  • To use it permanently, add /usr/local/lib to /etc/ld.so.conf , then run ldconfig as root

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

About

Barreto-Naehrig curve implementation and BLS


Languages

Language:C++ 95.8%Language:C 2.7%Language:Makefile 1.4%Language:Nix 0.1%