From 6669da0add4a3bb60d607f88186205f4fcbcb583 Mon Sep 17 00:00:00 2001 From: Andrii Fedyk Date: Thu, 13 Nov 2025 19:24:42 +0100 Subject: [PATCH] Add test to auth --- src/rpc.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/rpc.ts b/src/rpc.ts index 6c16db1..c1dd8a5 100644 --- a/src/rpc.ts +++ b/src/rpc.ts @@ -11,11 +11,24 @@ import { Transport } from "./transport.js"; import { Deserializer } from "./deserializer.js"; import { ModeOfOperationIGE } from "./aes.js"; import { pqPrimeFactorization } from "./pg.js"; -import { SHA1, SHA256, bigIntToBytes, bytesIsEqual, bytesToBigInt, bytesToBytesRaw, concatBytes, getRandomBytes, getRandomInt, intsToLong, longToBytesRaw, xorBytes } from "./common.js" import { Methods, Updates } from "./mtptoto-types.js"; import { RPCError } from "./errors.js"; import { Storage } from "./storage.js"; import { LAYER } from "./config.js"; +import { + SHA1, + SHA256, + bigIntToBytes, + bytesIsEqual, + bytesToBigInt, + bytesToBytesRaw, + concatBytes, + getRandomBytes, + getRandomInt, + intsToLong, + longToBytesRaw, + xorBytes +} from "./common.js" export interface Message { method: string