|
| 1 | +{ |
| 2 | + "setup": { |
| 3 | + "mnemonic": "all all all all all all all all all all all all", |
| 4 | + "passphrase": "" |
| 5 | + }, |
| 6 | + "tests": [ |
| 7 | + { |
| 8 | + "description": "Sign short non-ASCII payload", |
| 9 | + "parameters": { |
| 10 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 11 | + "network_id": 1, |
| 12 | + "protocol_magic": 764824073, |
| 13 | + "payload": "ff00", |
| 14 | + "hash_payload": false, |
| 15 | + "display_ascii": false |
| 16 | + }, |
| 17 | + "result": { |
| 18 | + "signature": "5ad6ba670e65353b2c1ad4053a1ed4a9348a73fe965ffa0afafa24bad06e3eb3e325d49029604c09bf665c3c43a750ec81a43b1f8b746b07e999b913b980d006", |
| 19 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 20 | + } |
| 21 | + }, |
| 22 | + { |
| 23 | + "description": "Sign short non-ASCII payload with address parameters", |
| 24 | + "parameters": { |
| 25 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 26 | + "network_id": 1, |
| 27 | + "protocol_magic": 764824073, |
| 28 | + "payload": "ff00", |
| 29 | + "hash_payload": false, |
| 30 | + "address_parameters": { |
| 31 | + "addressType": 0, |
| 32 | + "path": "m/1852'/1815'/0'/0/0", |
| 33 | + "stakingPath": "m/1852'/1815'/0'/2/0" |
| 34 | + }, |
| 35 | + "display_ascii": false |
| 36 | + }, |
| 37 | + "result": { |
| 38 | + "signature": "9efaff0b74c0beb2cadd727d8bafe13b31107235c5fc46c6c33e596e024d391c9fbe37072e43965add6ee0a4788562382031486b74fd59d636aa1ca3b1ddfe06", |
| 39 | + "address": "0180f9e2c88e6c817008f3a812ed889b4a4da8e0bd103f86e7335422aa122a946b9ad3d2ddf029d3a828f0468aece76895f15c9efbd69b4277" |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + "description": "Sign short non-ASCII payload hash", |
| 44 | + "parameters": { |
| 45 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 46 | + "network_id": 1, |
| 47 | + "protocol_magic": 764824073, |
| 48 | + "payload": "ff00", |
| 49 | + "hash_payload": true, |
| 50 | + "display_ascii": false |
| 51 | + }, |
| 52 | + "result": { |
| 53 | + "signature": "2c325e542fa78d76d916e50f50b85e770354a44e071f08fdb8ec5d0bcbf844cf70dcf5c87b7a51cd7f0269a59eec8d438c3c27eb42b971e7ccb7f864714c4b06", |
| 54 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 55 | + } |
| 56 | + }, |
| 57 | + { |
| 58 | + "description": "Sign short ASCII payload", |
| 59 | + "parameters": { |
| 60 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 61 | + "network_id": 1, |
| 62 | + "protocol_magic": 764824073, |
| 63 | + "payload": "54657374", |
| 64 | + "hash_payload": false, |
| 65 | + "display_ascii": true |
| 66 | + }, |
| 67 | + "result": { |
| 68 | + "signature": "2201b8e7fa9ea919935e06ecc3e845433855066acaaf61cb8e624a2eb7139b73a9d126e7ee04548fff06ac933bd5419fc78c5aebee9b536cbee1481b52ec3e03", |
| 69 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "description": "Sign short ASCII payload rendered as hex", |
| 74 | + "parameters": { |
| 75 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 76 | + "network_id": 1, |
| 77 | + "protocol_magic": 764824073, |
| 78 | + "payload": "54657374", |
| 79 | + "hash_payload": false, |
| 80 | + "display_ascii": false |
| 81 | + }, |
| 82 | + "result": { |
| 83 | + "signature": "2201b8e7fa9ea919935e06ecc3e845433855066acaaf61cb8e624a2eb7139b73a9d126e7ee04548fff06ac933bd5419fc78c5aebee9b536cbee1481b52ec3e03", |
| 84 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 85 | + } |
| 86 | + }, |
| 87 | + { |
| 88 | + "description": "Sign empty payload", |
| 89 | + "parameters": { |
| 90 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 91 | + "network_id": 1, |
| 92 | + "protocol_magic": 764824073, |
| 93 | + "payload": "", |
| 94 | + "hash_payload": false, |
| 95 | + "display_ascii": false |
| 96 | + }, |
| 97 | + "result": { |
| 98 | + "signature": "b09177a06cb2deba7ada89fec96fc4380e746f67c6b16a9ef9ae6b7cbbe941fdad8a8a573b809cd88db296b91b476c436033a29d86a63959e270047e47cd5d0d", |
| 99 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 100 | + } |
| 101 | + }, |
| 102 | + { |
| 103 | + "description": "Sign empty payload hash", |
| 104 | + "parameters": { |
| 105 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 106 | + "network_id": 1, |
| 107 | + "protocol_magic": 764824073, |
| 108 | + "payload": "", |
| 109 | + "hash_payload": true, |
| 110 | + "display_ascii": false |
| 111 | + }, |
| 112 | + "result": { |
| 113 | + "signature": "a2503039a8ec620e05d9e4345339d61cd11480fbfcc75ea1a10789751a7c5f46ba06786eb1719da62db76c20313ad3445839b8117abac206cc4bd63ea623fc07", |
| 114 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 115 | + } |
| 116 | + }, |
| 117 | + { |
| 118 | + "description": "Sign long ASCII payload hash", |
| 119 | + "parameters": { |
| 120 | + "signing_path": "m/1852'/1815'/4'/0/0", |
| 121 | + "network_id": 1, |
| 122 | + "protocol_magic": 764824073, |
| 123 | + "payload": "566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765566572794c6f6e674d657373616765", |
| 124 | + "hash_payload": true, |
| 125 | + "display_ascii": true |
| 126 | + }, |
| 127 | + "result": { |
| 128 | + "signature": "92331e75bb4c3208317ac422f2fc9d8b9b09d3f81cc487edaa7028d262553e5691532fb166a40e45eb2e4addd4280ff7e07bd4249e964d969e91555317b05f08", |
| 129 | + "address": "d9553a4de9c7ad8532abdb1d0a7f425b8007d25c9f1edcf0b5f5c3ba" |
| 130 | + } |
| 131 | + } |
| 132 | + ] |
| 133 | +} |
0 commit comments