A Ruby implementation of Ethereum's Recursive Length Prefix encoding (RLP).
Switch branches/tags
Nothing to show
Clone or download
Latest commit 49c11ea Aug 13, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Removed some annoying warning Aug 13, 2016
test Removed some annoying warning Aug 13, 2016
.gitignore doc with yard Jan 25, 2016
.travis.yml add travis config Feb 3, 2016
Gemfile add tests Jan 22, 2016
Gemfile.lock Typo Aug 12, 2016
LICENSE let's rock Jan 22, 2016
README.md Typo Aug 12, 2016
Rakefile doc with yard Jan 25, 2016
rlp.gemspec fix gemspec Feb 5, 2016

README.md

ruby-rlp

MIT License travis build status Yard Docs

A Ruby implementation of Ethereum's Recursive Length Prefix encoding (RLP). You can find the specification of the standard in the Ethereum wiki.

Installation

Put it in your Gemfile:

gem 'rlp'

or

gem i rlp

Usage

Check tests for examples.

Benchmark

ruby-rlp $ ruby -v -Ilib test/speed.rb
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
Block serializations / sec: 2318.21
Block deserializations / sec: 1704.61
TX serializations / sec: 30461.76
TX deserializations / sec: 21378.70

pyrlp $ python -V
Python 2.7.11

pyrlp $ PYTHONPATH=. python tests/speed.py
Block serializations / sec: 1225.00
Block deserializations / sec: 1162.01
TX serializations / sec: 16468.41
TX deserializations / sec: 14517.31