view src/bitcaviar_plus/block_structure.py @ 34:bd0ec5cb2300 default tip

Move to mercurial
author Dennis C. M. <dennis@denniscm.com>
date Tue, 03 Jun 2025 14:24:28 +0100
parents 6a0a8cce058e
children
line wrap: on
line source

class Block:
    id = str()
    magic_number = str()
    size = str()
    transaction_count = str()


class Header:
    version = str()
    previous_block_id = str()
    merkle_root = str()
    time = str()
    bits = str()
    nonce = str()


class Transaction:
    id = str()
    version = str()
    input_count = str()
    output_count = str()
    lock_time = str()


class TransactionInput:
    id = str()
    vout = str()
    script_sig_size = str()
    script_sig = str()
    sequence = str()


class TransactionOutput:
    value = str()
    script_pub_key_size = str()
    script_pub_key = str()