Skip to content

Perfect Forward Secrecy#1681

Merged
ernado merged 1 commit intogotd:mainfrom
borzovplus:pfs-support
Feb 26, 2026
Merged

Perfect Forward Secrecy#1681
ernado merged 1 commit intogotd:mainfrom
borzovplus:pfs-support

Conversation

@borzovplus
Copy link
Contributor

Perfect Forward Secrecy ready - https://core.telegram.org/api/pfs

To enable PFS mode, the EnablePFS flag has been added to the telegram client options.
Backward compatibility.

The connection of accounts by phone and by token has been tested, the connection of already authorized accounts has been tested

Codex generating.

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 56.57371% with 218 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.59%. Comparing base (fb9acfb) to head (60b1ec3).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
mtproto/bind.go 39.25% 82 Missing ⚠️
mtproto/connect.go 37.66% 45 Missing and 3 partials ⚠️
crypto/bind.go 60.00% 16 Missing and 14 partials ⚠️
telegram/pool.go 0.00% 16 Missing ⚠️
exchange/server_flow.go 20.00% 10 Missing and 2 partials ⚠️
telegram/pfs.go 74.28% 8 Missing and 1 partial ⚠️
mtproto/pfs.go 68.00% 6 Missing and 2 partials ⚠️
mtproto/conn.go 61.11% 4 Missing and 3 partials ⚠️
telegram/session.go 60.00% 2 Missing and 2 partials ⚠️
telegram/internal/manager/conn.go 90.90% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1681      +/-   ##
==========================================
- Coverage   68.89%   68.59%   -0.30%     
==========================================
  Files         447      452       +5     
  Lines       18461    18910     +449     
==========================================
+ Hits        12718    12971     +253     
- Misses       4792     4975     +183     
- Partials      951      964      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ernado ernado merged commit c17350e into gotd:main Feb 26, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants