Commit Graph

135 Commits

Author SHA1 Message Date
Szymon Lesisz
3dd5d01ce5 chore(transport): remove obsolete THP code 2026-02-03 16:00:58 +01:00
Szymon Lesisz
729f7ae250 refactor(transport): THP call/send/receive flow
> Co-authored-by: Marek Polak <marek.polak@satoshilabs.com>
2026-02-03 16:00:58 +01:00
vytick
98321960e2 chore: bump tsx version 2026-01-27 18:29:02 +01:00
Tomas Martykan
ab01b2d889 npm-prerelease: set all @trezor/connect dependencies to 10.0.0-alpha.1 2026-01-27 12:44:17 +01:00
karliatto
7559f035c3 chore(npm): remove prepublish.js
We are already running replace-imports.sh from build:libs that is run
before publishing to NPM so callingit when "prepublish" is a redundancy,
besides prepublish.js was only building for cjs and now we are going to
have cjs and esm.
2026-01-22 15:35:45 +01:00
Tomas Martykan
3d71f2c20a feat(scripts): handle libESM in updateProjectReferences 2026-01-22 12:37:20 +01:00
Vojtěch Tranta
b9266f02f9 fix: update project deps 2026-01-21 16:02:21 +01:00
karliatto
a9e189b9a3 build(repository): Connect publishing ESM
- Adding ESM builds for all the packages that are published on 'npm'.
   - Adding libESM to published files in package.json files
   - Relays only on "exports" section on package.json to define the ways to consume the package, so only modern bundlers would be able to use them, that should not be an issue, since projects are used to be on the latest
   - Using the root tsconfig.libESM
   - Using wildcard for @trezor/utils export so we can import any of the functions directly https://nodejs.org/api/packages.html#subpath-patterns
2026-01-20 16:37:46 +01:00
karliatto
36f6e9692d chore(npm): start publishing source maps
Until now we were explicitly not including source map files in the NPM
releases. Now we will include them.

https://github.com/trezor/trezor-suite/issues/23779
2026-01-05 11:30:44 +01:00
Szymon Lesisz
8aae408c06 chore(protocol): add host_static_key to ThpCredentials 2025-12-30 15:15:20 +01:00
trezor-ci
d4b08fb3c3 npm-release: @trezor/protocol 1.3.0 2025-12-15 16:01:36 +01:00
Szymon Lesisz
fae6a1a62f chore(protocol): use v2 messageType in protocol-thp decode 2025-12-10 12:10:47 +01:00
Szymon Lesisz
4c3f7116d0 chore(protocol): return protocol-v2 messageType as number 2025-12-10 12:10:47 +01:00
Szymon Lesisz
27668ed095 refactor(protocol): use protocol-v2 constants in protocol-thp 2025-12-09 16:17:05 +01:00
Szymon Lesisz
c149719480 chore(protocol): validate control byte (magic) in protocol v2 decode 2025-12-09 16:17:05 +01:00
trezor-ci
ece7e089e4 npm-prerelease: @trezor/protocol 1.3.0-beta.2 2025-12-09 11:51:39 +01:00
Szymon Lesisz
8246ad65a6 refactor(protocol): return unmasked magic from readThpHeader 2025-12-09 10:27:58 +01:00
Jiri Zbytovsky
2128d273f3 refactor(connect): new replace-imports.sh script using babel 2025-12-04 11:55:30 +01:00
Marek Polak
424182b171 test(protocol): adjust unit tests 2025-12-04 10:25:44 +01:00
Marek Polak
d382cbfbe0 fix(protocol): don't throw on malformed push notification 2025-12-04 10:25:44 +01:00
Szymon Lesisz
e61610e32b chore(protocol): export ThpPairingMethod as enum 2025-12-01 12:28:56 +01:00
Szymon Lesisz
780e5327f4 chore(protocol): distinguish DeviceThpState and ThpChannelState 2025-12-01 10:05:45 +01:00
trezor-ci
13e1275ffb npm-prerelease: @trezor/protocol 1.3.0-beta.1 2025-11-25 13:16:18 +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
3d948f28ff feat(protocol): add ThpState sendAckBit and receiveAckBit 2025-11-24 18:12:18 +01:00
Szymon Lesisz
161406226b fix(protobuf): add patch for ThpDeviceProperties.pairing_methods 2025-11-20 16:40:54 +01:00
karliatto
6855b5e74f feat(protocol): power status change notification 2025-11-20 10:48:51 +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
trezor-ci
fd0b9af6a7 npm-prerelease: @trezor/protocol 1.2.11-beta.1 2025-11-12 14:06:21 +01:00
Marek Polak
118327a6ba fix(transport): allow skipping ThpAck from device 2025-11-11 15:04:47 +01:00
trezor-ci
e9c4ddbfce npm-release: @trezor/protocol 1.2.10 2025-10-23 12:39:34 +02:00
trezor-ci
f4d27203cc npm-prerelease: @trezor/protocol 1.2.10-beta.1 2025-10-20 16:33:17 +02:00
Szymon Lesisz
612f40e74d feat(connect): handle channel replacement in THP pairing 2025-10-08 16:24:20 +02:00
Marek Polak
ca048710ce fix(connect): use randomly generated staticKey in first pairing 2025-10-08 15:47:36 +02:00
Marek Polak
26ebf67f63 fix(connect): throw away credentials unaccepted by device 2025-10-08 11:40:08 +02:00
M1nd3r
64eeb31575 chore: add try_to_unlock to handshake hash 2025-10-06 11:20:32 +02:00
Marek Polak
a8aff3e3f8 feat(connect): add tryToUnlock to ThpHandshakeInitRequest 2025-10-06 11:20:32 +02:00
Marek Polak
bdd7b7bb61 refactor(connect): random thp code polish 2025-10-06 11:20:32 +02:00
M1nd3r
b3233240b4 chore(protocol): remove unused ThpInvalidData error type 2025-09-30 10:51:58 +02:00
Jiri Zbytovsky
295afab848 chore(protobuf): update protobuf 2025-09-29 18:01:43 +02:00
karliatto
c2dca4f0bd feat(protocol): exports for trezor push notification 2025-09-27 12:17:39 +02:00
karliatto
70f0b76f2e feat(protocol): trezor-push-notification decode 2025-09-26 12:38:54 +02:00
Tomas Martykan
37a4375b33 fix(protocol-thp): add error to getExpectedHeaders 2025-09-25 10:30:54 +02:00
trezor-ci
e21f2f2efd npm-release: @trezor/protocol 1.2.9 2025-09-18 15:07:11 +02:00
trezor-ci
0c08a0b9de npm-prerelease: @trezor/protocol 1.2.9-beta.1 2025-09-09 12:18:22 +02:00
Szymon Lesisz
d84fe7ae25 fix(protocol): do not reset ThpState.properties 2025-08-28 11:20:29 +02:00
Szymon Lesisz
30e20f7096 fix(protocol): ignore unexpected chunks in ThpAck after send 2025-08-21 17:29:12 +02:00
Szymon Lesisz
dd0312cf0b feat(connect): implement THP passphrase flow 2025-08-18 16:01:21 +02:00
Szymon Lesisz
de01a0302e feat(connect): cancel THP workflow 2025-08-18 16:01:21 +02:00