Skip to content

Commit

Permalink
Merge pull request #11 from tkey/fix/update-torus.js
Browse files Browse the repository at this point in the history
update torus.js and custom auth
  • Loading branch information
himanshuchawla009 authored Jun 3, 2024
2 parents a9b4f10 + 3c7d91a commit 834eb81
Show file tree
Hide file tree
Showing 8 changed files with 321 additions and 76 deletions.
324 changes: 255 additions & 69 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/common-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"@babel/runtime": "7.x"
},
"dependencies": {
"@toruslabs/customauth": "^16.0.6",
"@toruslabs/customauth": "^18.1.0",
"@toruslabs/eccrypto": "^4.0.0",
"@toruslabs/rss-client": "^1.5.0",
"@toruslabs/torus.js": "^11.0.6",
"@toruslabs/torus.js": "^12.3.6",
"bn.js": "^5.2.1",
"elliptic": "^6.5.4",
"serialize-error": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/common-types/src/baseTypes/aggregateTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export type IAuthMetadatas = IAuthMetadata[];
export type ShareStores = ShareStore[];
export type IMessageMetadatas = IMessageMetadata[];
export type LocalTransitionShares = BN[];
export type LocalTransitionData = [...IAuthMetadatas, ...ShareStores, ...IMessageMetadatas];
export type LocalTransitionData = (IAuthMetadata | IMessageMetadata | ShareStore)[];
export type LocalMetadataTransitions = [LocalTransitionShares, LocalTransitionData];

export interface ITKeyApi {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@toruslabs/eccrypto": "^4.0.0",
"@toruslabs/http-helpers": "^5.0.0",
"@toruslabs/rss-client": "^1.5.0",
"@toruslabs/torus.js": "^11.0.6",
"@toruslabs/torus.js": "^12.3.6",
"bn.js": "^5.2.1",
"elliptic": "^6.5.4",
"json-stable-stringify": "^1.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@tkey-mpc/seed-phrase": "^9.1.0",
"@toruslabs/eccrypto": "^4.0.0",
"@toruslabs/http-helpers": "^5.0.0",
"@toruslabs/torus.js": "^11.0.6",
"@toruslabs/torus.js": "^12.3.6",
"jsrsasign": "^10.6.1",
"web3-utils": "^1.8.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/default/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ecCurve, getPubKeyPoint, Point } from "@tkey-mpc/common-types";
import ServiceProviderBase from "@tkey-mpc/service-provider-base";
import ServiceProviderTorus from "@tkey-mpc/service-provider-torus";
import TorusStorageLayer, { MockStorageLayer } from "@tkey-mpc/storage-layer-torus";
// eslint-disable-next-line import/no-extraneous-dependencies
import { generatePrivate } from "@toruslabs/eccrypto";
import { generatePolynomial, getLagrangeCoeffs, getShare, hexPoint, MockServer, postEndpoint } from "@toruslabs/rss-client";
// eslint-disable-next-line import/no-extraneous-dependencies
Expand Down
58 changes: 58 additions & 0 deletions packages/default/test/shared.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/service-provider-torus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"dependencies": {
"@tkey-mpc/common-types": "^9.1.0",
"@tkey-mpc/service-provider-base": "^9.1.0",
"@toruslabs/customauth": "^16.0.6",
"@toruslabs/torus.js": "^11.0.6",
"@toruslabs/customauth": "^18.1.0",
"@toruslabs/torus.js": "^12.3.6",
"bn.js": "^5.2.1",
"elliptic": "^6.5.4"
},
Expand Down

0 comments on commit 834eb81

Please sign in to comment.