Skip to content

Barreto-Naehrig curve implementation and BLS

Notifications You must be signed in to change notification settings

aambati/bn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.8%
  • C 2.7%
  • Makefile 1.4%
  • Nix 0.1%