Giter VIP home page Giter VIP logo

rubycoin's Introduction

RubyCoin

RubyCoin aims to be the one library that rules them all crypto-currencies. Currently, only Bitcoin is supported. Adding support for other crypto-currencies is fairly simple and contributions and pull-requests are always welcome.

Installation

Installing the gem is trivial. It has extremely few dependencies besides OpenSSL.

    $ gem install rubycoin

Or, if you are using bundler in your project, add the following line to your Gemfile and you're ready to roll.

    gem 'rubycoin'

Using RubyCoin

Using RubyCoin for generating addresses and private keys is extremely simple. Say if you'd want to generate a Bitcoin address, all you need to do is make a new Bitcoin address object like so:

require 'rubycoin'

btc = RubyCoin::Bitcoin::Address.new
btc.address       # 1LGsgrzfmj1683SrK8xJCn3w1Agbesfry8
btc.private_key   # 5JjbQPrzfg3SoyGfLxhtHFff1x3tu9vFw6YDWxvDqWsB2D4RMTo

Contributing

Work on compressed keys and addresses is currently in progress. Also, it is likely that RubyCoin will support deterministic and hierarchial wallets in the future once the security implications are completely understood.

Currently, the primary goal is to be able to generate addresses for as many as crypto-currencies as possible. The main candidates are:

  1. Litecoin
  2. Peercoin
  3. Dogecoin
  4. Mastercoin
  5. Namecoin
  6. Quark
  7. Feathercoin
  8. Primecoin
  9. Megacoin
  10. Infinitecoin
  11. Novacoin
  12. Worldcoin
  13. Darkcoin
  14. Vertcoin
  15. Maxcoin

Once the address generation mechanism and API is fairly stable for these currencies, signing messages and interacting will respective block-chains over the network may be considered.

Also, complete test coverage will be neat. It is currently absent. However, you can check generated addresses and keys manually by using the tools at Brainwallet.

Authors

License

The code in this repository is released under the liberal MIT license. A copy can be found in the LICENSE file.

Copyright

Copyright © 2010-2014 - Amol Hatwar.

rubycoin's People

Contributors

axisofeval avatar

Watchers

gittmaan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.