0.01
No commit activity in last 3 years
No release in over 3 years
Ruby LibECP is a wrapper around LibECP, an elliptic-curve cryptography library for producing and verifying ECDSA signatures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
>= 0
>= 0
>= 0

Runtime

>= 1.9.3, ~> 1.9
 Project Readme

Ruby LibECP

Ruby LibECP is a wrapper around LibECP, an elliptic-curve cryptography library for producing and verifying ECDSA signatures.

Installation

Use the gem in a project managed with Bundler adding it into Gemfile:

gem "cf-ruby-libecp"

Build

This gem is a native extension gem. The native library will be compiled on your platform automatically at install time.

The required packages to build the gem are:

  • GMP, a multiprecision arithmetic library.
  • GCC, a compiler for C, C++, Java, Fortan and other program code that can be used in Unix.

Debian-based distributions

$ sudo apt-get install libgmp3-dev build-essential

OS X with Homebrew

$ brew tap homebrew/versions
$ brew install gmp4
$ CPPFLAGS=-I/usr/local/opt/gmp4/include LDFLAGS=-L/usr/local/opt/gmp4/lib gem install cf-ruby-libecp

OS X with MacPorts

$ sudo port install gmp

Usage example

require "libecp"

LibEcp.private_key(LibEcp.gen_uid(1234), "coinfloor")

Licence

Released under the Apache License Version 2.0.