diff --git a/test/data/btc-transaction-test-vectors.json b/test/data/btc-transaction-test-vectors.json index d83f430..0232722 100644 --- a/test/data/btc-transaction-test-vectors.json +++ b/test/data/btc-transaction-test-vectors.json @@ -41,6 +41,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -66,6 +67,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "1.00000000 TBTC", + "fee": "0.80000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 400.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -123,6 +152,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -148,6 +178,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "2.00000000 TBTC", + "fee": "1.80000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 900.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -286,6 +344,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -323,6 +382,46 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "1-of-2\nBTC Testnet multisig", + "longtouch": false + }, + { + "type": "confirm", + "title": "Spend from", + "body": "test wsh multisig", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -445,6 +544,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -506,6 +606,70 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n2 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test wsh policy", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "wsh(or_b(pk(@0/<0;1>/*),s:pk(@1/<0;1>/*)))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/2", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/2", + "body": "tpubDFgycCkexSxkdZfeyaasDHityE97kiYM1BeCNoivDHvydGugKtoNobt4vEX6YSHNPy2cqmWQHKjKxciJuocepsGPGxcDZVmiMBnxgA1JKQk", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -628,6 +792,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -683,6 +848,64 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n1 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test tr keyspend policy", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "tr(@0/<0;1>/*)", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/1", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -811,6 +1034,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -872,43 +1096,107 @@ "body": "confirmed" } ] - } - ], - "registrations": [ - { - "script_config": { - "type": "policy", - "policy": "tr(@0/<0;1>/*,pk(@1/<0;1>/*))", - "keys": [ - { - "xpub": "tpubDFgycCkexSxkdZfeyaasDHityE97kiYM1BeCNoivDHvydGugKtoNobt4vEX6YSHNPy2cqmWQHKjKxciJuocepsGPGxcDZVmiMBnxgA1JKQk" - }, - { - "root_fingerprint": "4c00739d", - "keypath": "m/48'/1'/0'/3'", - "xpub": "xpub6EhivkawbkKDTyZXUfDUntyKvkx4fcniJY3RRMdcvvkKTEt7gX7CfotifBsm1iDYzLpRk9pspB6g2r2sjxVePkCScgDmkPiGUAWg2ESMKNA" - } - ] - }, - "name": "test tr scriptspend policy" - } - ], - "expected_signatures": [ + }, { - "input_index": 0, - "kind": "taproot_script", - "pubkey": "3a1712b41eb509147fbbd80c3fac4af4ad0f0eaeaef36e6e08918002afd8e9b2", - "leaf_hash": "c3aa2951885f3ddabebfba4eb4873dbdb2c41e287562d542cf8782e2a857071b", - "sighash": "default" - } - ] - }, - { - "id": "taproot-to-non-taproot-change", - "description": "Signs all-Taproot inputs with P2WPKH change, requiring previous transactions for the added non-Taproot output config.", - "coin": "tbtc", - "psbt": { - "transaction": "70736274ff0100a60200000002f8e60a3e44fa93f5d7a7b57dc5983aac5d50f84071772938b4ddff45ce9bf3270000000000fffffffff8e60a3e44fa93f5d7a7b57dc5983aac5d50f84071772938b4ddff45ce9bf3270100000000ffffffff0200e1f505000000001600149e2597ee0b2fbffec6275bd6cab7d2b4737b6e95002d3101000000002251204a4ecb00ef0f15842f9e5ad1d6a8537694c57d1cbbb4158c2174e1a98c20ef140000000000010089020000000131313131313131313131313131313131313131313131313131313131313131310000000000ffffffff0200e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db4220000000001012b00e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a21166c9e72468f297c110e46bfedd7ffe83ab20470a1ae6a7fc13ccf94986541292e19004c00739d56000080010000800000008000000000000000000117206c9e72468f297c110e46bfedd7ffe83ab20470a1ae6a7fc13ccf94986541292e00010089020000000131313131313131313131313131313131313131313131313131313131313131310000000000ffffffff0200e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db4220000000001012b00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db42221169e2a4b40d2c021b903ca48aa305545f56716f5c85e998bdc677d968a4057434319004c00739d56000080010000800000008000000000010000000117209e2a4b40d2c021b903ca48aa305545f56716f5c85e998bdc677d968a4057434300220202dca870342cf7bc12c2d6c23dc6a0761160b1ff54e820be4b48c8f3ba9a8dc239184c00739d54000080010000800000008001000000000000000000" + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n2 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test tr scriptspend policy", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "tr(@0/<0;1>/*,pk(@1/<0;1>/*))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/2", + "body": "tpubDFgycCkexSxkdZfeyaasDHityE97kiYM1BeCNoivDHvydGugKtoNobt4vEX6YSHNPy2cqmWQHKjKxciJuocepsGPGxcDZVmiMBnxgA1JKQk", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/2", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] + } + ], + "registrations": [ + { + "script_config": { + "type": "policy", + "policy": "tr(@0/<0;1>/*,pk(@1/<0;1>/*))", + "keys": [ + { + "xpub": "tpubDFgycCkexSxkdZfeyaasDHityE97kiYM1BeCNoivDHvydGugKtoNobt4vEX6YSHNPy2cqmWQHKjKxciJuocepsGPGxcDZVmiMBnxgA1JKQk" + }, + { + "root_fingerprint": "4c00739d", + "keypath": "m/48'/1'/0'/3'", + "xpub": "xpub6EhivkawbkKDTyZXUfDUntyKvkx4fcniJY3RRMdcvvkKTEt7gX7CfotifBsm1iDYzLpRk9pspB6g2r2sjxVePkCScgDmkPiGUAWg2ESMKNA" + } + ] + }, + "name": "test tr scriptspend policy" + } + ], + "expected_signatures": [ + { + "input_index": 0, + "kind": "taproot_script", + "pubkey": "3a1712b41eb509147fbbd80c3fac4af4ad0f0eaeaef36e6e08918002afd8e9b2", + "leaf_hash": "c3aa2951885f3ddabebfba4eb4873dbdb2c41e287562d542cf8782e2a857071b", + "sighash": "default" + } + ] + }, + { + "id": "taproot-to-non-taproot-change", + "description": "Signs all-Taproot inputs with P2WPKH change, requiring previous transactions for the added non-Taproot output config.", + "coin": "tbtc", + "psbt": { + "transaction": "70736274ff0100a60200000002f8e60a3e44fa93f5d7a7b57dc5983aac5d50f84071772938b4ddff45ce9bf3270000000000fffffffff8e60a3e44fa93f5d7a7b57dc5983aac5d50f84071772938b4ddff45ce9bf3270100000000ffffffff0200e1f505000000001600149e2597ee0b2fbffec6275bd6cab7d2b4737b6e95002d3101000000002251204a4ecb00ef0f15842f9e5ad1d6a8537694c57d1cbbb4158c2174e1a98c20ef140000000000010089020000000131313131313131313131313131313131313131313131313131313131313131310000000000ffffffff0200e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db4220000000001012b00e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a21166c9e72468f297c110e46bfedd7ffe83ab20470a1ae6a7fc13ccf94986541292e19004c00739d56000080010000800000008000000000000000000117206c9e72468f297c110e46bfedd7ffe83ab20470a1ae6a7fc13ccf94986541292e00010089020000000131313131313131313131313131313131313131313131313131313131313131310000000000ffffffff0200e1f505000000002251205745c9989285350a6aa88c88f6fb3c43e6bcce823446a0920eb3bc6a93995f1a00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db4220000000001012b00e1f5050000000022512036c6a3ef943986e3fdfb7d5a750ae013f746966f6fe0971d3bdc7360f29db42221169e2a4b40d2c021b903ca48aa305545f56716f5c85e998bdc677d968a4057434319004c00739d56000080010000800000008000000000010000000117209e2a4b40d2c021b903ca48aa305545f56716f5c85e998bdc677d968a4057434300220202dca870342cf7bc12c2d6c23dc6a0761160b1ff54e820be4b48c8f3ba9a8dc239184c00739d54000080010000800000008001000000000000000000" }, "expected_needs_prevtxs": true, "expectations": [ @@ -943,6 +1231,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -968,6 +1257,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "1.00000000 TBTC", + "fee": "0.80000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 400.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -1038,6 +1355,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -1063,6 +1381,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 BTC", + "address": "sp1q qgst e7k9 hx0q ftg6 qmwl kqtw uy6c ycya vzmz j85c 6qdf hjdp djtd gqju exzk 6mur w56s uy3e 0rd2 cgqv ycxt tddw svgx e2us fpxu mr70 xc9p kqwv" + }, + { + "type": "transaction_fee", + "amount": "2.00000000 BTC", + "fee": "1.80000000 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 900.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -1158,6 +1504,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -1183,6 +1530,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "This BitBox (same account): tb1q l34n y8mc pgjq r0ng snjm lpzj pgnc yz2y gh2g ye" + }, + { + "type": "transaction_fee", + "amount": "0.50000000 TBTC", + "fee": "0.30000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 150.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -1263,6 +1638,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -1288,6 +1664,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "This BitBox (account #2): tb1q vrcm 2akp 30d7 ecnq djk8 qdu0 9962 ak00 5rcp 6j" + }, + { + "type": "transaction_fee", + "amount": "0.50000000 TBTC", + "fee": "0.30000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 150.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -1416,7 +1820,7 @@ { "type": "confirm", "title": "High fee", - "body": "The fee is 150.0%\nthe send amount.\nProceed?", + "body": "Fee is 150.0%\nof the send amount.\nProceed?", "longtouch": true }, { @@ -1914,6 +2318,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -1960,48 +2365,97 @@ "body": "confirmed" } ] - } - ], - "expected_signatures": [ + }, { - "input_index": 0, - "kind": "ecdsa", - "pubkey": "0218f980e27a3f46860d15cbeb0aba08ed32bf5de22be5a3b80e26cfec5727eb1d", - "sighash": "all" - } - ] - }, - { - "id": "swap-payment-request", - "description": "Displays and signs a Bitcoin-to-Ethereum coin-purchase payment request.", - "coin": "btc", - "psbt": { - "transaction": "70736274ff01007d0200000001013018e6e997b8e9b80d0244f11e3c68ba7107d8bb9a359a16a9a796d64e85550000000000ffffffff02801d2c04000000001600141133a71526b176aac7b2462bc5bff36abe68a18a002d310100000000225120da28dbf53b86ae59ae156af3745bb326f44ce309dda97345708c8d3dd45755a6000000000001005202000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff0100e1f50500000000160014fc8c96dd45eed60d714647d787e74d2b33b5ae9b0000000001011f00e1f50500000000160014fc8c96dd45eed60d714647d787e74d2b33b5ae9b220602c6f297dd7bcc0a38a527b3f2289cf91816cae2845a605080fd5fc9af4a945048184c00739d5400008000000080000000800000000000000000002202034fc8251f3b2e939dccf75db7c9edf0e8cbc88ec662c0119e961e586ebebe3731184c00739d54000080000000800000008001000000000000000000", - "options": { - "outputs": { - "1": { - "payment_request_index": 0 - } - }, - "payment_requests": [ + "min_version": "9.27.2", + "outcome": "success", + "screens": [ { - "recipient_name": "Test Merchant", - "total_amount": 20000000, - "memos": [ - { - "type": "coin_purchase", - "coin_type": 60, - "amount": "0.25 ETH", - "address": "0x416E88840Eb6353E49252Da2a2c140eA1f969D1a", - "address_keypath": "m/44'/60'/0'/0/0" - } - ], - "signature": "917d3514b2358406730f42952efe0a873255788314a9cf2906474c1e2cefd8cb0e35791ef8211463d37a007e3d9d3a0ec11736250b7e089156c53e5ebf40413d" - } - ] - } - }, - "expected_needs_prevtxs": true, + "type": "transaction_address", + "amount": "1.00000000 BTC", + "address": "12ZE w5Hc v1hT b6YU QJ69 y1V7 uhco Dz92 PH" + }, + { + "type": "transaction_address", + "amount": "10.34567890 BTC", + "address": "34oV nh4g NviJ GMnN vgqu MeLA xvXJ uaRV MZ" + }, + { + "type": "transaction_address", + "amount": "0.00006000 BTC", + "address": "bc1q xven xven xven xven xven xven xven xven 2ymj t8" + }, + { + "type": "transaction_address", + "amount": "0.00007000 BTC", + "address": "bc1q g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zy g3zq d8sx w4" + }, + { + "type": "confirm", + "title": "Warning", + "body": "There are 2\nchange outputs.\nProceed?", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "13.39999900 BTC", + "fee": "2.05419010 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 18.1%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] + } + ], + "expected_signatures": [ + { + "input_index": 0, + "kind": "ecdsa", + "pubkey": "0218f980e27a3f46860d15cbeb0aba08ed32bf5de22be5a3b80e26cfec5727eb1d", + "sighash": "all" + } + ] + }, + { + "id": "swap-payment-request", + "description": "Displays and signs a Bitcoin-to-Ethereum coin-purchase payment request.", + "coin": "btc", + "psbt": { + "transaction": "70736274ff01007d0200000001013018e6e997b8e9b80d0244f11e3c68ba7107d8bb9a359a16a9a796d64e85550000000000ffffffff02801d2c04000000001600141133a71526b176aac7b2462bc5bff36abe68a18a002d310100000000225120da28dbf53b86ae59ae156af3745bb326f44ce309dda97345708c8d3dd45755a6000000000001005202000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff0100e1f50500000000160014fc8c96dd45eed60d714647d787e74d2b33b5ae9b0000000001011f00e1f50500000000160014fc8c96dd45eed60d714647d787e74d2b33b5ae9b220602c6f297dd7bcc0a38a527b3f2289cf91816cae2845a605080fd5fc9af4a945048184c00739d5400008000000080000000800000000000000000002202034fc8251f3b2e939dccf75db7c9edf0e8cbc88ec662c0119e961e586ebebe3731184c00739d54000080000000800000008001000000000000000000", + "options": { + "outputs": { + "1": { + "payment_request_index": 0 + } + }, + "payment_requests": [ + { + "recipient_name": "Test Merchant", + "total_amount": 20000000, + "memos": [ + { + "type": "coin_purchase", + "coin_type": 60, + "amount": "0.25 ETH", + "address": "0x416E88840Eb6353E49252Da2a2c140eA1f969D1a", + "address_keypath": "m/44'/60'/0'/0/0" + } + ], + "signature": "917d3514b2358406730f42952efe0a873255788314a9cf2906474c1e2cefd8cb0e35791ef8211463d37a007e3d9d3a0ec11736250b7e089156c53e5ebf40413d" + } + ] + } + }, + "expected_needs_prevtxs": true, "expectations": [ { "max_version_exclusive": "9.24.0", @@ -2022,6 +2476,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2053,6 +2508,40 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 BTC", + "address": "Test Merchant" + }, + { + "type": "swap", + "title": "Swap", + "from": "0.20000000 BTC", + "to": "0.25 ETH" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 BTC", + "fee": "0.10000000 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2160,6 +2649,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2185,6 +2675,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2236,6 +2754,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2261,6 +2780,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2312,6 +2859,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2337,6 +2885,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2429,6 +3005,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2460,6 +3037,40 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "confirm", + "title": "", + "body": "Locktime on block:\n10", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2552,6 +3163,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2583,6 +3195,40 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "confirm", + "title": "", + "body": "Locktime on block:\n10", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2675,6 +3321,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2706,6 +3353,40 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 LTC", + "address": "ltc1 qw50 8d6q ejxt dg4y 5r3z arva ry0c 5xw7 kgmn 4n9" + }, + { + "type": "confirm", + "title": "", + "body": "Locktime on block:\n10", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.30000000 LTC", + "fee": "0.10000000 LTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2798,6 +3479,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2829,6 +3511,40 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 LTC", + "address": "ltc1 qw50 8d6q ejxt dg4y 5r3z arva ry0c 5xw7 kgmn 4n9" + }, + { + "type": "confirm", + "title": "", + "body": "Locktime on block:\n10", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.30000000 LTC", + "fee": "0.10000000 LTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -2880,6 +3596,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -2905,6 +3622,34 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_address", + "amount": "0.20000000 BTC", + "address": "bc1p mg5d hafm s6h9 nts4 dteh gkan ym6y eccf mk5h x3ts 3jxn m4zh 2knq v80h a5" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 BTC", + "fee": "0.10000000 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -3056,8 +3801,43 @@ "screens": [] }, { - "min_version": "9.24.0", - "max_version_exclusive": "9.26.0", + "min_version": "9.24.0", + "max_version_exclusive": "9.26.0", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "OP_RETURN\ndata (hex)", + "body": "0102030405", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1pff8vkq80pu2cgtu7ttgad2znw62v2lguhw6ptrppwns6nrpqau2qcuz37d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "The fee is 50.0%\nthe send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] + }, + { + "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3069,7 +3849,7 @@ { "type": "transaction_address", "amount": "0.20000000 TBTC", - "address": "tb1pff8vkq80pu2cgtu7ttgad2znw62v2lguhw6ptrppwns6nrpqau2qcuz37d" + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" }, { "type": "transaction_fee", @@ -3091,7 +3871,7 @@ ] }, { - "min_version": "9.26.0", + "min_version": "9.27.2", "outcome": "success", "screens": [ { @@ -3114,7 +3894,7 @@ { "type": "confirm", "title": "High fee", - "body": "The fee is 50.0%\nthe send amount.\nProceed?", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", "longtouch": true }, { @@ -3256,6 +4036,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3276,6 +4057,29 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "transaction_fee", + "amount": "0.70000000 BTC", + "fee": "0.70000000 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 70.0%\nof all inputs.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -3328,6 +4132,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3354,6 +4159,35 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "OP_RETURN", + "body": "metadata", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.70000000 BTC", + "fee": "0.70000000 BTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 70.0%\nof all inputs.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "expected_signatures": [ @@ -3498,6 +4332,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3535,6 +4370,46 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "1-of-2\nBTC Testnet multisig", + "longtouch": false + }, + { + "type": "confirm", + "title": "Spend from", + "body": "test sh-wsh multisig", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -3642,6 +4517,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3679,6 +4555,46 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "7-of-15\nBTC Testnet multisig", + "longtouch": false + }, + { + "type": "confirm", + "title": "Spend from", + "body": "test large multisig", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -3820,6 +4736,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3881,6 +4798,70 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n2 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test tr tweaked keyspend", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "tr(@0/**,pk(@1/**))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/2", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/2", + "body": "tpubDFfyBnQAERJZWHv4W5rrhkpKJnPjycGzBpv8H1WgFjpkK7bVpuKw6JkeNvXqJix6csrQP3QgPZ19Yed2kbc7sniVHtNiQkX3cHsBxEqnz7Y", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -3936,21 +4917,92 @@ } ] }, - "keypath": "m/48'/1'/0'/3'" - } - } - }, - "expected_needs_prevtxs": false, - "expectations": [ - { - "max_version_exclusive": "9.21.0", - "outcome": "unsupported", - "unsupported_version": "9.21.0", - "screens": [] + "keypath": "m/48'/1'/0'/3'" + } + } + }, + "expected_needs_prevtxs": false, + "expectations": [ + { + "max_version_exclusive": "9.21.0", + "outcome": "unsupported", + "unsupported_version": "9.21.0", + "screens": [] + }, + { + "min_version": "9.21.0", + "max_version_exclusive": "9.26.0", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n3 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test unspendable policy", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "tr(@0/<0;1>/*,multi_a(2,@1/<0;1>/*,@2/<0;1>/*))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/3", + "body": "Provably unspendable: tpubD6NzVbkrYhZ4XnyFMCH9qsN7VhcUSwyj5MN4juKrFBbgE9e3qCpEQsHSmq4zHA2FAkSwBQEzFGKjvXtb2xrRLioqRdqAkqN3Y9WrBf7yNj8", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/3", + "body": "tpubDF93VcTYKK2grTowjbqJMst4gS19G6rtWTNKcBnxCpQfs2BaFShNYoBDisxqhTsBWj4YhigxVArhhZN43NyWBH4E3puXS7tCrHsbjb2dvBi", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 3/3", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1pff8vkq80pu2cgtu7ttgad2znw62v2lguhw6ptrppwns6nrpqau2qcuz37d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "The fee is 50.0%\nthe send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] }, { - "min_version": "9.21.0", - "max_version_exclusive": "9.26.0", + "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -3998,7 +5050,7 @@ { "type": "transaction_address", "amount": "0.20000000 TBTC", - "address": "tb1pff8vkq80pu2cgtu7ttgad2znw62v2lguhw6ptrppwns6nrpqau2qcuz37d" + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" }, { "type": "transaction_fee", @@ -4020,7 +5072,7 @@ ] }, { - "min_version": "9.26.0", + "min_version": "9.27.2", "outcome": "success", "screens": [ { @@ -4079,7 +5131,7 @@ { "type": "confirm", "title": "High fee", - "body": "The fee is 50.0%\nthe send amount.\nProceed?", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", "longtouch": true }, { @@ -4234,6 +5286,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -4301,6 +5354,76 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n3 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test complex unspendable", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "tr(@0/<0;1>/*,{and_v(v:multi_a(1,@1/<2;3>/*,@2/<2;3>/*),older(2)),multi_a(2,@1/<0;1>/*,@2/<0;1>/*)})", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/3", + "body": "Provably unspendable: tpubD6NzVbkrYhZ4YRYppNDw8BpfEz6cSU8qt45Eoqpj8YtPLFXoZsb3dYdAyLFp32GeY3b5ccVdtr45ajBGBDHgapb53xT9kMBcpHSF7yA8kXm", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/3", + "body": "[4040280c/48'/1'/0'/2']tpubDEWR7iVng7GH7BhbVBa6avnELDTSWEWHtAethvSrYYLEFm1XB1qT4Fb9xkPGZ9S7zU1FFrpVc6wRSo5BRNYvDAP7Edr5a6FJSjeCt7tWgQR", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 3/3", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -4369,6 +5492,7 @@ }, { "min_version": "9.27.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -4430,6 +5554,70 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n1 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test timestamp locktime", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "wsh(and_v(v:pk(@0/**),after(1800000000)))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/1", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "confirm", + "title": "", + "body": "Locktime (UTC):\n2027-01-15\n08:00:00", + "longtouch": false + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ @@ -4552,6 +5740,7 @@ }, { "min_version": "9.26.0", + "max_version_exclusive": "9.27.2", "outcome": "success", "screens": [ { @@ -4613,6 +5802,70 @@ "body": "confirmed" } ] + }, + { + "min_version": "9.27.2", + "outcome": "success", + "screens": [ + { + "type": "confirm", + "title": "Spend from", + "body": "BTC Testnet\npolicy with\n2 keys", + "longtouch": false + }, + { + "type": "confirm", + "title": "Name", + "body": "test multipath policy", + "longtouch": false + }, + { + "type": "confirm", + "title": "", + "body": "Show policy\ndetails?", + "longtouch": false + }, + { + "type": "confirm", + "title": "Policy", + "body": "wsh(multi(2,@0/<10;11>/*,@1/<20;21>/*))", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 1/2", + "body": "This device: [4c00739d/48'/1'/0'/3']tpubDF5MSzQdK2GfjmkNvrCZzpJhFt3if1HmrAdimugmGqWDCXYpkjxHpFZYuDxYYDAnnFMLMjLkMGvij2XV8pLtHBejgGy5RvNW4875nFGBDWv", + "longtouch": false + }, + { + "type": "confirm", + "title": "Key 2/2", + "body": "tpubDFfyBnQAERJZWHv4W5rrhkpKJnPjycGzBpv8H1WgFjpkK7bVpuKw6JkeNvXqJix6csrQP3QgPZ19Yed2kbc7sniVHtNiQkX3cHsBxEqnz7Y", + "longtouch": false + }, + { + "type": "transaction_address", + "amount": "0.20000000 TBTC", + "address": "tb1p ff8v kq80 pu2c gtu7 ttga d2zn w62v 2lgu hw6p trpp wns6 nrpq au2q cuz3 7d" + }, + { + "type": "transaction_fee", + "amount": "0.30000000 TBTC", + "fee": "0.10000000 TBTC", + "longtouch": false + }, + { + "type": "confirm", + "title": "High fee", + "body": "Fee is 50.0%\nof the send amount.\nProceed?", + "longtouch": true + }, + { + "type": "status", + "title": "Transaction", + "body": "confirmed" + } + ] } ], "registrations": [ diff --git a/test/simulators.json b/test/simulators.json index 74500d4..22418b3 100644 --- a/test/simulators.json +++ b/test/simulators.json @@ -42,5 +42,9 @@ { "url": "https://github.com/BitBoxSwiss/bitbox02-firmware/releases/download/firmware%2Fv9.27.1/bitbox02-multi-v9.27.1-simulator1.0.0-linux-amd64", "sha256": "0b049efb21dcf8a447e9f46c660c731e38fb83101023d4f80f1f423ddaa4126b" + }, + { + "url": "https://github.com/BitBoxSwiss/bitbox02-firmware/releases/download/firmware%2Fv9.29.0/bitbox02-multi-v9.29.0-simulator1.0.0-linux-amd64", + "sha256": "4680422baba4be26ad3d72ff3e6cc3c1d7cb95f5c4cb95f5acdf653a5bee53ed" } ]