mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 08:38:07 +00:00
862 lines
25 KiB
JSON
862 lines
25 KiB
JSON
{
|
|
"setup": {
|
|
"mnemonic": "all all all all all all all all all all all all",
|
|
"passphrase": ""
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "Output address is a valid CBOR but invalid Cardano address",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "jsK75PTH2esX8k4Wvxenyz83LJJWToBbVmGrWUer2CHFHanLseh7r3sW5X5q",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Output address is invalid CBOR",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "5dnY6xgRcNUSLGa4gfqef2jGAMHb7koQs9EXErXLNC1LiMPUnhn8joXhvEJpWQtN3F4ysATcBvCn5tABgL3e4hPWapPHmcK5GJMSEaET5JafgAGwSrznzL1Mqa",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Output address has invalid CRC",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZ5YUb8sM3eS8JqKgrRLzhiu71crfuH2MFtqaYr5ACNRZR3Mbm",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Output address is too short",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q89s8py7y68e3x66sscs0wkhlg5ssfrfs65084jry45scvehcr",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Output address is too long",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q89s8py7y68e3x66sscs0wkhlg5ssfrfs65084jrlrqcfqqj922xhxkn6twlq2wn4q50q352annk3903tj00h45mgfm5z3vcwsfrvkr5zglq4rxu",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Fee is too high",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 45000000000000001,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Fee is out of range"
|
|
}
|
|
},
|
|
{
|
|
"description": "Output total is too high",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "449999999199999999"
|
|
},
|
|
{
|
|
"addressType": 8,
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"amount": "1000000"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Total transaction amount is out of range!"
|
|
}
|
|
},
|
|
{
|
|
"description": "Mainnet transaction with testnet output",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "2657WMsDfac7BteXkJq5Jzdog4h47fPbkwUM49isuWbYAr2cFRHa3rURP236h9PBe",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Output address network mismatch!"
|
|
}
|
|
},
|
|
{
|
|
"description": "Testnet transaction with mainnet output",
|
|
"parameters": {
|
|
"protocol_magic": 42,
|
|
"network_id": 0,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/44'/1815'/0'/0/1",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Output address network mismatch!"
|
|
}
|
|
},
|
|
{
|
|
"description": "Shelley mainnet transaction with testnet output",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr_test1vr9s8py7y68e3x66sscs0wkhlg5ssfrfs65084jrlrqcfqqtmut0e",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Shelley testnet transaction with mainnet output",
|
|
"parameters": {
|
|
"protocol_magic": 42,
|
|
"network_id": 0,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Testnet protocol magic with mainnet network id",
|
|
"parameters": {
|
|
"protocol_magic": 42,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid network id/protocol magic combination!"
|
|
}
|
|
},
|
|
{
|
|
"description": "Mainnet protocol magic with testnet network id",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 0,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid network id/protocol magic combination!"
|
|
}
|
|
},
|
|
{
|
|
"description": "Unsupported address type",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1590z7zqwhya6mpk5q929ur897g3pp9kkgalpreny8y304r2dcrtx0sf3dluyu4erzr3xtmdnzvcyfzekkuteu2xagx0qt7gvvj",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid address"
|
|
}
|
|
},
|
|
{
|
|
"description": "Certificate has non staking path",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [
|
|
{"type": 0, "path": "m/1852'/1815'/0'/0/0"}
|
|
],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid certificate"
|
|
}
|
|
},
|
|
{
|
|
"description": "Certificate has invalid pool size",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [
|
|
{
|
|
"type": 2,
|
|
"path": "m/1852'/1815'/0'/2/0",
|
|
"pool": "f61c42cbf7c8c53af3f520508212ad3e72"
|
|
}
|
|
],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid certificate"
|
|
}
|
|
},
|
|
{
|
|
"description": "Withdrawal has non staking path",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [{"path": "m/1852'/1815'/0'/0/0", "amount": "1000"}],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid withdrawal"
|
|
}
|
|
},
|
|
{
|
|
"description": "Withdrawal amount is too large",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [{
|
|
"path": "m/1852'/1815'/0'/2/0",
|
|
"amount": "449999999199999999"
|
|
}],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid withdrawal"
|
|
}
|
|
},
|
|
{
|
|
"description": "Auxiliary data blob is incomplete",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": {
|
|
"blob": "a200a11864a118c843aa00ff01"
|
|
},
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid auxiliary data"
|
|
}
|
|
},
|
|
{
|
|
"description": "Auxiliary data blob has leftover data",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": {
|
|
"blob": "a200a11864a118c843aa00ff01a119012c590100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa000000"
|
|
},
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid auxiliary data"
|
|
}
|
|
},
|
|
{
|
|
"description": "transaction with catalyst registration containing byron reward address",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": {
|
|
"catalyst_registration_parameters": {
|
|
"voting_public_key": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"staking_path": "m/1852'/1815'/0'/2/0",
|
|
"nonce": 22634813,
|
|
"reward_address_parameters": {
|
|
"addressType": 8,
|
|
"path": "m/44'/1815'/0'/0/0"
|
|
}
|
|
}
|
|
},
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid auxiliary data"
|
|
}
|
|
},
|
|
{
|
|
"description": "transaction with both auxiliary data blob and catalyst registration",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": {
|
|
"blob": "a200a11864a118c843aa00ff01a119012c590100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"catalyst_registration_parameters": {
|
|
"voting_public_key": "38DA0B509D45BF6C87BD55594B92F97081D3923B8C1334B9B8D0BF13FC1C12D0",
|
|
"staking_path": "m/1852'/1815'/0'/2/0",
|
|
"reward_address_parameters": {
|
|
"addressType": 0,
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"stakingPath": "m/1852'/1815'/0'/2/0"
|
|
},
|
|
"nonce": 140
|
|
}
|
|
},
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid auxiliary data"
|
|
}
|
|
},
|
|
{
|
|
"description": "Change output path larger than 100",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"input_flow": [["SWIPE", "YES"]],
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
},
|
|
{
|
|
"addressType": 0,
|
|
"path": "m/1852'/1815'/190'/0/0",
|
|
"stakingPath": "m/1852'/1815'/0'/2/0",
|
|
"amount": "7120787"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid change output path"
|
|
}
|
|
},
|
|
{
|
|
"description": "Change output staking path larger than 100",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"input_flow": [["SWIPE", "YES"]],
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
},
|
|
{
|
|
"addressType": 0,
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"stakingPath": "m/1852'/1815'/190'/2/0",
|
|
"amount": "7120787"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid change output staking path"
|
|
}
|
|
},
|
|
{
|
|
"description": "Stake deregistration account larger than 100",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [
|
|
{
|
|
"type": 1,
|
|
"path": "m/1852'/1815'/190'/2/0"
|
|
}
|
|
],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"input_flow": [["SWIPE", "YES"]],
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
|
|
"amount": "1"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid certificate path"
|
|
}
|
|
},
|
|
{
|
|
"description": "Repeated asset name in multiasset token group",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112",
|
|
"token_bundle": [
|
|
{
|
|
"policy_id": "95a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
|
|
"tokens": [
|
|
{
|
|
"asset_name_bytes": "74652474436f696e",
|
|
"amount": "7878754"
|
|
},
|
|
{
|
|
"asset_name_bytes": "74652474436f696e",
|
|
"amount": "1234"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid token bundle in output"
|
|
}
|
|
},
|
|
{
|
|
"description": "Repeated policyId in multiasset output",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"auxiliary_data": null,
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112",
|
|
"token_bundle": [
|
|
{
|
|
"policy_id": "95a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
|
|
"tokens": [
|
|
{
|
|
"asset_name_bytes": "74652474436f696e",
|
|
"amount": "7878754"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"policy_id": "95a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
|
|
"tokens": [
|
|
{
|
|
"asset_name_bytes": "74652474436f696f",
|
|
"amount": "7878754"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid token bundle in output"
|
|
}
|
|
}
|
|
]
|
|
}
|