class EdCrystalCoin::Block

Included Modules

Defined in:

ed_crystal_coin/block.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(index : Int64 = 0, transactions : Array(EdCrystalCoin::Block::Transaction) = [] of Transaction, previous_hash : String = "hash") #

[View source]

Class Method Detail

def self.first #

[View source]
def self.next(previous_block, transactions = [] of Transaction) #

[View source]

Instance Method Detail

def current_hash : String #

[View source]
def index : Int64 #

[View source]
def nonce : Int64 #

[View source]
def previous_hash : String #

[View source]
def recalculate_hash #

[View source]