Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update torus.js and custom auth #11

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link

@ieow ieow Jun 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need disable this eslint rule ?

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
Loading