Commit Graph

23 Commits

Author SHA1 Message Date
Szymon Lesisz
3dd5d01ce5 chore(transport): remove obsolete THP code 2026-02-03 16:00:58 +01:00
Szymon Lesisz
8aae408c06 chore(protocol): add host_static_key to ThpCredentials 2025-12-30 15:15:20 +01:00
Szymon Lesisz
4c3f7116d0 chore(protocol): return protocol-v2 messageType as number 2025-12-10 12:10:47 +01:00
Szymon Lesisz
c149719480 chore(protocol): validate control byte (magic) in protocol v2 decode 2025-12-09 16:17:05 +01:00
Marek Polak
424182b171 test(protocol): adjust unit tests 2025-12-04 10:25:44 +01:00
Szymon Lesisz
a43bdb2945 refactor(protocol): encode ThpAck **only** from ThpState 2025-11-24 18:12:18 +01:00
Szymon Lesisz
10c54bd35d refactor(protocol): THP getControlBit returns both ack and sequence bits 2025-11-24 18:12:18 +01:00
Szymon Lesisz
37cd1c6ba1 Revert "fix(transport): allow skipping ThpAck from device"
This reverts commit 118327a6ba.
2025-11-13 17:08:02 +01:00
Marek Polak
118327a6ba fix(transport): allow skipping ThpAck from device 2025-11-11 15:04:47 +01:00
karliatto
70f0b76f2e feat(protocol): trezor-push-notification decode 2025-09-26 12:38:54 +02:00
Szymon Lesisz
30e20f7096 fix(protocol): ignore unexpected chunks in ThpAck after send 2025-08-21 17:29:12 +02:00
Szymon Lesisz
2d26b5c928 feat(protocol): add THP pairing messages and state 2025-08-18 16:01:21 +02:00
Szymon Lesisz
f16730bebb feat(protocol): add THP pairing cryptography
Functions used by THP pairing workflow
2025-08-18 16:01:21 +02:00
Szymon Lesisz
b893516894 chore(protocol): rename getChunkHeader to getHeaders and return [header, chunkHeader] 2025-06-04 13:42:30 +02:00
Szymon Lesisz
b3056f54d2 feat(protocol): add THP cryptography
Co-authored-by: Ondřej Vejpustek <ondrej.vejpustek@satoshilabs.com>

following: https://github.com/trezor/trezor-firmware/pull/3435
2025-05-26 09:49:51 +02:00
Szymon Lesisz
b33b491b40 feat(protocol): add THP encoding/decoding logic
- only one message exchange is supported ThpCreateChannelRequest > ThpCreateChannelResponse
- without cryptography module. will be added in the next commit
2025-05-23 14:52:42 +02:00
Szymon Lesisz
7ff4f19571 feat(protocol): add protocol-v2 2025-03-10 12:12:57 +01:00
Szymon Lesisz
2f445ba734 feat(protocol): separate chunking from encoding 2024-04-19 08:52:36 +02:00
Szymon Lesisz
ae3211ab6a feat(protocol): encode/decode messageType as string
possible values: messageId (number) or messageName (string)
2024-04-15 14:21:24 +02:00
Szymon Lesisz
1db2916fed chore(protocol): rename decode response fields
- `typeId` => `messageType`
- `buffer` => `payload`
2024-04-15 14:21:24 +02:00
Szymon Lesisz
9b2f9def05 chore: remove bytebuffer dependency 2023-12-13 14:06:56 +01:00
Szymon Lesisz
b4f08409cb feat(transport): unify protocol encode/decode functions 2023-12-12 06:45:44 +01:00
Szymon Lesisz
5073f49215 tests(protocols): add unit tests for @trezor/protocols package 2023-12-12 06:45:44 +01:00