AMCL
Linux

Software dependencies

CMake is required to build the library and can usually be installed from the operating system package manager.

If not, then you can download it from www.cmake.org

In order to use the Python language wrapper install Python

The C Foreign Function Interface for Python CFFI module is also required if you wish to use the Python module.

In order to build the documentation doxygen is required.

Quick Start

A Makefile is present at the project root that reads the options defined in config.mk. Change these options and then type make to build and test the library.

If docker is installed then type make dbuild to build and test the library in a docker container.

Manual build

The default build is for 64 bit machines, Elliptic curve BN254CX and curve type Weierstrass

  1. mkdir target/build
  2. cd target/build
  3. cmake -D CMAKE_INSTALL_PREFIX=/opt/amcl ../..
  4. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
  5. make
  6. make test
  7. make doc
  8. sudo make install

The build can be configured using by setting flags on the command line i.e.

  1. cmake -D CMAKE_INSTALL_PREFIX=/opt/amcl -D WORD_LENGTH=32 ../..

list available CMake options

  1. cmake -LH

Uninstall software

Building an installer

After having built the libraries you can build a binary installer and a source distribution by running this command