Пример #1
0
 def __init__(self,tx) :
     self.label = "Merkle Root :"
     self.isVarInt = False
     self.isRaw = True
     self.isReverse = True
     self.length = 32
     self.value = tools.value(self,tx)
Пример #2
0
 def __init__(self, tx):
     self.label = "  Witness Size :"
     self.isVarInt = True
     self.isRaw = False
     self.length = 1
     self.format = 'B'
     self.value = tools.value(self, tx)
Пример #3
0
 def __init__(self, tx):
     self.label = "Previous Block Hash :"
     self.isVarInt = False
     self.isRaw = True
     self.isReverse = True
     self.length = 32
     self.value = tools.value(self, tx)
Пример #4
0
 def __init__(self, tx):
     self.label = "  ScriptSig Size (bytes) :"
     self.isVarInt = True
     self.isRaw = False
     self.length = 1
     self.format = 'B'
     self.value = tools.value(self, tx)
Пример #5
0
 def __init__(self, tx):
     self.label = "  Sequence :"
     self.isVarInt = False
     self.isRaw = False
     self.isReverse = True
     self.length = 4
     self.format = '<I'  # little-endian integer 4 bytes
     self.value = tools.value(self, tx)
Пример #6
0
 def __init__(self, tx):
     self.label = "Version :"
     self.isVarInt = False
     self.isRaw = False
     self.isReverse = True
     self.length = 4
     self.format = '<I'
     self.value = tools.value(self, tx)
Пример #7
0
 def __init__(self,tx) :
     self.label = "Output Count :"
     self.isVarInt = True
     self.isRaw = False
     self.isReverse = False
     self.length = 1
     self.format = 'B'
     self.value = tools.value(self,tx)
Пример #8
0
 def __init__(self,tx) :
     self.label = "Segwit :"
     self.isVarInt = False
     self.isRaw = False
     self.isReverse = False
     self.length = 1
     self.format = 'B'
     self.value = tools.value(self,tx)
Пример #9
0
 def __init__(self, tx):
     self.label = "  Value :"
     self.isVarInt = False
     self.isRaw = False
     self.isReverse = True
     self.length = 8
     self.format = '<Q'  # little-endian integer 8 bytes
     self.value = tools.value(self, tx)
Пример #10
0
 def __init__(self, tx, parent):
     self.parent = weakref.ref(
         parent)  # https://stackoverflow.com/a/10791613
     self.label = "  ScriptPubKey :"
     self.isVarInt = False
     self.isRaw = True
     self.isReverse = False
     self.length = parent.script_pubKey_size.value
     self.value = tools.value(self, tx)
Пример #11
0
 def __init__(self, tx, parent):
     self.parent = weakref.ref(
         parent)  # https://stackoverflow.com/a/10791613
     self.label = "  Witness Value :"
     self.isVarInt = False
     self.isRaw = True
     self.isReverse = False
     self.length = parent.witness_size.value
     self.value = tools.value(self, tx)