mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 20:38:10 +00:00
944 lines
29 KiB
JSON
944 lines
29 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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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"}],
|
|
"metadata": "",
|
|
"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"
|
|
}],
|
|
"metadata": "",
|
|
"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": "Metadata too large",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "a200a11864a118c843aa00ff01a119012c590202aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid metadata"
|
|
}
|
|
},
|
|
{
|
|
"description": "Metadata is a list",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "82a200a11864a118c843aa00ff01a119012c590100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0A",
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid metadata"
|
|
}
|
|
},
|
|
{
|
|
"description": "Metadata is incomplete",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "a200a11864a118c843aa00ff01",
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid metadata"
|
|
}
|
|
},
|
|
{
|
|
"description": "Metadata has leftover data",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "a200a11864a118c843aa00ff01a119012c590100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa000000",
|
|
"inputs": [
|
|
{
|
|
"path": "m/1852'/1815'/0'/0/0",
|
|
"prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
|
|
"prev_index": 0
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2",
|
|
"amount": "3003112"
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Invalid metadata"
|
|
}
|
|
},
|
|
{
|
|
"description": "Change output path larger than 100",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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": "Too many tokens in output",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "",
|
|
"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": "01aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "7878754"
|
|
},
|
|
{
|
|
"asset_name_bytes": "02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "04aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "05aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "06aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "07aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "08aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
},
|
|
{
|
|
"asset_name_bytes": "09aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "1234"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"policy_id": "75a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
|
|
"tokens": [
|
|
{
|
|
"asset_name_bytes": "10aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "11aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "12aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "13aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "14aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "15aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "16aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
},
|
|
{
|
|
"asset_name_bytes": "17aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"amount": "47"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"error_message": "Maximum tx output size"
|
|
}
|
|
},
|
|
{
|
|
"description": "Repeated asset name in multiasset token group",
|
|
"parameters": {
|
|
"protocol_magic": 764824073,
|
|
"network_id": 1,
|
|
"fee": 42,
|
|
"ttl": 10,
|
|
"certificates": [],
|
|
"withdrawals": [],
|
|
"metadata": "",
|
|
"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": [],
|
|
"metadata": "",
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|