alina sireneva
46414e4e19
All checks were successful
Build and deploy docs / build (push) Successful in 1m27s
Tests / test-deno (push) Successful in 1m50s
Tests / test-bun (push) Successful in 1m59s
Tests / test-node (node22) (push) Successful in 2m12s
Tests / test-node (node20) (push) Successful in 2m16s
Tests / test-node (node18) (push) Successful in 2m18s
Tests / test-web (chromium) (push) Successful in 2m14s
Tests / test-web (firefox) (push) Successful in 2m25s
Build and deploy typedoc / build (push) Successful in 6m16s
Tests / lint (push) Successful in 6m55s
Tests / e2e-deno (push) Successful in 53s
Tests / e2e (push) Successful in 48s
|
||
---|---|---|
.. | ||
lib | ||
src | ||
tests | ||
.gitignore | ||
build.config.js | ||
package.json | ||
README.md | ||
tsconfig.json |
@mtcute/wasm
Highly optimized for size & speed WASM implementation of common algorithms used in Telegram.
Features
- Super lightweight: Only 47 KB raw, 24 KB gzipped
- Blazingly fast: Up to 10x faster than pure JS implementations
- Ready to use: Implements almost all algos used in MTProto:
- AES IGE
- Deflate (zlib compression + gunzip)
- SHA-1, SHA-256
Acknowledgements
- Deflate is implemented through a modified version of libdeflate, MIT license.
- Modified by kamillaova to support WASM and improve bundle size
- AES IGE code is mostly based on tgcrypto, LGPL-3.0 license.
- To comply with LGPL-3.0, the source code of the modified tgcrypto is available here under LGPL-3.0 license.
- SHA1 is based on teeny-sha1
- SHA256 is based on lekkit/sha256