Qt An E2EE post-quantum messenger core in Rust (10k connections on 124MB RAM
Recorded: Oct. 12, 2026, 2:09 a.m.
| Original | Summarized |
GitHub - moral666/QT: Núcleo E2EE (X3DH + PQXDH + Double Ratchet + Sealed Sender) implementado em Rust — protótipo técnico de protocolos de mensageria segura · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert moral666QTRepository navigationCodeIssuesPull requestsActionsProjectsSecurity and qualityInsightsMore items QTPublicNotificationsYou must be signed in to change notification settingsFork0 (0)Star2 (2)You must be signed in to star a repositoryAboutNúcleo E2EE (X3DH + PQXDH + Double Ratchet + Sealed Sender) implementado em Rust — protótipo técnico de protocolos de mensageria seguraResourcesReadmeAGPL-3.0, License licenses foundContributingContributingSecurity policySecurity policyActivityStars2 starsWatchers0 watchingForks0 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History20 Commits20 CommitsFolders and filesNameNameLast commit messageLast commit date.github/workflows.github/workflows clicli corecore demodemo docsdocs ffiffi serverserver storagestorage transporttransport .gitignore.gitignore CHANGELOG.mdCHANGELOG.md CONTRIBUTING.mdCONTRIBUTING.md Cargo.lockCargo.lock Cargo.tomlCargo.toml LICENSELICENSE LICENSE-COMMERCIAL.mdLICENSE-COMMERCIAL.md QT-COMMERCIAL-LICENSE-AGREEMENT.mdQT-COMMERCIAL-LICENSE-AGREEMENT.md README.en.mdREADME.en.md README.mdREADME.md ROADMAP.mdROADMAP.md SECURITY.mdSECURITY.md View all filesRepository files navigationREADMEContributingAGPL-3.0 licenseLicenseSecurityMore itemsQT Peça core/ transport/ server/ storage/ cli/ ffi/ App Android O que falta, sem rodeios Um ecrã de conversa a sério na app (hoje é só um botão de demonstração) Experimenta tu mesmo cargo run -p qt_cli --bin messenger -- identity --db bob.sqlite --passphrase "..." cargo run -p qt_cli --bin messenger -- identity --db alice.sqlite --passphrase "..." cargo run -p qt_cli --bin messenger -- receive --db bob.sqlite --passphrase "..." --server ws://127.0.0.1:9443 Cada peça tem os seus próprios testes, guardados ao lado do código (tests/). A app Android existe e já correu num dispositivo real (ver tabela de estado acima), mas por agora vive só na máquina onde foi feita, sem repositório próprio nem publicação — trata-a como uma prova de conceito técnica, não como algo que já podes instalar. Quando for publicada, deve ganhar o seu próprio repositório, que usa este aqui como dependência (é o mesmo princípio de separação explicado em CONTRIBUTING.md). docs/protocol-spec.md explica, secção a secção, exatamente como cada peça funciona por dentro — que algoritmos, que decisões, e o que ainda falta em cada uma. Licença Open source: GNU Affero General Public License, versão 3 ou posterior (AGPL-3.0-or-later). A licença comercial permite definir contratualmente termos específicos de utilização, integração, distribuição, deployment, suporte, manutenção e outros direitos comerciais. CONTRIBUTING.md explica como propor mudanças, e tem regras extra (razoáveis) para quem mexer em código de criptografia AboutNúcleo E2EE (X3DH + PQXDH + Double Ratchet + Sealed Sender) implementado em Rust — protótipo técnico de protocolos de mensageria seguraResourcesReadmeAGPL-3.0, License licenses foundContributingContributingSecurity policySecurity policyActivityStars2 starsWatchers0 watchingForks0 forksReport repositoryReleasesPackagesContributorsLanguages Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
This project details the implementation of a technical prototype for an End-to-End Encryption (E2EE) messaging protocol, incorporating sophisticated cryptographic techniques such as X3DH, Post-Quantum X3DH (PQXDH), Double Ratchet, and Sealed Sender, all realized in the Rust programming language. The fundamental motivation for this work stems from a desire to build communication infrastructure resistant to backdoors by design, specifically addressing concerns related to metadata collection and privacy regulations such as the European Union's Chat Control. The core philosophy of the project is to move beyond theoretical concepts by implementing and rigorously testing every component of the protocol in working code. The overall system aims to provide identity based on cryptographic keys rather than auxiliary personal data like phone numbers, alongside end-to-end encrypted communication that is invulnerable to server interception. The project demonstrates that while the underlying cryptographic foundations and transport layers are sound, the fully operational, real-world deployment layer still requires further development. The repository is structured modularly, with distinct components responsible for different functional aspects of the messaging system. The core module, designated core/, handles the establishment of secure sessions using the X3DH and its post-quantum variant (PQXDH), along with the continuous ciphering mechanism provided by the Double Ratchet algorithm, mirroring the structure used in protocols like Signal. This foundational layer has been extensively tested, including numerous automated tests designed to detect potential failures. The transport layer, located in transport/, manages the protection of network connections using the Noise Protocol layered over WebSockets, which was tested with real WebSocket connections rather than simulations. The server component, server/, functions as the message delivery mechanism, designed to route messages without ever having the capability to read the message content or identify the senders. This server has been validated to survive forceful shutdowns, confirming its integrity. Furthermore, the storage module, storage/, is implemented to securely store both user identities and encrypted conversations, with tests confirming that corrupted input does not compromise stored data. The project includes a command-line interface (cli/) for offline experimentation, which was tested with separate processes communicating securely, and a foreign function interface (ffi/) that serves as a bridge to integrate the core logic with application development in environments like Kotlin (Android), Swift (iOS), and Python. Proof-of-concept validation was achieved by running the system on a real Android emulator, confirming the functional interoperability of the components. Despite the successful implementation and testing of these core pieces, the project acknowledges that it is currently a technical prototype rather than a production-ready application. Key limitations identified include the absence of a full user interface suitable for actual use, the lack of a publicly accessible internet-facing server, and the need for external security audits before deployment. Future development priorities include establishing federation across multiple independent servers to enhance resilience against centralized control, integrating device-specific security features like Keystore or Secure Enclave for data protection, and obtaining an independent security audit. The project is open source under the GNU Affero General Public License version 3 or later, supplemented by a commercial license option for organizations requiring different contractual terms. The provided documentation, including the protocol specification and threat model, offers detailed insight into the inner workings of the system and the security context against which the implementation was tested. |