Mercurial > public > bitcaviar-plus
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:1a8d94b500d8 | 6:5f6d1a28051a |
---|---|
1 class Block: | |
2 block_hash = str() | |
3 header = dict() | |
4 | |
5 | |
6 class Header: | |
7 version = int() | |
8 previous_block_hash = str() | |
9 merkle_root = str() | |
10 timestamp = int() | |
11 bits = int() | |
12 nonce = int() | |
13 | |
14 | |
15 class Transaction: | |
16 id = str() | |
17 version = int() | |
18 lock_time = int() | |
19 | |
20 | |
21 class TransactionInput: | |
22 is_coinbase = False | |
23 id = str() | |
24 vout = int() | |
25 script_sig = str() | |
26 sequence = int() | |
27 | |
28 | |
29 class TransactionOutput: | |
30 value = float() | |
31 script_pub_key = str() |