瀏覽代碼

Add RSA keys for test servers

painor 3 年之前
父節點
當前提交
db2e7eaa4f
共有 5 個文件被更改,包括 24 次插入12 次删除
  1. 1 1
      gramjs/Version.ts
  2. 19 7
      gramjs/crypto/RSA.ts
  3. 2 2
      package-lock.json
  4. 1 1
      package.json
  5. 1 1
      publish_npm.js

+ 1 - 1
gramjs/Version.ts

@@ -1 +1 @@
-export const version = "1.10.8";
+export const version = "1.10.10";

+ 19 - 7
gramjs/crypto/RSA.ts

@@ -9,14 +9,26 @@ import {
 
 const PUBLIC_KEYS = [
     {
-        fingerprint: bigInt("-3414540481677951611"),
+        fingerprint: bigInt('-3414540481677951611'),
         n: bigInt(
-            "2937959817066933702298617714945612856538843112005886376816255642404751219133084745514657634448776440866" +
-                "1701890505066208632169112269581063774293102577308490531282748465986139880977280302242772832972539403531" +
-                "3160108704012876427630091361567343395380424193887227773571344877461690935390938502512438971889287359033" +
-                "8945177273024525306296338410881284207988753897636046529094613963869149149606209957083647645485599631919" +
-                "2747663615955633778034897140982517446405334423701359108810182097749467210509584293428076654573384828809" +
-                "574217079944388301239431309115013843331317877374435868468779972014486325557807783825502498215169806323"
+            '2937959817066933702298617714945612856538843112005886376816255642404751219133084745514657634448776440866'
+            + '1701890505066208632169112269581063774293102577308490531282748465986139880977280302242772832972539403531'
+            + '3160108704012876427630091361567343395380424193887227773571344877461690935390938502512438971889287359033'
+            + '8945177273024525306296338410881284207988753897636046529094613963869149149606209957083647645485599631919'
+            + '2747663615955633778034897140982517446405334423701359108810182097749467210509584293428076654573384828809'
+            + '574217079944388301239431309115013843331317877374435868468779972014486325557807783825502498215169806323',
+        ),
+        e: 65537,
+    },
+    {
+        fingerprint: bigInt('-5595554452916591101'),
+        n: bigInt(
+            '2534288944884041556497168959071347320689884775908477905258202659454602246385394058588521595116849196570822' +
+            '26493991806038180742006204637761354248846321625124031637930839216416315647409595294193595958529411668489405859523' +
+            '37613333022396096584117954892216031229237302943701877588456738335398602461675225081791820393153757504952636234951' +
+            '32323782003654358104782690612092797248736680529211579223142368426126233039432475078545094258975175539015664775146' +
+            '07193514399690599495696153028090507215003302390050778898553239175099482557220816446894421272976054225797071426466' +
+            '60768825302832201908302295573257427896031830742328565032949',
         ),
         e: 65537,
     },

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "telegram",
-  "version": "1.10.8",
+  "version": "1.10.10",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "telegram",
-      "version": "1.10.8",
+      "version": "1.10.10",
       "license": "MIT",
       "dependencies": {
         "@cryptography/aes": "^0.1.1",

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "telegram",
-  "version": "1.10.8",
+  "version": "1.10.10",
   "description": "NodeJS/Browser MTProto API Telegram client library,",
   "main": "index.js",
   "types": "index.d.ts",

+ 1 - 1
publish_npm.js

@@ -13,7 +13,7 @@ tsc.on("close", (code) => {
     fs.copyFileSync("gramjs/tl/static/schema.tl", "dist/tl/static/schema.tl");
     fs.copyFileSync("gramjs/tl/api.d.ts", "dist/tl/api.d.ts");
     fs.copyFileSync("gramjs/define.d.ts", "dist/define.d.ts");
-    const npm_publish = exec("npm publish --next", { cwd: "dist" });
+    const npm_publish = exec("npm publish --tag next", { cwd: "dist" });
     npm_publish.stdout.on("data", function (data) {
       console.log(data.toString());
     });