Skip to content

Feat: protocol-thp encode/decode #19073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2025
Merged

Conversation

szymonlesisz
Copy link
Contributor

@szymonlesisz szymonlesisz commented May 21, 2025

Description

add THP encoding/decoding logic

  • only one message exchange is supported ThpCreateChannelRequest > ThpCreateChannelResponse
  • encoding/decoding ThpAck and ThpError
  • crc32 module: create crc32 for encoded message + validate crc32 for decoded message
  • cherry-picked without cryptography module. cryptography will be added in the next commit (see TODO: add-crypto)

🔍🖥️ Suite web test results: View in Currents

🔍🖥️ Suite desktop test results: View in Currents

@szymonlesisz szymonlesisz added connect Connect API related (ie. fee calculation) no-project This label is used to specify that PR doesn't need to be added to a project cherry-pick🍒 labels May 21, 2025
@szymonlesisz szymonlesisz force-pushed the feat/protocol-thp-encode branch from c6926e6 to 7199712 Compare May 22, 2025 08:57
@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@szymonlesisz szymonlesisz force-pushed the feat/protocol-thp-encode branch from 7199712 to 0c4beec Compare May 22, 2025 12:18
@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

1 similar comment
@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Desktop e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

Copy link
Contributor

@marekrjpolak marekrjpolak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Desktop e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@trezor-bot
Copy link

trezor-bot bot commented May 22, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@szymonlesisz
Copy link
Contributor Author

Lastminute change as promised,
i've rebased bt-thp branch over this and found some inconsistency in naming and missing utility

@szymonlesisz
Copy link
Contributor Author

/rebase

Copy link

- only one message exchange is supported ThpCreateChannelRequest > ThpCreateChannelResponse
- without cryptography module. will be added in the next commit
@trezor-bot trezor-bot bot force-pushed the feat/protocol-thp-encode branch from 7f5111d to 98d210d Compare May 23, 2025 08:09
@trezor-bot
Copy link

trezor-bot bot commented May 23, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@trezor-bot
Copy link

trezor-bot bot commented May 23, 2025

✅ Previously successful run of [Test] PR Suite Desktop e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

@szymonlesisz szymonlesisz merged commit b33b491 into develop May 23, 2025
24 checks passed
@szymonlesisz szymonlesisz deleted the feat/protocol-thp-encode branch May 23, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick🍒 connect Connect API related (ie. fee calculation) no-project This label is used to specify that PR doesn't need to be added to a project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants