|
|
|
@ -175,8 +175,9 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|
|
|
|
serialized_tx=unhexlify(
|
|
|
|
|
'0100000000010137c361fb8f2d9056ba8c98c5611930fcb48cacfdd0fe2e0449d83eea982f91200000000017160014d16b8c0680c61fc6ed2e407455715055e41052f5ffffffff'),
|
|
|
|
|
)),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[out1])),
|
|
|
|
|
# here
|
|
|
|
|
# the out has to be cloned not to send the same object which was modified
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[TxOutputType(**out1.__dict__)])),
|
|
|
|
|
|
|
|
|
|
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None),
|
|
|
|
|
serialized=TxRequestSerializedType(
|
|
|
|
|
# returned serialized out1
|
|
|
|
@ -185,7 +186,7 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|
|
|
|
signature_index=None,
|
|
|
|
|
signature=None,
|
|
|
|
|
)),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[out2])),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[TxOutputType(**out2.__dict__)])),
|
|
|
|
|
|
|
|
|
|
# segwit
|
|
|
|
|
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None),
|
|
|
|
@ -284,7 +285,8 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|
|
|
|
serialized_tx=unhexlify(
|
|
|
|
|
'0100000000010137c361fb8f2d9056ba8c98c5611930fcb48cacfdd0fe2e0449d83eea982f91200000000017160014d16b8c0680c61fc6ed2e407455715055e41052f5ffffffff'),
|
|
|
|
|
)),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[out1])),
|
|
|
|
|
# the out has to be cloned not to send the same object which was modified
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[TxOutputType(**out1.__dict__)])),
|
|
|
|
|
|
|
|
|
|
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None),
|
|
|
|
|
serialized=TxRequestSerializedType(
|
|
|
|
@ -294,7 +296,7 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|
|
|
|
signature_index=None,
|
|
|
|
|
signature=None,
|
|
|
|
|
)),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[out2])),
|
|
|
|
|
TxAck(tx=TransactionType(outputs=[TxOutputType(**out2.__dict__)])),
|
|
|
|
|
|
|
|
|
|
# segwit
|
|
|
|
|
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None),
|
|
|
|
|