class Block

Defined in:

sequin.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(timestamp : String, transactions : Array(Transaction), previous_block_hash : String = "") #

[View source]

Instance Method Detail

def block_hash : String #

[View source]
def block_hash=(block_hash : String) #

[View source]
def calculate_hash #

[View source]
def has_valid_transactions #

[View source]
def mine_block(difficulty : Int32) #

[View source]
def previous_block_hash : String #

[View source]
def previous_block_hash=(previous_block_hash : String) #

[View source]
def transactions : Array(Transaction) #

[View source]
def transactions=(transactions : Array(Transaction)) #

[View source]