Mercurial > public > bitcaviar-plus
diff src/puppy/block_structure.py @ 8:4d259e84160d
fix OverFlow bug
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 24 Oct 2021 17:38:23 +0200 |
parents | |
children | e218f70e19e9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/puppy/block_structure.py Sun Oct 24 17:38:23 2021 +0200 @@ -0,0 +1,36 @@ +class Block: + block_hash = str() + magic_number = str() + block_size = str() + number_of_transactions = str() + + +class Header: + version = str() + previous_block_hash = str() + merkle_root = str() + time = str() + bits = str() + nonce = str() + + +class Transaction: + id = str() + version = str() + number_of_inputs = str() + number_of_outputs = 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()