@@ -162,15 +162,19 @@ static void flipbip39_scene_1_model_init(FlipBip39Scene1Model* const model, cons
162
162
const size_t buflen = 128 ;
163
163
char buf [buflen + 1 ];
164
164
//HDNode node;
165
- uint32_t fingerprint ;
165
+ uint32_t fingerprint = 0 ;
166
+ hdnode_serialize_private (root , fingerprint , version_private , buf , buflen );
167
+ char * xprvroot = malloc (22 + 1 );
168
+ strncpy (xprvroot , buf , 22 );
169
+ model -> seed2 = xprvroot ;
166
170
// external chain
167
171
for (int chain = 0 ; chain < 2 ; chain ++ ) {
168
172
//QTableWidget *list = chain == 0 ? ui->listAddress : ui->listChange;
169
173
HDNode * node = root ;
170
- hdnode_private_ckd (node , 44 | 0x80000000 );
171
- hdnode_private_ckd (node , 0 | 0x80000000 ); // bitcoin
172
- hdnode_private_ckd (node , (arg1 - 1 ) | 0x80000000 );
174
+ //hdnode_private_ckd_prime(node, 44);
175
+ //hdnode_private_ckd_prime(node, 0 | 0x80000000); // bitcoin
173
176
fingerprint = hdnode_fingerprint (node );
177
+ hdnode_private_ckd_prime (node , (arg1 - 1 ));
174
178
hdnode_serialize_private (node , fingerprint , version_private , buf , buflen );
175
179
char * xprv = malloc (22 + 1 );
176
180
strncpy (xprv , buf , 22 );
0 commit comments