chore(core): replace `lt_port_unix_tcp` by `libtropic_port_posix_tcp` for emulator
What changed, and why it matters
This commit is a routine build-system and source-code rename. It swaps one emulator-only networking helper from the libtropic library for an equivalent one with a different filename. There is no functional change visible in the diff and no security relevance is stated.
No security action required. Treat as normal maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change replaces the emulator-specific libtropic TCP HAL implementation lt_port_unix_tcp with libtropic_port_posix_tcp. Only include paths, a struct type name (lt_dev_unix_tcp_t → lt_dev_posix_tcp_t), and the compiled source file path are updated. The code remains inside #ifdef TREZOR_EMULATOR, so it affects only the emulator build, not real hardware. No logic changes are present in the diff.
Changed components
Trezor Safe 3 / T3W1 emulator buildlibtropic HAL TCP port layerInspect captured patch +4 / −4
diff --git a/core/embed/sec/tropic/tropic.c b/core/embed/sec/tropic/tropic.c
index 364af5df0..9ced22082 100644
--- a/core/embed/sec/tropic/tropic.c
+++ b/core/embed/sec/tropic/tropic.c
@@ -31,9 +31,9 @@
#ifdef TREZOR_EMULATOR
#include <arpa/inet.h>
-#include <libtropic/hal/port/unix/lt_port_unix_tcp.h>
+#include <libtropic/hal/posix/tcp/libtropic_port_posix_tcp.h>
#include <time.h>
-#endif
+#endif // TREZOR_EMULATOR
#include "ed25519-donna/ed25519.h"
#include "memzero.h"
@@ -119,7 +119,7 @@ typedef struct {
// session_started is true.
lt_handle_t handle;
#ifdef TREZOR_EMULATOR
- lt_dev_unix_tcp_t device;
+ lt_dev_posix_tcp_t device;
#endif
} tropic_driver_t;
diff --git a/core/site_scons/models/T3W1/emulator.py b/core/site_scons/models/T3W1/emulator.py
index f181d8934..cc34ac307 100644
--- a/core/site_scons/models/T3W1/emulator.py
+++ b/core/site_scons/models/T3W1/emulator.py
@@ -73,7 +73,7 @@ def configure(
"vendor/libtropic/cal/trezor_crypto/lt_trezor_crypto_hmac_sha256.c",
"vendor/libtropic/cal/trezor_crypto/lt_trezor_crypto_sha256.c",
"vendor/libtropic/cal/trezor_crypto/lt_trezor_crypto_x25519.c",
- "vendor/libtropic/hal/port/unix/lt_port_unix_tcp.c",
+ "vendor/libtropic/hal/posix/tcp/libtropic_port_posix_tcp.c",
"vendor/libtropic/src/libtropic.c",
"vendor/libtropic/src/libtropic_l2.c",
"vendor/libtropic/src/libtropic_l3.c",
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.