class BlockChain

Defined in:

sequin.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_block(newBlock) #

[View source]
def add_transaction(trx) #

[View source]
def chain : Array(Block) #

[View source]
def create_genesis_block #

[View source]
def difficulty : Int32 #

[View source]
def get_balance_of_address(address) #

[View source]
def get_latest_block #

[View source]
def is_chain_valid #

[View source]
def mine_pending_transactions(mining_reward_address) #

[View source]
def mining_reward : Int32 #

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

[View source]