@mtkruto/node 0.0.801 → 0.0.821

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/esm/_dnt.test_shims.d.ts +10 -0
  2. package/esm/client/client_plain.js +4 -3
  3. package/esm/connection/connection_web_socket.js +3 -1
  4. package/{types → esm}/mod.d.ts +1 -0
  5. package/esm/mod.js +1 -0
  6. package/esm/tl/0_tl_raw_reader_test.d.ts +1 -0
  7. package/esm/tl/0_tl_raw_writer_test.d.ts +1 -0
  8. package/{types → esm}/tl/1_tl_object.d.ts +5 -2
  9. package/esm/tl/1_tl_object.js +14 -7
  10. package/esm/tl/1_tl_object_test.d.ts +1 -0
  11. package/esm/tl/2_types_test.d.ts +1 -0
  12. package/esm/tl/3_deserialize_test.d.ts +1 -0
  13. package/esm/tl/3_functions_test.d.ts +1 -0
  14. package/esm/tl/3_tl_reader.js +1 -1
  15. package/esm/tl/3_tl_writer.js +2 -1
  16. package/esm/tl/5_message.js +2 -2
  17. package/esm/utilities/0_bigint_test.d.ts +1 -0
  18. package/esm/utilities/0_buffer_test.d.ts +1 -0
  19. package/esm/utilities/1_message.js +2 -2
  20. package/esm/utilities/1_password_test.d.ts +1 -0
  21. package/package.json +5 -12
  22. package/script/_dnt.shims.d.ts +10 -0
  23. package/script/_dnt.test_shims.d.ts +10 -0
  24. package/script/client/client.d.ts +50 -0
  25. package/script/client/client_abstract.d.ts +16 -0
  26. package/script/client/client_plain.d.ts +9 -0
  27. package/script/client/client_plain.js +4 -3
  28. package/script/connection/connection.d.ts +7 -0
  29. package/script/connection/connection_web_socket.d.ts +13 -0
  30. package/script/connection/connection_web_socket.js +3 -1
  31. package/script/constants.d.ts +12 -0
  32. package/script/deps/deno.land/std@0.186.0/fmt/colors.d.ts +270 -0
  33. package/script/deps/deno.land/std@0.186.0/testing/_diff.d.ts +26 -0
  34. package/script/deps/deno.land/std@0.186.0/testing/_format.d.ts +1 -0
  35. package/script/deps/deno.land/std@0.186.0/testing/asserts.d.ts +284 -0
  36. package/script/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +15 -0
  37. package/script/deps/deno.land/x/tgcrypto@0.1.3/mod.d.ts +47 -0
  38. package/script/deps/deno.land/x/tgcrypto@0.1.3/tgcrypto.d.ts +2 -0
  39. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/gzip/gzip.d.ts +16 -0
  40. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/utils/uint8.d.ts +1 -0
  41. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/deflate.d.ts +29 -0
  42. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/inflate.d.ts +23 -0
  43. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/mod.d.ts +2 -0
  44. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/adler32.d.ts +1 -0
  45. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/crc32.d.ts +2 -0
  46. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/deflate.d.ts +78 -0
  47. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/gzheader.d.ts +12 -0
  48. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inffast.d.ts +1 -0
  49. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inflate.d.ts +47 -0
  50. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inftrees.d.ts +1 -0
  51. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/messages.d.ts +12 -0
  52. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/status.d.ts +30 -0
  53. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/trees.d.ts +5 -0
  54. package/script/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/zstream.d.ts +14 -0
  55. package/script/deps.d.ts +4 -0
  56. package/script/mod.d.ts +24 -0
  57. package/script/mod.js +3 -1
  58. package/script/session/session.d.ts +12 -0
  59. package/script/session/session_local_storage.d.ts +7 -0
  60. package/script/session/session_memory.d.ts +5 -0
  61. package/script/tl/0_tl_raw_reader.d.ts +13 -0
  62. package/script/tl/0_tl_raw_reader_test.d.ts +1 -0
  63. package/script/tl/0_tl_raw_writer.d.ts +13 -0
  64. package/script/tl/0_tl_raw_writer_test.d.ts +1 -0
  65. package/script/tl/1_tl_object.d.ts +40 -0
  66. package/script/tl/1_tl_object.js +15 -8
  67. package/script/tl/1_tl_object_test.d.ts +1 -0
  68. package/script/tl/2_types.d.ts +14815 -0
  69. package/script/tl/2_types_test.d.ts +1 -0
  70. package/script/tl/3_deserialize.d.ts +3 -0
  71. package/script/tl/3_deserialize_test.d.ts +1 -0
  72. package/script/tl/3_functions.d.ts +6122 -0
  73. package/script/tl/3_functions_test.d.ts +1 -0
  74. package/script/tl/3_tl_reader.d.ts +6 -0
  75. package/script/tl/3_tl_reader.js +2 -2
  76. package/script/tl/3_tl_writer.d.ts +5 -0
  77. package/script/tl/3_tl_writer.js +2 -1
  78. package/script/tl/4_rpc_result.d.ts +8 -0
  79. package/script/tl/5_message.d.ts +11 -0
  80. package/script/tl/5_message.js +1 -1
  81. package/script/tl/6_message_container.d.ts +9 -0
  82. package/script/transport/transport.d.ts +15 -0
  83. package/script/transport/transport_abridged.d.ts +11 -0
  84. package/script/transport/transport_intermediate.d.ts +11 -0
  85. package/script/transport/transport_provider.d.ts +17 -0
  86. package/script/types.d.ts +1 -0
  87. package/script/utilities/0_bigint.d.ts +5 -0
  88. package/script/utilities/0_bigint_test.d.ts +1 -0
  89. package/script/utilities/0_buffer.d.ts +2 -0
  90. package/script/utilities/0_buffer_test.d.ts +1 -0
  91. package/script/utilities/0_crypto.d.ts +8 -0
  92. package/script/utilities/0_hash.d.ts +2 -0
  93. package/script/utilities/1_auth.d.ts +1 -0
  94. package/script/utilities/1_message.d.ts +10 -0
  95. package/script/utilities/1_message.js +1 -1
  96. package/script/utilities/1_obfuscation.d.ts +6 -0
  97. package/script/utilities/1_password.d.ts +11 -0
  98. package/script/utilities/1_password_test.d.ts +1 -0
  99. /package/{types → esm}/_dnt.shims.d.ts +0 -0
  100. /package/{types → esm}/client/client.d.ts +0 -0
  101. /package/{types → esm}/client/client_abstract.d.ts +0 -0
  102. /package/{types → esm}/client/client_plain.d.ts +0 -0
  103. /package/{types → esm}/connection/connection.d.ts +0 -0
  104. /package/{types → esm}/connection/connection_web_socket.d.ts +0 -0
  105. /package/{types → esm}/constants.d.ts +0 -0
  106. /package/{types → esm}/deps/deno.land/std@0.186.0/fmt/colors.d.ts +0 -0
  107. /package/{types → esm}/deps/deno.land/std@0.186.0/testing/_diff.d.ts +0 -0
  108. /package/{types → esm}/deps/deno.land/std@0.186.0/testing/_format.d.ts +0 -0
  109. /package/{types → esm}/deps/deno.land/std@0.186.0/testing/asserts.d.ts +0 -0
  110. /package/{types → esm}/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +0 -0
  111. /package/{types → esm}/deps/deno.land/x/tgcrypto@0.1.3/mod.d.ts +0 -0
  112. /package/{types → esm}/deps/deno.land/x/tgcrypto@0.1.3/tgcrypto.d.ts +0 -0
  113. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/gzip/gzip.d.ts +0 -0
  114. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/utils/uint8.d.ts +0 -0
  115. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/deflate.d.ts +0 -0
  116. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/inflate.d.ts +0 -0
  117. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/mod.d.ts +0 -0
  118. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/adler32.d.ts +0 -0
  119. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/crc32.d.ts +0 -0
  120. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/deflate.d.ts +0 -0
  121. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/gzheader.d.ts +0 -0
  122. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inffast.d.ts +0 -0
  123. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inflate.d.ts +0 -0
  124. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/inftrees.d.ts +0 -0
  125. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/messages.d.ts +0 -0
  126. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/status.d.ts +0 -0
  127. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/trees.d.ts +0 -0
  128. /package/{types → esm}/deps/raw.githubusercontent.com/MTKruto/compress/master/zlib/zlib/zstream.d.ts +0 -0
  129. /package/{types → esm}/deps.d.ts +0 -0
  130. /package/{types → esm}/session/session.d.ts +0 -0
  131. /package/{types → esm}/session/session_local_storage.d.ts +0 -0
  132. /package/{types → esm}/session/session_memory.d.ts +0 -0
  133. /package/{types → esm}/tl/0_tl_raw_reader.d.ts +0 -0
  134. /package/{types → esm}/tl/0_tl_raw_writer.d.ts +0 -0
  135. /package/{types → esm}/tl/2_types.d.ts +0 -0
  136. /package/{types/tl/3_tl_object_deserializer.d.ts → esm/tl/3_deserialize.d.ts} +0 -0
  137. /package/esm/tl/{3_tl_object_deserializer.js → 3_deserialize.js} +0 -0
  138. /package/{types → esm}/tl/3_functions.d.ts +0 -0
  139. /package/{types → esm}/tl/3_tl_reader.d.ts +0 -0
  140. /package/{types → esm}/tl/3_tl_writer.d.ts +0 -0
  141. /package/{types → esm}/tl/4_rpc_result.d.ts +0 -0
  142. /package/{types → esm}/tl/5_message.d.ts +0 -0
  143. /package/{types → esm}/tl/6_message_container.d.ts +0 -0
  144. /package/{types → esm}/transport/transport.d.ts +0 -0
  145. /package/{types → esm}/transport/transport_abridged.d.ts +0 -0
  146. /package/{types → esm}/transport/transport_intermediate.d.ts +0 -0
  147. /package/{types → esm}/transport/transport_provider.d.ts +0 -0
  148. /package/{types → esm}/types.d.ts +0 -0
  149. /package/{types → esm}/utilities/0_bigint.d.ts +0 -0
  150. /package/{types → esm}/utilities/0_buffer.d.ts +0 -0
  151. /package/{types → esm}/utilities/0_crypto.d.ts +0 -0
  152. /package/{types → esm}/utilities/0_hash.d.ts +0 -0
  153. /package/{types → esm}/utilities/1_auth.d.ts +0 -0
  154. /package/{types → esm}/utilities/1_message.d.ts +0 -0
  155. /package/{types → esm}/utilities/1_obfuscation.d.ts +0 -0
  156. /package/{types → esm}/utilities/1_password.d.ts +0 -0
  157. /package/script/tl/{3_tl_object_deserializer.js → 3_deserialize.js} +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { TLRawReader } from "./0_tl_raw_reader.js";
2
+ import { TLObject } from "./1_tl_object.js";
3
+ export type ReadObject = TLObject | Array<ReadObject | TLObject>;
4
+ export declare class TLReader extends TLRawReader {
5
+ readObject(id?: number): ReadObject;
6
+ }
@@ -4,7 +4,7 @@ exports.TLReader = void 0;
4
4
  const _0_tl_raw_reader_js_1 = require("./0_tl_raw_reader.js");
5
5
  const _1_tl_object_js_1 = require("./1_tl_object.js");
6
6
  const _2_types_js_1 = require("./2_types.js");
7
- const _3_tl_object_deserializer_js_1 = require("./3_tl_object_deserializer.js");
7
+ const _3_deserialize_js_1 = require("./3_deserialize.js");
8
8
  class TLReader extends _0_tl_raw_reader_js_1.TLRawReader {
9
9
  readObject(id) {
10
10
  if (!id) {
@@ -20,7 +20,7 @@ class TLReader extends _0_tl_raw_reader_js_1.TLRawReader {
20
20
  }
21
21
  const constructor = _2_types_js_1.map.get(id);
22
22
  if (constructor) {
23
- return (0, _3_tl_object_deserializer_js_1.deserialize)(this, constructor[_1_tl_object_js_1.paramDesc], constructor);
23
+ return (0, _3_deserialize_js_1.deserialize)(this, constructor[_1_tl_object_js_1.paramDesc], constructor);
24
24
  }
25
25
  throw new Error(`Unknown constructor ${id.toString(16)}`);
26
26
  }
@@ -0,0 +1,5 @@
1
+ import { TLRawWriter } from "./0_tl_raw_writer.js";
2
+ import { MaybeVectorTLObject } from "./1_tl_object.js";
3
+ export declare class TLWriter extends TLRawWriter {
4
+ writeObject(object: MaybeVectorTLObject): this;
5
+ }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TLWriter = void 0;
4
4
  const constants_js_1 = require("../constants.js");
5
5
  const _0_tl_raw_writer_js_1 = require("./0_tl_raw_writer.js");
6
+ const _1_tl_object_js_1 = require("./1_tl_object.js");
6
7
  class TLWriter extends _0_tl_raw_writer_js_1.TLRawWriter {
7
8
  writeObject(object) {
8
9
  if (Array.isArray(object)) {
@@ -13,7 +14,7 @@ class TLWriter extends _0_tl_raw_writer_js_1.TLRawWriter {
13
14
  }
14
15
  }
15
16
  else {
16
- this.write(object.serialize());
17
+ this.write(object[_1_tl_object_js_1.serialize]());
17
18
  }
18
19
  return this;
19
20
  }
@@ -0,0 +1,8 @@
1
+ import { id, MaybeVectorTLObject } from "./1_tl_object.js";
2
+ export declare class RPCResult {
3
+ readonly messageId: bigint;
4
+ readonly result: MaybeVectorTLObject;
5
+ static get [id](): number;
6
+ constructor(messageId: bigint, result: MaybeVectorTLObject);
7
+ static deserialize(buffer: Uint8Array): RPCResult;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { MaybeVectorTLObject } from "./1_tl_object.js";
2
+ import { TLReader } from "./3_tl_reader.js";
3
+ import { RPCResult } from "./4_rpc_result.js";
4
+ export declare class Message {
5
+ readonly id: bigint;
6
+ readonly seqNo: number;
7
+ readonly body: MaybeVectorTLObject | RPCResult;
8
+ constructor(id: bigint, seqNo: number, body: MaybeVectorTLObject | RPCResult);
9
+ serialize(): Uint8Array;
10
+ static deserialize(reader: TLReader): Message;
11
+ }
@@ -16,7 +16,7 @@ function calculateLength(object) {
16
16
  }
17
17
  }
18
18
  else {
19
- length += object.serialize().length;
19
+ length += object[_1_tl_object_js_1.serialize]().length;
20
20
  }
21
21
  return length;
22
22
  }
@@ -0,0 +1,9 @@
1
+ import { id } from "./1_tl_object.js";
2
+ import { Message } from "./5_message.js";
3
+ export declare class MessageContainer {
4
+ messages: Message[];
5
+ static get [id](): number;
6
+ constructor(messages: Message[]);
7
+ serialize(): Uint8Array;
8
+ static deserialize(buffer: Uint8Array): MessageContainer;
9
+ }
@@ -0,0 +1,15 @@
1
+ import { MaybePromise } from "../types.js";
2
+ import { CTR } from "../utilities/0_crypto.js";
3
+ export declare abstract class Transport {
4
+ protected initialized: boolean;
5
+ protected obfuscationParameters: {
6
+ encryptionCTR: CTR;
7
+ decryptionCTR: CTR;
8
+ } | null;
9
+ protected encrypt(buffer: Uint8Array): Uint8Array;
10
+ protected decrypt(buffer: Uint8Array): Uint8Array;
11
+ abstract initialize(): MaybePromise<void>;
12
+ abstract receive(): MaybePromise<Uint8Array>;
13
+ abstract send(buffer: Uint8Array): MaybePromise<void>;
14
+ abstract deinitialize(): MaybePromise<void>;
15
+ }
@@ -0,0 +1,11 @@
1
+ import { Connection } from "../connection/connection.js";
2
+ import { Transport } from "./transport.js";
3
+ export declare class TransportAbridged extends Transport implements Transport {
4
+ private readonly connection;
5
+ private readonly obfuscated;
6
+ constructor(connection: Connection, obfuscated?: boolean);
7
+ initialize(): Promise<void>;
8
+ receive(): Promise<Uint8Array>;
9
+ send(buffer: Uint8Array): Promise<void>;
10
+ deinitialize(): void;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { Connection } from "../connection/connection.js";
2
+ import { Transport } from "./transport.js";
3
+ export declare class TransportIntermediate extends Transport implements Transport {
4
+ private readonly connection;
5
+ private readonly obfuscated;
6
+ constructor(connection: Connection, obfuscated?: boolean);
7
+ initialize(): Promise<void>;
8
+ receive(): Promise<Uint8Array>;
9
+ send(buffer: Uint8Array): Promise<void>;
10
+ deinitialize(): void;
11
+ }
@@ -0,0 +1,17 @@
1
+ import { Connection } from "../connection/connection.js";
2
+ import { Transport } from "./transport.js";
3
+ export type DC = "1" | "2" | "3" | "4" | "5" | "1-test" | "2-test" | "3-test";
4
+ export interface TransportProviderParams {
5
+ dc?: DC;
6
+ cdn: boolean;
7
+ }
8
+ export type TransportProvider = (params: TransportProviderParams) => {
9
+ connection: Connection;
10
+ transport: Transport;
11
+ dcId: number;
12
+ };
13
+ export interface TransportProviderCreatorParams {
14
+ initialDc: DC;
15
+ }
16
+ export type TransportProviderCreator = (params: TransportProviderCreatorParams) => TransportProvider;
17
+ export declare const defaultTransportProvider: TransportProviderCreator;
@@ -0,0 +1 @@
1
+ export type MaybePromise<T> = T | Promise<T>;
@@ -0,0 +1,5 @@
1
+ export declare function modExp(a: bigint, b: bigint, n: bigint): bigint;
2
+ export declare function mod(n: bigint, m: bigint): bigint;
3
+ export declare function bigIntFromBuffer(buffer: Uint8Array, little?: boolean, signed?: boolean): bigint;
4
+ export declare function getRandomBigInt(byteLength: number, little?: boolean, signed?: boolean): bigint;
5
+ export declare function getRandomId(): bigint;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function concat(...buffers: [Uint8Array, Uint8Array, ...Uint8Array[]]): Uint8Array;
2
+ export declare function bufferFromBigInt(bigIntVar: bigint | number, bytesNumber: number, little?: boolean, signed?: boolean): Uint8Array;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare class CTR {
2
+ readonly key: Uint8Array;
3
+ iv: Uint8Array;
4
+ state: Uint8Array;
5
+ constructor(key: Uint8Array, iv: Uint8Array);
6
+ encrypt(data: Uint8Array): Uint8Array;
7
+ decrypt(data: Uint8Array): Uint8Array;
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare function sha256(payload: Uint8Array): Promise<Uint8Array>;
2
+ export declare function sha1(payload: Uint8Array): Promise<Uint8Array>;
@@ -0,0 +1 @@
1
+ export declare function rsaPad(data: Uint8Array, [serverKey, exponent]: [bigint, bigint]): Promise<Uint8Array>;
@@ -0,0 +1,10 @@
1
+ import { Message } from "../tl/5_message.js";
2
+ import { MessageContainer } from "../tl/6_message_container.js";
3
+ export declare function getMessageId(): bigint;
4
+ export declare function packUnencryptedMessage(data: Uint8Array): Uint8Array;
5
+ export declare function unpackUnencryptedMessage(buffer: Uint8Array): {
6
+ messageId: bigint;
7
+ message: Uint8Array;
8
+ };
9
+ export declare function encryptMessage(message: Message, authKey: Uint8Array, authKeyId: bigint, salt: bigint, sessionId: bigint): Promise<Uint8Array>;
10
+ export declare function decryptMessage(buffer: Uint8Array, authKey: Uint8Array, authKeyId: bigint, _sessionId: bigint): Promise<Message | MessageContainer>;
@@ -40,7 +40,7 @@ function unpackUnencryptedMessage(buffer) {
40
40
  }
41
41
  exports.unpackUnencryptedMessage = unpackUnencryptedMessage;
42
42
  async function encryptMessage(message, authKey, authKeyId, salt, sessionId) {
43
- const encoded = message.body.serialize();
43
+ const encoded = message.body[_1_tl_object_js_1.serialize]();
44
44
  const payloadWriter = new _0_tl_raw_writer_js_1.TLRawWriter();
45
45
  payloadWriter.writeInt64(salt);
46
46
  payloadWriter.writeInt64(sessionId);
@@ -0,0 +1,6 @@
1
+ import { Connection } from "../connection/connection.js";
2
+ import { CTR } from "./0_crypto.js";
3
+ export declare function getObfuscationParameters(protocol: number, connection: Connection): Promise<{
4
+ encryptionCTR: CTR;
5
+ decryptionCTR: CTR;
6
+ }>;
@@ -0,0 +1,11 @@
1
+ import * as types from "../tl/2_types.js";
2
+ import { sha256 } from "./0_hash.js";
3
+ export declare function isSafePrime(primeBytes: Uint8Array, g: number): boolean;
4
+ export declare const h: typeof sha256;
5
+ export declare const sh: (data: Uint8Array, salt: Uint8Array) => Promise<Uint8Array>;
6
+ export declare const ph1: (password: Uint8Array, salt1: Uint8Array, salt2: Uint8Array) => Promise<Uint8Array>;
7
+ export declare function pbkdf2(password: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array>;
8
+ export declare const ph2: (password: Uint8Array, salt1: Uint8Array, salt2: Uint8Array) => Promise<Uint8Array>;
9
+ export declare function isGoodModExpFirst(modexp: bigint, prime: bigint): boolean;
10
+ export declare function pad(bigint: number | bigint | Uint8Array): Uint8Array;
11
+ export declare function checkPassword(password: Uint8Array, ap: types.AccountPassword): Promise<types.InputCheckPasswordSRP>;
@@ -0,0 +1 @@
1
+ export {};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes