a simple introduction to Blockchain algorithm.
blockchain = Blockchain::Chain.new
blockchain.transaction(Blockchain::Transaction.new "ruby", "php", 10)
blockchain.transaction(Blockchain::Transaction.new "crystal", "ruby", 20)
new_block = blockchain.mine "new_miner_address"
puts new_block
puts new_block.transactions
puts blockchain
puts blockchain.blocks
- Fork it (https://github.com/izniburak/blockchain.rb/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- izniburak İzni Burak Demirtaş - creator, maintainer