Skip to content

Commit 3c7d91a

Browse files
author
himanshu
committed
update torus.js and custom auth
1 parent a9b4f10 commit 3c7d91a

File tree

8 files changed

+321
-76
lines changed

8 files changed

+321
-76
lines changed

package-lock.json

Lines changed: 255 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/common-types/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
"@babel/runtime": "7.x"
4444
},
4545
"dependencies": {
46-
"@toruslabs/customauth": "^16.0.6",
46+
"@toruslabs/customauth": "^18.1.0",
4747
"@toruslabs/eccrypto": "^4.0.0",
4848
"@toruslabs/rss-client": "^1.5.0",
49-
"@toruslabs/torus.js": "^11.0.6",
49+
"@toruslabs/torus.js": "^12.3.6",
5050
"bn.js": "^5.2.1",
5151
"elliptic": "^6.5.4",
5252
"serialize-error": "^8.1.0",

packages/common-types/src/baseTypes/aggregateTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export type IAuthMetadatas = IAuthMetadata[];
249249
export type ShareStores = ShareStore[];
250250
export type IMessageMetadatas = IMessageMetadata[];
251251
export type LocalTransitionShares = BN[];
252-
export type LocalTransitionData = [...IAuthMetadatas, ...ShareStores, ...IMessageMetadatas];
252+
export type LocalTransitionData = (IAuthMetadata | IMessageMetadata | ShareStore)[];
253253
export type LocalMetadataTransitions = [LocalTransitionShares, LocalTransitionData];
254254

255255
export interface ITKeyApi {

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@toruslabs/eccrypto": "^4.0.0",
3939
"@toruslabs/http-helpers": "^5.0.0",
4040
"@toruslabs/rss-client": "^1.5.0",
41-
"@toruslabs/torus.js": "^11.0.6",
41+
"@toruslabs/torus.js": "^12.3.6",
4242
"bn.js": "^5.2.1",
4343
"elliptic": "^6.5.4",
4444
"json-stable-stringify": "^1.0.2"

packages/default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@tkey-mpc/seed-phrase": "^9.1.0",
5151
"@toruslabs/eccrypto": "^4.0.0",
5252
"@toruslabs/http-helpers": "^5.0.0",
53-
"@toruslabs/torus.js": "^11.0.6",
53+
"@toruslabs/torus.js": "^12.3.6",
5454
"jsrsasign": "^10.6.1",
5555
"web3-utils": "^1.8.1"
5656
},

packages/default/test/helpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ecCurve, getPubKeyPoint, Point } from "@tkey-mpc/common-types";
22
import ServiceProviderBase from "@tkey-mpc/service-provider-base";
33
import ServiceProviderTorus from "@tkey-mpc/service-provider-torus";
44
import TorusStorageLayer, { MockStorageLayer } from "@tkey-mpc/storage-layer-torus";
5+
// eslint-disable-next-line import/no-extraneous-dependencies
56
import { generatePrivate } from "@toruslabs/eccrypto";
67
import { generatePolynomial, getLagrangeCoeffs, getShare, hexPoint, MockServer, postEndpoint } from "@toruslabs/rss-client";
78
// eslint-disable-next-line import/no-extraneous-dependencies

packages/default/test/shared.js

Lines changed: 58 additions & 0 deletions
Large diffs are not rendered by default.

packages/service-provider-torus/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"dependencies": {
4141
"@tkey-mpc/common-types": "^9.1.0",
4242
"@tkey-mpc/service-provider-base": "^9.1.0",
43-
"@toruslabs/customauth": "^16.0.6",
44-
"@toruslabs/torus.js": "^11.0.6",
43+
"@toruslabs/customauth": "^18.1.0",
44+
"@toruslabs/torus.js": "^12.3.6",
4545
"bn.js": "^5.2.1",
4646
"elliptic": "^6.5.4"
4747
},

0 commit comments

Comments
 (0)