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 build the documentation doxygen is required.
AMCL
AMCL is used to provide the large finite field functionality.
Build and install the AMCL library
-
git clone git@g.nosp@m.ithu.nosp@m.b.com:apache/incubator-milagro-crypto-c.git
-
cd incubator-milagro-crypto-c
-
mkdir target
-
cd target
-
cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=ON -D AMCL_CHUNK=64 -D AMCL_CURVE="BLS381,SECP256K1" -D AMCL_RSA="" -D BUILD_PAILLIER=ON -D BUILD_PYTHON=OFF -D BUILD_BLS=ON -D BUILD_WCC=OFF -D BUILD_MPIN=OFF -D BUILD_X509=OFF -D CMAKE_INSTALL_PREFIX=/usr/local ..
-
make
-
make test
-
sudo make install
Compiling
-
mkdir build
-
cd build
-
cmake ..
-
make
-
make test
-
make doc
-
sudo make install
The build can be configured by setting flags on the command line i.e.
-
cmake -D CMAKE_INSTALL_PREFIX=/usr/local
list available CMake options
Uninstall software
Building an installer
After having built the libraries you can build a binary installer and a source distribution by running this command