mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
641 lines
19 KiB
JSON
641 lines
19 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"
|
|
}
|
|
}
|
|
]
|
|
}
|