Skip to content

You can reduce the size of TDLib #3684

Description

@isopen

Hello

I’ve been experimenting a bit with Telegram’s MTProto and RPC. I think that in a modern implementation, we could completely do away with OpenSSL. It’s an overly heavy dependency that causes a lot of complications - not just during the build process.

In my solution, I implemented the Crypton module for this purpose. I added the implementation of all the necessary algorithms to it, and the solution became simpler.
https://github.com/isopen/ton-ai-core/tree/master/packages/core/src/crypton

Next, Crypton makes use of MTProto, the TL language, and transport layers in the other modules as needed. As a result, my telegram-agent successfully connects to Telegram servers and completes authorization.
https://github.com/isopen/ton-ai-core/tree/master/agents/telegram-agent

Why don't you want to support your crypto layer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions