mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 16:00:57 +00:00
tests: unit tests signature fixtures for segwit
this fixes broken unit tests introduced by a3d1bdbb862eb2db978115e9e533da81d46a350d
This commit is contained in:
parent
4fdc389a22
commit
d8a884bd87
@ -102,8 +102,8 @@ class TestSignSegwitTxNativeP2WPKH(unittest.TestCase):
|
|||||||
|
|
||||||
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
||||||
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
|
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
|
||||||
signature_index=None,
|
signature_index=0,
|
||||||
signature=None,
|
signature=unhexlify('3045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b95'),
|
||||||
)),
|
)),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -191,8 +191,8 @@ class TestSignSegwitTxNativeP2WPKH(unittest.TestCase):
|
|||||||
|
|
||||||
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
||||||
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
|
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
|
||||||
signature_index=None,
|
signature_index=0,
|
||||||
signature=None,
|
signature=unhexlify('3045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b95'),
|
||||||
)),
|
)),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -102,8 +102,8 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|||||||
|
|
||||||
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
||||||
serialized_tx=unhexlify('02483045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b012103e7bfe10708f715e8538c92d46ca50db6f657bbc455b7494e6a0303ccdb868b7900000000'),
|
serialized_tx=unhexlify('02483045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b012103e7bfe10708f715e8538c92d46ca50db6f657bbc455b7494e6a0303ccdb868b7900000000'),
|
||||||
signature_index=None,
|
signature_index=0,
|
||||||
signature=None,
|
signature=unhexlify('3045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b'),
|
||||||
)),
|
)),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -201,8 +201,8 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|||||||
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
|
||||||
serialized_tx=unhexlify(
|
serialized_tx=unhexlify(
|
||||||
'02483045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b012103e7bfe10708f715e8538c92d46ca50db6f657bbc455b7494e6a0303ccdb868b7900000000'),
|
'02483045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b012103e7bfe10708f715e8538c92d46ca50db6f657bbc455b7494e6a0303ccdb868b7900000000'),
|
||||||
signature_index=None,
|
signature_index=0,
|
||||||
signature=None,
|
signature=unhexlify('3045022100ccd253bfdf8a5593cd7b6701370c531199f0f05a418cd547dfc7da3f21515f0f02203fa08a0753688871c220648f9edadbdb98af42e5d8269364a326572cf703895b'),
|
||||||
)),
|
)),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -249,7 +249,7 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
|||||||
address_n=[49 | 0x80000000, 1 | 0x80000000, 0 | 0x80000000, 1, 0],
|
address_n=[49 | 0x80000000, 1 | 0x80000000, 0 | 0x80000000, 1, 0],
|
||||||
script_type=OutputScriptType.PAYTOP2SHWITNESS,
|
script_type=OutputScriptType.PAYTOP2SHWITNESS,
|
||||||
amount=1,
|
amount=1,
|
||||||
address=None, # todo ask about sanitizing
|
address=None,
|
||||||
)
|
)
|
||||||
tx = SignTx(coin_name='Testnet', version=None, lock_time=None, inputs_count=1, outputs_count=2)
|
tx = SignTx(coin_name='Testnet', version=None, lock_time=None, inputs_count=1, outputs_count=2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user