Swincoin

A simple, localhost-based Proof-of-Work blockchain and cryptocurrency written in Ruby. Uses Sinatra, Gosu, and Faraday gems.

Swincoin

A simple, localhost-based Proof-of-Work blockchain and cryptocurrency written in Ruby. This is not an industry-ready blockchain or cryptocurrency, not suitable for real-world applications.

  • Byzantine Fault Tolerant
  • SHA256 Hashes
  • Nonce Generation (Complexity: 5)
  • RSA Pub/Secret Keys
  • Two-Way Peer Handshake
  • Multithreaded
  • P2P Decentralized (Nodes Run As Ports On Localhost)
  • Genesis Reward: 50000 Swincoins
  • Miner Reward: 15 Swincoins

Gem Install

(Tested on Ruby 2.7.3)

  • Gosu
  • Sinatra
  • Faraday
  • Colorize

Watch the demonstration on YouTube: https://youtu.be/UtL7f6W-tLI