Mercurial > public > bitcaviar-plus
view src/block_structure.py @ 5:1a8d94b500d8
finish basic parser
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 21 Oct 2021 18:52:54 +0200 |
parents | e7a84094bf07 |
children |
line wrap: on
line source
class Block: block_hash = str() # Block hash header = dict() class Header: version = int() previous_block_hash = str() merkle_root = str() timestamp = int() bits = int() nonce = int() class Transaction: id = str() version = int() lock_time = int() class TransactionInput: is_coinbase = False id = str() vout = int() script_sig = str() sequence = int() class TransactionOutput: value = float() script_pub_key = str()