view src/puppy/block_structure.py @ 6:5f6d1a28051a

add python package config files
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 24 Oct 2021 15:18:54 +0200
parents src/block_structure.py@1a8d94b500d8
children
line wrap: on
line source

class Block:
    block_hash = str()
    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()