A Ruby FFI binding for bitcoin's secp256k1 library, superseding ruby-bitcoin-secp256k1.
In order to use this gem, bitcoins's secp256k1 dynamic library (libsecp256k1.dylib) must be discoverable.
Use Homebrew on macOS or apt on Debian/Ubuntu:
brew install secp256k1
apt install libsecp256k1-dev gccOr build locally:
git submodule update --init --recursive
./make.sh
./test.shgem i libsecp256k1Then require "secp256k1" in your source code.
You need to set C_INCLUDE_PATH and LD_LIBRARY_PATH (or SECP256K1_LIB_PATH) environment variables, see test.sh for usage.
Check test for examples.