Module: BlockchainLite

Defined in:
lib/blockchain-lite/blockchain.rb,
lib/blockchain-lite/version.rb,
lib/blockchain-lite/basic/block.rb,
lib/blockchain-lite/bitcoin/block.rb,
lib/blockchain-lite/proof_of_work/block.rb

Overview

Note: Work in Progress

-- under construction!!!!!!
do NOT yet use this class

Defined Under Namespace

Modules: Basic, Bitcoin, ProofOfWork Classes: Blockchain

Constant Summary collapse

MAJOR =
1
MINOR =
4
PATCH =
1
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



15
16
17
# File 'lib/blockchain-lite/version.rb', line 15

def self.banner
  "blockchain-lite/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end

.rootObject



19
20
21
# File 'lib/blockchain-lite/version.rb', line 19

def self.root
  File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end

.versionObject



11
12
13
# File 'lib/blockchain-lite/version.rb', line 11

def self.version
  VERSION
end