@@ -459,7 +459,9 @@ static bool get_user_verification(void) {
459
459
snprintf (operation_display ,
460
460
sizeof (operation_display ),
461
461
ui_text_stellar_operation ,
462
- decoded_txn -> operation_type == STELLAR_OPERATION_CREATE_ACCOUNT ? "CREATE_ACCOUNT" : "PAYMENT" );
462
+ decoded_txn -> operation_type == STELLAR_OPERATION_CREATE_ACCOUNT
463
+ ? "CREATE_ACCOUNT"
464
+ : "PAYMENT" );
463
465
if (!core_confirmation (operation_display , stellar_send_error )) {
464
466
return false;
465
467
}
@@ -578,7 +580,8 @@ static int create_signature_base(const char *network_passphrase,
578
580
} else if (tx -> memo_type == STELLAR_MEMO_ID ) {
579
581
write_uint64_be (signature_base + offset , tx -> memo .id );
580
582
offset += 8 ;
581
- } else if (tx -> memo_type == STELLAR_MEMO_HASH || tx -> memo_type == STELLAR_MEMO_RETURN ) {
583
+ } else if (tx -> memo_type == STELLAR_MEMO_HASH ||
584
+ tx -> memo_type == STELLAR_MEMO_RETURN ) {
582
585
memcpy (signature_base + offset , tx -> memo .hash , 32 );
583
586
offset += 32 ;
584
587
}
@@ -599,15 +602,16 @@ static int create_signature_base(const char *network_passphrase,
599
602
// Destination (type + pubkey)
600
603
write_uint32_be (signature_base + offset , STELLAR_KEY_TYPE_ED25519 );
601
604
offset += 4 ;
602
- memcpy (signature_base + offset , payment -> destination , STELLAR_PUBKEY_RAW_SIZE );
605
+ memcpy (
606
+ signature_base + offset , payment -> destination , STELLAR_PUBKEY_RAW_SIZE );
603
607
offset += STELLAR_PUBKEY_RAW_SIZE ;
604
-
608
+
605
609
// Asset (native) - only for PAYMENT operations
606
610
if (tx -> operation_type == STELLAR_OPERATION_PAYMENT ) {
607
611
write_uint32_be (signature_base + offset , STELLAR_ASSET_TYPE_NATIVE );
608
612
offset += 4 ;
609
613
}
610
-
614
+
611
615
// Amount
612
616
write_uint64_be (signature_base + offset , payment -> amount );
613
617
offset += 8 ;
@@ -665,13 +669,15 @@ static bool sign_txn(der_sig_t *der_signature) {
665
669
666
670
set_app_flow_status (STELLAR_SIGN_TXN_STATUS_SEED_GENERATED );
667
671
668
- // Create HDNode from seed and derive private key using derive_hdnode_from_path
672
+ // Create HDNode from seed and derive private key using
673
+ // derive_hdnode_from_path
669
674
HDNode node = {0 };
670
- if (!derive_hdnode_from_path (stellar_txn_context -> init_info .derivation_path ,
671
- stellar_txn_context -> init_info .derivation_path_count ,
672
- ED25519_NAME ,
673
- seed ,
674
- & node )) {
675
+ if (!derive_hdnode_from_path (
676
+ stellar_txn_context -> init_info .derivation_path ,
677
+ stellar_txn_context -> init_info .derivation_path_count ,
678
+ ED25519_NAME ,
679
+ seed ,
680
+ & node )) {
675
681
stellar_send_error (ERROR_COMMON_ERROR_UNKNOWN_ERROR_TAG , 1 );
676
682
memzero (seed , sizeof (seed ));
677
683
memzero (& node , sizeof (HDNode ));
0 commit comments