|
26 | 26 | #include <stdint.h>
|
27 | 27 | #include <stdio.h>
|
28 | 28 |
|
29 |
| -static uint8_t _mock_seed[32] = { |
30 |
| - 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, |
31 |
| - 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, |
32 |
| -}; |
33 |
| - |
34 |
| -// sudden tenant fault inject concert weather maid people chunk youth stumble grit |
35 |
| -static uint8_t _mock_bip39_seed[64] = |
36 |
| - "\x5a\x11\x5b\xcd\xbe\x0f\xe1\x70\x0e\x60\x95\x74\xf3\x57\xb0\x8d\xca\x37\x15\xb0\x35\xe6\xc7" |
37 |
| - "\x76\x77\x0a\xc7\xa0\xab\x2e\x2f\xea\x84\x0b\xa2\x76\x35\x06\xfa\x9c\x39\xde\x4d\xef\x27\xf6" |
38 |
| - "\xf8\xeb\xce\x36\x37\x02\xe9\x83\xe5\x49\xbd\x7d\xef\x14\xa0\x31\xbf\xdd"; |
39 |
| - |
40 | 29 | // We mock all called functions to make sure they are actually called. For some,
|
41 | 30 | // the real function is called as it's easier to check all function input/output
|
42 | 31 | // this way.
|
@@ -95,58 +84,6 @@ typedef struct {
|
95 | 84 | const char* out;
|
96 | 85 | } address_testcase_t;
|
97 | 86 |
|
98 |
| -static xpub_testcase_t _xpub_tests[] = { |
99 |
| - { |
100 |
| - .coin = BTCCoin_BTC, |
101 |
| - .xpub_type = BTCPubRequest_XPubType_TPUB, |
102 |
| - .out = "tpubDCYSHq3Y2yqZYw2yxYFczWpbbr9yqLXK5V9hADr7czfhvSbVBZ2Up9ouUeJU4ibNvVuHBZywbVtt4Xw" |
103 |
| - "37wAgwWhy5LQsVk5w441qoaEytzZ", |
104 |
| - }, |
105 |
| - { |
106 |
| - .coin = BTCCoin_BTC, |
107 |
| - .xpub_type = BTCPubRequest_XPubType_VPUB, |
108 |
| - .out = "vpub5YWHAFt22Lo9aYTtqdhHNRJDvnmRxi3FhdWxEt1CX5A44xJKc1rGRapoCCJWYQLJKK8m53Gx95MjbnD" |
109 |
| - "JHgVRTbtUH4GiePniveJ9GMSBipu", |
110 |
| - }, |
111 |
| - { |
112 |
| - .coin = BTCCoin_BTC, |
113 |
| - .xpub_type = BTCPubRequest_XPubType_UPUB, |
114 |
| - .out = "upub5Dg1rbD6sfFfjFGn1GufALCikpcz263knWzjTV7K94nB1rV6MMghoXAfAzLvYVgNug1xKZgPgR1BiVb" |
115 |
| - "jZz5QfNCsQiaJ4UyEevEVsqHSu6Q", |
116 |
| - }, |
117 |
| - |
118 |
| - { |
119 |
| - .coin = BTCCoin_BTC, |
120 |
| - .xpub_type = BTCPubRequest_XPubType_XPUB, |
121 |
| - .out = "xpub6CAombDrKht7H8r8WMGXnbVEGj4Kqx2FXrZPofnyH5upB9vn7LBPfi95EcDgYDe98bNNZzU54Q4qNMS" |
122 |
| - "Rj5KT45Fg1jfZpDRhU6RS3WjHkqg", |
123 |
| - }, |
124 |
| - { |
125 |
| - .coin = BTCCoin_BTC, |
126 |
| - .xpub_type = BTCPubRequest_XPubType_YPUB, |
127 |
| - .out = "ypub6X155FtmUPRb8S3FLi49zgajShCmna1kSy5cb4grf6HhEFk1MzLxHmoDFpBGY8J4YEVBKU4dX4RPFe3" |
128 |
| - "zSmjTrJwGt5MzQ8FBjpV5S9fvhh3", |
129 |
| - }, |
130 |
| - { |
131 |
| - .coin = BTCCoin_BTC, |
132 |
| - .xpub_type = BTCPubRequest_XPubType_ZPUB, |
133 |
| - .out = "zpub6qqLNvZgd4y4yjENB4qnCmgEcfMDjC1FN5bqNTak36faHMZEceWWuqTMH28rY2wywsbz4wfByimw8vf" |
134 |
| - "ZAU9UeYcskR4Qz34g1YYipg8DatS", |
135 |
| - }, |
136 |
| - { |
137 |
| - .coin = BTCCoin_BTC, |
138 |
| - .xpub_type = BTCPubRequest_XPubType_CAPITAL_VPUB, |
139 |
| - .out = "Vpub5jQNHVcTbJMX17dGnJAGCVe2eaohB4ir1uAdA9GjtqzTh8sENREYWhgizuFz6qZCYnCjwdH52HkEiwq" |
140 |
| - "4aueNc6197XP83oFipNa1rGqkiFZ", |
141 |
| - }, |
142 |
| - { |
143 |
| - .coin = BTCCoin_BTC, |
144 |
| - .xpub_type = BTCPubRequest_XPubType_CAPITAL_ZPUB, |
145 |
| - .out = "Zpub72jRWAJ8C2XSQJPk7jJm2r23LTPUwYgqgMFWHirHQsVyuY89P3tnzxKH5j6L6UAtBLfxwXfJrwASG6H" |
146 |
| - "KThJRo2jYatApPSXfuGpbQf7Q5V3", |
147 |
| - }, |
148 |
| -}; |
149 |
| - |
150 | 87 | static address_testcase_t _address_tests[] = {
|
151 | 88 | {
|
152 | 89 | .coin = BTCCoin_BTC,
|
|
0 commit comments