@@ -80,15 +80,16 @@ typedef struct {
8080 CONFIDENTIAL const char * xpub_extended ;
8181} FlipBipScene1Model ;
8282
83+ // Node for the receive address
8384static CONFIDENTIAL HDNode * s_addr_node = NULL ;
84-
85+ // Generic display text
8586static CONFIDENTIAL char * s_disp_text1 = NULL ;
8687static CONFIDENTIAL char * s_disp_text2 = NULL ;
8788static CONFIDENTIAL char * s_disp_text3 = NULL ;
8889static CONFIDENTIAL char * s_disp_text4 = NULL ;
8990static CONFIDENTIAL char * s_disp_text5 = NULL ;
9091static CONFIDENTIAL char * s_disp_text6 = NULL ;
91-
92+ // Derivation path text
9293static const char * s_derivation_text = TEXT_DEFAULT_DERIV ;
9394//static bool s_busy = false;
9495
@@ -196,11 +197,11 @@ static void
196197 flipbip_scene_1_draw_address (const HDNode * node , uint32_t addr_type , uint32_t addr_index ) {
197198 //s_busy = true;
198199
199- // buffer for address serialization
200+ // Buffer for address serialization
200201 const size_t buflen = 40 ;
201202 char buf [40 + 1 ] = {0 };
202203
203- // use static node for address generation
204+ // Use static node for address generation
204205 memcpy (s_addr_node , node , sizeof (HDNode ));
205206
206207 hdnode_private_ckd (s_addr_node , addr_index );
@@ -233,6 +234,9 @@ static void
233234 flipbip_scene_1_draw_generic (address , 12 );
234235 }
235236
237+ // Clear the address node
238+ memzero (s_addr_node , sizeof (HDNode ));
239+
236240 //s_busy = false;
237241}
238242
0 commit comments