pybit/Examples/Py2_HashBlock.py
def prep_header(block):
    """
    Prep the block header for hashing as stored in the Block class where
    timestamp is already reversed (may change in future)

    This data is already converted to hex so decode back to binary
    """

    # Collect header hex
    header = block._version \
            + block._prevHash \
            + block._merkleRootHash \
            + block._timestamp \
            + block._nBits \
            + block._nonce

    return header

    Prep the block header for hashing as stored in the Block class where
    timestamp is already reversed (may change in future)

    This data is already converted to hex so decode back to binary
    
Prep the block header for hashing as stored in the Block class where
timestamp is already reversed (may change in future)

This data is already converted to hex so decode back to binary
Prep the block header for hashing as stored in the Block class where timestamp is already reversed ( may change in future ) This data is already converted to hex so decode back to binary
def prep_header(block):
    header = block._version \
            + block._prevHash \
            + block._merkleRootHash \
            + block._timestamp \
            + block._nBits \
            + block._nonce
    return header
def prep_header ( block ) : header = block . _version + block . _prevHash + block . _merkleRootHash + block . _timestamp + block . _nBits + block . _nonce return header
Prep the block header for hashing as stored in the Block class where
timestamp is already reversed (may change in future)
Prep the block header for hashing as stored in the Block class where timestamp is already reversed ( may change in future )
"""
    Prep the block header for hashing as stored in the Block class where
    timestamp is already reversed (may change in future)

    This data is already converted to hex so decode back to binary
    """ # Collect header hex
block