Project

tapyrus

0.01
The project is in a healthy, maintained state
The implementation of Tapyrus Protocol for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 12.3.3
~> 3.0
~> 3.0
= 4.0.4

Runtime

 Project Readme

Tapyrusrb Build Status Gem Version MIT License

Tapyrusrb is a Ruby implementation of Tapyrus Protocol.

NOTE: Tapyrusrb work in progress, and there is a possibility of incompatible change.

Features

Tapyrusrb supports following feature:

  • Tapyrus script interpreter
  • De/serialization of Tapyrus protocol network messages
  • De/serialization of blocks and transactions
  • Key generation and verification for Schnorr and ECDSA (including BIP-32 and BIP-39 supports).
  • ECDSA signature(RFC6979 -Deterministic ECDSA, LOW-S, LOW-R support)
  • [WIP] SPV node
  • [WIP] 0ff-chain protocol

Requirements

use Node implementation

If you use node features, please install level DB as follows.

install LevelDB

  • for Ubuntu

    $ sudo apt-get install libleveldb-dev

  • for Mac

    $ brew install leveldb

and put leveldb-native in your Gemfile and run bundle install.

gem leveldb-native

Installation

Add this line to your application's Gemfile:

gem "tapyrus"

And then execute:

$ bundle

Or install it yourself as:

$ gem install tapyrus

And then add to your .rb file:

require 'tapyrus'

Usage

Chain selection

The parameters of the blockchain are managed by Tapyrus::ChainParams. Switch chain parameters as follows:

  • prod
Tapyrus.chain_params = :prod

This parameter is described in https://github.com/chaintope/tapyrusrb/blob/master/lib/tapyrus/chainparams/prod.yml.

  • dev
Tapyrus.chain_params = :dev

This parameter is described in https://github.com/chaintope/tapyrusrb/blob/master/lib/tapyrus/chainparams/dev.yml.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tapyrusrb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.