Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

cryptape/ruby-rlp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A Ruby implementation of Ethereum's Recursive Length Prefix encoding (RLP).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages