Giter VIP home page Giter VIP logo

bitcoin-printer-ruby's Introduction

Bitcoin Printer

A quick and dirty port of Carlos Bueno's bitcoin-printer python script, which generates "paper Bitcoins" which contain one-time-use keypairs and Bitcoin payment addresses.

See also: http://carlos.bueno.org/2012/07/paper-bitcoins.html

License

Original Python script

[email protected] 17 July 2012

BSD license: Share and enjoy, but give credit where it's due.

Ruby port

[email protected] 17 November 2013

BSD license: Share and enjoy, but give credit where it's due.

Installation

Ruby Versions

As of yet, it has only been tested and verified to work with:

  • Ruby 2.0.0

Dependencies

Universal

You will need ImageMagick, and it's development libraries set up for your OS.

After that, make sure you have bundler installed and then, run:

bundle install

That should get you all set up to run the script.

Mac OS X

You'll probably need Ghostscript, which you can helpfully grab with brew.

Usage

$ ./paper_bitcoin.rb AMOUNT

where AMOUNT is a decimal number like "0.1". The default is "0.001". This will create a new keypair and bitcoin address, and generate the front and back images for printing complete with QR codes and text. The filename will be in the form "iSamPLE-front.png", where "iSamPLE" is the newly-minted Bitcoin address.

Remember to actually send the Bitcoin to that address!

Development

I developed using a Virtualbox-based 64-bit Ubuntu Precise Vagrant box. I've included my Vagrantfile and Berksfile in case anyone wants to pick up exactly where I left off.

To set up, you'll need:

Once all of that is set up: vagrant up

After several minutes (the chef-solo run alone can take about 15 minutes), that will get your VM spun up and ready to roll. You can SSH into the running VM with: vagrant ssh

You can access the script (and all other files in your host's directory) at: /vagrant

To suspend the VM and free up your system resources without having to rebuild the whole VM from scratch: vagrant suspend If you really want to just delete the VM, then: vagrant destroy

bitcoin-printer-ruby's People

Watchers

James Cloos 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.