mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
Add test case for multiple inputs and regenerate UI fixtures
This commit is contained in:
parent
afa26e7560
commit
8d39ba8314
@ -38,11 +38,21 @@ SAMPLE_INPUTS = {
|
||||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
||||
"prev_index": 0,
|
||||
},
|
||||
"byron_input_different_path": {
|
||||
"path": "m/44'/1815'/0'/0/5",
|
||||
"prev_hash": "a34dc95d806a3b206aab5e0c2aaa5ff0704f84868fe65793053f6ae9a7970979",
|
||||
"prev_index": 0,
|
||||
},
|
||||
"shelley_input": {
|
||||
"path": "m/1852'/1815'/0'/0/0",
|
||||
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
||||
"prev_index": 0,
|
||||
},
|
||||
"shelley_input_different_path": {
|
||||
"path": "m/1852'/1815'/0'/0/5",
|
||||
"prev_hash": "33ad5e2a8f298053da804c30c9f72836bfac0a58a30aef2ff87656418b01f70b",
|
||||
"prev_index": 0,
|
||||
},
|
||||
}
|
||||
|
||||
SAMPLE_OUTPUTS = {
|
||||
@ -241,6 +251,38 @@ VALID_VECTORS = [
|
||||
# tx body
|
||||
"83a400818258203b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b700018282583901eb0baa5e570cffbe2934db29df0b6a3d7c0430ee65d4c3a7ab2fefb91bc428e4720702ebd5dab4fb175324c192dc9bb76cc5da956e3c8dff018258390180f9e2c88e6c817008f3a812ed889b4a4da8e0bd103f86e7335422aa122a946b9ad3d2ddf029d3a828f0468aece76895f15c9efbd69b42771a006ca79302182a030aa100818258205d010cf16fdeff40955633d6c565f3844a288a24967cf6b76acbeb271b4f13c158406a78f07836dcf4a303448d2b16b217265a9226be3984a69a04dba5d04f4dbb2a47b5e1cbb345f474c0b9634a2f37b921ab26e6a65d5dfd015dacb4455fb8430af6",
|
||||
),
|
||||
# Mainnet transaction with multiple inputs
|
||||
(
|
||||
# protocol magic
|
||||
PROTOCOL_MAGICS["mainnet"],
|
||||
# network id
|
||||
NETWORK_IDS["mainnet"],
|
||||
# inputs
|
||||
[
|
||||
SAMPLE_INPUTS["byron_input"],
|
||||
SAMPLE_INPUTS["byron_input_different_path"],
|
||||
SAMPLE_INPUTS["shelley_input"],
|
||||
SAMPLE_INPUTS["shelley_input_different_path"],
|
||||
],
|
||||
# outputs
|
||||
[SAMPLE_OUTPUTS["simple_byron_output"]],
|
||||
# fee
|
||||
42,
|
||||
# ttl
|
||||
10,
|
||||
# certificates
|
||||
[],
|
||||
# withdrawals
|
||||
[],
|
||||
# metadata
|
||||
"",
|
||||
# input flow
|
||||
[[InputAction.SWIPE, InputAction.YES], [InputAction.SWIPE, InputAction.YES]],
|
||||
# tx hash
|
||||
"7e16a0b47bdfc37abf4ddd3143f7481af07ffe7abd68f752676f5b0b2890d05b",
|
||||
# serialized tx
|
||||
"83a400848258201af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc00825820a34dc95d806a3b206aab5e0c2aaa5ff0704f84868fe65793053f6ae9a7970979008258203b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b70082582033ad5e2a8f298053da804c30c9f72836bfac0a58a30aef2ff87656418b01f70b00018182582b82d818582183581c9e1c71de652ec8b85fec296f0685ca3988781c94a2e1a5d89d92f45fa0001a0d0c25611a002dd2e802182a030aa20082825820e246aa6392958f01fc8fafd5ac1cf5f28ef34af05820b49c98919753a76109c05840517ca4c901a9cded7b4ab3b1d576f41b28a05aed9ed96ef86a78556099aaa5e996a38c74783262d807d86d48c131b1cb91cbab4ef4b6b52dc8d49708b0f40d068258205d010cf16fdeff40955633d6c565f3844a288a24967cf6b76acbeb271b4f13c15840e661d9d1002bc2f8b310e0b0541f9bb9c3357e8e6e7f772ca72fdfd4dfc27f9ae040197d4ef69c98dc16a105f00c7ff2cebf2d85920307606bff087e550b470d028284582089053545a6c254b0d9b1464e48d2b5fcf91d4e25c128afb1fcfc61d0843338ea5840ca7325ac3280708a12a70f794699243fa1c2a3e3981dccd7e5a1200f521e19fad52489c9be81e8a8ccaccd3c42d917ffd1719e6808e11fbcd1ef495f7324b10b582026308151516f3b0e02bb1638142747863c520273ce9bd3e5cd91e1d46fe2a63541a084582040ed7b4134e85866f55ec896a8a81e9d41c20969af8f88c532e5ad1f9c9425ab5840e11444cf81b94754a15e244259d983cc3099ff04a8212dde814d6e0a9cb7e4423caa440cdee9e2d663b59e5005dbfeee8057765245b96711f1ff20caf8cfb3025820ec19de133d3c5a598212a3b8ad9249453c4ca10e0b9228714700eeaed944590941a0f6",
|
||||
),
|
||||
# simple transaction with base script address change output
|
||||
(
|
||||
# protocol magic
|
||||
|
@ -53,19 +53,20 @@
|
||||
"test_msg_cardano_get_public_key.py::test_cardano_get_public_key[m-1852'-1815'-3'-be81ace1f63f4f0cae7": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
"test_msg_cardano_get_public_key.py::test_cardano_get_public_key[m-44'-1815'-0'-c0fce1839f1a84c4e7702": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
"test_msg_cardano_get_public_key.py::test_cardano_get_public_key[m-44'-1815'-1'-ea5dde31b9f551e08a5b6": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[42-0-inputs12-outputs12-42-10-certificate": "ae26b018ccceacd0c78de3389a673eca60753a6714f3146296ee17072417ec57",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[42-0-inputs13-outputs13-42-10-certificate": "ae26b018ccceacd0c78de3389a673eca60753a6714f3146296ee17072417ec57",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs0-outputs0-42-10-certif": "fe89b315aeb25a4a449f0cadccdafcf58669d247101b038823aad25e4e7ed670",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs1-outputs1-42-10-certif": "900bd30689093a89966b56fa2663f260b0b2d4c0ba74dc4fb06cb0f45f5b3b4d",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs10-outputs10-42-10-cert": "2122f78c45e89fa9a167a0aa940ffc39eed16aa2727b5a4805c54dcf43b286f2",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs11-outputs11-42-10-cert": "bd3ebb343ce530ca0f022d259344093f9c7ad4f993d100efed41d03749dc4226",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs10-outputs10-42-10-cert": "a4b5f7cd8ff1785604892b52c3518c8753998809e884934865328c37f4506210",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs11-outputs11-42-10-cert": "2122f78c45e89fa9a167a0aa940ffc39eed16aa2727b5a4805c54dcf43b286f2",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs12-outputs12-42-10-cert": "bd3ebb343ce530ca0f022d259344093f9c7ad4f993d100efed41d03749dc4226",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs2-outputs2-42-10-certif": "7a35fb89f41b8730c1df37ab1fc63ee8aa4ba3b14282c68b1b86baf81665ff9c",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs3-outputs3-42-10-certif": "4c3943345616721c43e5fefa332f28773c8e95ba9896630a4404fb7c683fa9bc",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs4-outputs4-42-10-certif": "09faf9d0ad559154f74ac9cb3962411be07f81c5f310b23249211af1a6d4e1b2",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs5-outputs5-42-10-certif": "3141c25aef3c98eed72a91833b5b55b2a4e3593bb8e79562765eb82321e99685",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs6-outputs6-42-10-certif": "5a2a0a944774c4cbe6721fb06d41117da09394a9198c465db74dd81f037c701d",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs7-outputs7-42-10-certif": "2544c60437f976ce0d47016950154066982299f64bb51001dc060082a99f53f6",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs8-outputs8-42-10-certif": "5dfb8486bb63465a6a44748a4093cb1cd69c3df7ccd7892d652403cb7eaf802e",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs9-outputs9-42-10-certif": "a4b5f7cd8ff1785604892b52c3518c8753998809e884934865328c37f4506210",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs3-outputs3-42-10-certif": "fe89b315aeb25a4a449f0cadccdafcf58669d247101b038823aad25e4e7ed670",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs4-outputs4-42-10-certif": "4c3943345616721c43e5fefa332f28773c8e95ba9896630a4404fb7c683fa9bc",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs5-outputs5-42-10-certif": "09faf9d0ad559154f74ac9cb3962411be07f81c5f310b23249211af1a6d4e1b2",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs6-outputs6-42-10-certif": "3141c25aef3c98eed72a91833b5b55b2a4e3593bb8e79562765eb82321e99685",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs7-outputs7-42-10-certif": "5a2a0a944774c4cbe6721fb06d41117da09394a9198c465db74dd81f037c701d",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs8-outputs8-42-10-certif": "2544c60437f976ce0d47016950154066982299f64bb51001dc060082a99f53f6",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx[764824073-1-inputs9-outputs9-42-10-certif": "5dfb8486bb63465a6a44748a4093cb1cd69c3df7ccd7892d652403cb7eaf802e",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx_validation[42-0-inputs10-outputs10-42-10-": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx_validation[42-0-inputs8-outputs8-42-10-ce": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
"test_msg_cardano_sign_transaction.py::test_cardano_sign_tx_validation[42-1-inputs11-outputs11-42-10-": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
|
||||
|
Loading…
Reference in New Issue
Block a user