Commit Graph

14 Commits

Author SHA1 Message Date
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