module Block

Defined in:

block.cr

Constant Summary

DIFFICULTY = 4

Class Method Summary

Class Method Detail

def self.calculate_hash(block) #

[View source]
def self.create(index, timestamp, data, previous_hash) #

[View source]
def self.generate(last_block, data) #

[View source]
def self.is_hash_valid?(hash, difficulty) #

[View source]
def self.is_valid?(new_block, old_block) #

[View source]