0.0
No release in over 3 years
Low commit activity in last 3 years
A Ruby FFI binding for bitcoin's secp256k1 library, superseding ruby-bitcoin-secp256k1.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.17
 Project Readme

libsecp256k1-rb

A Ruby FFI binding for bitcoin's secp256k1 library, superseding ruby-bitcoin-secp256k1.

Prerequisite

In order to use this gem, bitcoins's secp256k1 dynamic library (libsecp256k1.dylib) must be discoverable.

Install secp256k1

Use Homebrew on macOS or apt on Debian/Ubuntu:

brew install secp256k1
apt install libsecp256k1-dev gcc

Or build locally:

git submodule update --init --recursive
./make.sh
./test.sh

Install

gem i libsecp256k1

Then 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.

Examples

Check test for examples.

LICENSE

MIT License