This document describes the Bitcoin-Central.net v1 API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'erb' | |
require 'digest' | |
require 'date' | |
B58Chars = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" | |
B58Digits = B58Chars.split('') | |
B58Base = B58Chars.length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Private key for : <%= @address %></h1> | |
<p>Generated at : <%= @now %></p> | |
<h2>Block Explorer</h2> | |
<img src="bbe_<%= @address %>.png"> | |
<h2>Private key : <%= @private_key %></h2> | |
<img src="<%= @private_key %>.png"> |
This document describes the Bitcoin-Central.net v1 API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row.alerts | |
.span12 | |
- unless flash.blank? | |
- [:notice, :alert, :warning, :error].select{ |type| not flash[type].blank? }.each do |type| | |
.flash | |
%div{:class => "alert alert-#{type}"} | |
%a.close{ 'data-dismiss' => 'alert' }= '×'.html_safe | |
!= flash[type] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'securerandom' | |
require 'bitcoin' | |
require 'digest' | |
LIST = './wordlist.txt' | |
ROLLS_PER_WORD = 5 | |
DICE_FACES = 6 | |
WORDS_PER_PHRASE = 12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# How to use : | |
# bc_client = AutoRefreshToken.new | |
# bc_client.post('/api/v1/user/orders', params.to_json) | |
# | |
require 'oauth2' | |
class AutoRefreshToken |