mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
244 lines
7.6 KiB
JSON
244 lines
7.6 KiB
JSON
{
|
|
"setup": {
|
|
"mnemonic": "all all all all all all all all all all all all",
|
|
"passphrase": ""
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "Collateral input prev hash has incorrect length",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"validity_interval_start": null,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
],
|
|
"mint": [],
|
|
"script_data_hash": "d593fd793c377ac50a3169bb8378ffc257c944da31aa8f355dfa5a4f6ff89e02",
|
|
"collateral_inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c338421016",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"required_signers": [],
|
|
"collateral_return": null,
|
|
"total_collateral": null,
|
|
"reference_inputs": [],
|
|
"signing_mode": "PLUTUS_TRANSACTION",
|
|
"additional_witness_requests": [],
|
|
"include_network_id": false
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid collateral input"
|
|
}
|
|
},
|
|
{
|
|
"description": "Plutus transaction with output containing forbidden address parameters",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"validity_interval_start": null,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"addressType": 1,
|
|
"scriptPaymentHash": "8d7bebc7a58f1c7b5fb7c9391071ecd3b51b032695522f8c555343a9",
|
|
"stakingPath": "m/1852'/1815'/0'/2/0",
|
|
"amount": "7120787"
|
|
}
|
|
],
|
|
"mint": [],
|
|
"script_data_hash": "d593fd793c377ac50a3169bb8378ffc257c944da31aa8f355dfa5a4f6ff89e02",
|
|
"collateral_inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"required_signers": [],
|
|
"collateral_return": null,
|
|
"total_collateral": null,
|
|
"reference_inputs": [],
|
|
"signing_mode": "PLUTUS_TRANSACTION",
|
|
"additional_witness_requests": [],
|
|
"include_network_id": false
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address parameters"
|
|
}
|
|
},
|
|
{
|
|
"description": "Required signer with both key path and key hash",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"validity_interval_start": null,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
],
|
|
"mint": [],
|
|
"script_data_hash": "d593fd793c377ac50a3169bb8378ffc257c944da31aa8f355dfa5a4f6ff89e02",
|
|
"collateral_inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"required_signers": [
|
|
{
|
|
"key_path": "m/1852'/1815'/0'/0/1",
|
|
"key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
|
|
}
|
|
],
|
|
"collateral_return": null,
|
|
"total_collateral": null,
|
|
"reference_inputs": [],
|
|
"signing_mode": "PLUTUS_TRANSACTION",
|
|
"additional_witness_requests": [],
|
|
"include_network_id": false
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid required signer"
|
|
}
|
|
},
|
|
{
|
|
"description": "Collateral return with script address",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"validity_interval_start": null,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
],
|
|
"mint": [],
|
|
"script_data_hash": "d593fd793c377ac50a3169bb8378ffc257c944da31aa8f355dfa5a4f6ff89e02",
|
|
"collateral_inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"required_signers": [],
|
|
"collateral_return": {
|
|
"address": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
|
|
"amount": "2000000"
|
|
},
|
|
"total_collateral": null,
|
|
"reference_inputs": [],
|
|
"signing_mode": "PLUTUS_TRANSACTION",
|
|
"additional_witness_requests": [],
|
|
"include_network_id": false
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid collateral return"
|
|
}
|
|
},
|
|
{
|
|
"description": "Collateral return with datum hash",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"validity_interval_start": null,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
],
|
|
"mint": [],
|
|
"script_data_hash": "d593fd793c377ac50a3169bb8378ffc257c944da31aa8f355dfa5a4f6ff89e02",
|
|
"collateral_inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"required_signers": [],
|
|
"collateral_return": {
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "2000000",
|
|
"datum_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7"
|
|
},
|
|
"total_collateral": null,
|
|
"reference_inputs": [],
|
|
"signing_mode": "PLUTUS_TRANSACTION",
|
|
"additional_witness_requests": [],
|
|
"include_network_id": false
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid collateral return"
|
|
}
|
|
}
|
|
]
|
|
}
|