embit/secp256k1
2022-01-17 11:12:57 +01:00
..
config Add a secp256k1 makefile and building instructions (#24) 2022-01-17 11:12:57 +01:00
secp256k1-zkp@d9560e0af7 Add a secp256k1 makefile and building instructions (#24) 2022-01-17 11:12:57 +01:00
Makefile Add a secp256k1 makefile and building instructions (#24) 2022-01-17 11:12:57 +01:00
README.md Add a secp256k1 makefile and building instructions (#24) 2022-01-17 11:12:57 +01:00

Building secp256k1 for embit

If you don't want to use prebuilt binary packaged with embit you can build it yourself.

We are using libsecp256k1 fork - secp256k1-zkp.

Building the library under target platform

To build the library run:

make

To clean build directory use:

make clean

Cross-compiling Windows DLL

Toolchain install

Linux

In the console type:

sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine64

Mac

Assuming that Homebrew package manager is installed, in the console type:

brew install mingw-w64
brew install --cask xquartz
brew install --cask wine-stable

Windows

Assuming that Chocolatey package manager is installed, in the Powershell type:

choco install mingw make

Building the library

To build the Windows DLL and the companion library from other platforms run:

make CROSS_DLL=1