@dynamic-labs-wallet/core 0.0.16 → 0.0.18
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.
- package/index.cjs.js +8 -7
- package/index.esm.js +8 -7
- package/package.json +9 -2
- package/src/mpc/constants.d.ts +0 -10
- package/src/mpc/constants.d.ts.map +1 -1
- package/src/mpc/index.d.ts +1 -0
- package/src/mpc/index.d.ts.map +1 -1
- package/src/mpc/utils.d.ts +12 -0
- package/src/mpc/utils.d.ts.map +1 -0
package/index.cjs.js
CHANGED
|
@@ -91,13 +91,6 @@ const MPC_CHAIN_CONFIG = {
|
|
|
91
91
|
signingAlgorithm: "ED25519"
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
const getMPCChainConfig = (chainName)=>{
|
|
95
|
-
const chainConfig = MPC_CHAIN_CONFIG[chainName];
|
|
96
|
-
if (!chainConfig) {
|
|
97
|
-
throw new Error(`Chain ${chainName} not supported`);
|
|
98
|
-
}
|
|
99
|
-
return chainConfig;
|
|
100
|
-
};
|
|
101
94
|
var ThresholdSignatureScheme = /*#__PURE__*/ function(ThresholdSignatureScheme) {
|
|
102
95
|
ThresholdSignatureScheme["TWO_OF_TWO"] = "TWO_OF_TWO";
|
|
103
96
|
ThresholdSignatureScheme["TWO_OF_THREE"] = "TWO_OF_THREE";
|
|
@@ -129,6 +122,14 @@ var CreateRoomPartiesOptions = /*#__PURE__*/ function(CreateRoomPartiesOptions)
|
|
|
129
122
|
CreateRoomPartiesOptions["FULL"] = "full";
|
|
130
123
|
return CreateRoomPartiesOptions;
|
|
131
124
|
}({});
|
|
125
|
+
|
|
126
|
+
const getMPCChainConfig = (chainName)=>{
|
|
127
|
+
const chainConfig = MPC_CHAIN_CONFIG[chainName];
|
|
128
|
+
if (!chainConfig) {
|
|
129
|
+
throw new Error(`Chain ${chainName} not supported`);
|
|
130
|
+
}
|
|
131
|
+
return chainConfig;
|
|
132
|
+
};
|
|
132
133
|
const getTSSConfig = (thresholdSignatureScheme)=>{
|
|
133
134
|
const { threshold, numberOfParties } = MPC_CONFIG[thresholdSignatureScheme];
|
|
134
135
|
return {
|
package/index.esm.js
CHANGED
|
@@ -89,13 +89,6 @@ const MPC_CHAIN_CONFIG = {
|
|
|
89
89
|
signingAlgorithm: "ED25519"
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
const getMPCChainConfig = (chainName)=>{
|
|
93
|
-
const chainConfig = MPC_CHAIN_CONFIG[chainName];
|
|
94
|
-
if (!chainConfig) {
|
|
95
|
-
throw new Error(`Chain ${chainName} not supported`);
|
|
96
|
-
}
|
|
97
|
-
return chainConfig;
|
|
98
|
-
};
|
|
99
92
|
var ThresholdSignatureScheme = /*#__PURE__*/ function(ThresholdSignatureScheme) {
|
|
100
93
|
ThresholdSignatureScheme["TWO_OF_TWO"] = "TWO_OF_TWO";
|
|
101
94
|
ThresholdSignatureScheme["TWO_OF_THREE"] = "TWO_OF_THREE";
|
|
@@ -127,6 +120,14 @@ var CreateRoomPartiesOptions = /*#__PURE__*/ function(CreateRoomPartiesOptions)
|
|
|
127
120
|
CreateRoomPartiesOptions["FULL"] = "full";
|
|
128
121
|
return CreateRoomPartiesOptions;
|
|
129
122
|
}({});
|
|
123
|
+
|
|
124
|
+
const getMPCChainConfig = (chainName)=>{
|
|
125
|
+
const chainConfig = MPC_CHAIN_CONFIG[chainName];
|
|
126
|
+
if (!chainConfig) {
|
|
127
|
+
throw new Error(`Chain ${chainName} not supported`);
|
|
128
|
+
}
|
|
129
|
+
return chainConfig;
|
|
130
|
+
};
|
|
130
131
|
const getTSSConfig = (thresholdSignatureScheme)=>{
|
|
131
132
|
const { threshold, numberOfParties } = MPC_CONFIG[thresholdSignatureScheme];
|
|
132
133
|
return {
|
package/package.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"axios": "1.7.9"
|
|
6
6
|
},
|
|
7
|
+
"files": [
|
|
8
|
+
"*",
|
|
9
|
+
"node_modules/**/*"
|
|
10
|
+
],
|
|
7
11
|
"nx": {
|
|
8
12
|
"sourceRoot": "packages/core/src",
|
|
9
13
|
"projectType": "library",
|
|
10
|
-
"name": "core"
|
|
14
|
+
"name": "core",
|
|
15
|
+
"targets": {
|
|
16
|
+
"build": {}
|
|
17
|
+
}
|
|
11
18
|
},
|
|
12
19
|
"type": "module",
|
|
13
20
|
"main": "./index.cjs.js",
|
package/src/mpc/constants.d.ts
CHANGED
|
@@ -12,10 +12,6 @@ export declare const MPC_CHAIN_CONFIG: Record<string, {
|
|
|
12
12
|
derivationPath: number[];
|
|
13
13
|
signingAlgorithm: SigningAlgorithm;
|
|
14
14
|
}>;
|
|
15
|
-
export declare const getMPCChainConfig: (chainName: string) => {
|
|
16
|
-
derivationPath: number[];
|
|
17
|
-
signingAlgorithm: SigningAlgorithm;
|
|
18
|
-
};
|
|
19
15
|
export declare enum ThresholdSignatureScheme {
|
|
20
16
|
TWO_OF_TWO = "TWO_OF_TWO",
|
|
21
17
|
TWO_OF_THREE = "TWO_OF_THREE",
|
|
@@ -45,10 +41,4 @@ export declare enum CreateRoomPartiesOptions {
|
|
|
45
41
|
THRESHOLD = "threshold",
|
|
46
42
|
FULL = "full"
|
|
47
43
|
}
|
|
48
|
-
export declare const getTSSConfig: (thresholdSignatureScheme: ThresholdSignatureScheme) => {
|
|
49
|
-
threshold: number;
|
|
50
|
-
numberOfParties: number;
|
|
51
|
-
};
|
|
52
|
-
export declare const getClientThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
|
|
53
|
-
export declare const getDynamicServerThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
|
|
54
44
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,wBAAwB;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CA2BjE,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,wBAAwB;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CA2BjE,CAAC;AAEF,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AAEF,oBAAY,wBAAwB;IAClC,SAAS,cAAc;IACvB,IAAI,SAAS;CACd"}
|
package/src/mpc/index.d.ts
CHANGED
package/src/mpc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThresholdSignatureScheme } from './constants';
|
|
2
|
+
export declare const getMPCChainConfig: (chainName: string) => {
|
|
3
|
+
derivationPath: number[];
|
|
4
|
+
signingAlgorithm: import("./constants").SigningAlgorithm;
|
|
5
|
+
};
|
|
6
|
+
export declare const getTSSConfig: (thresholdSignatureScheme: ThresholdSignatureScheme) => {
|
|
7
|
+
threshold: number;
|
|
8
|
+
numberOfParties: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const getClientThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
|
|
11
|
+
export declare const getDynamicServerThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
|
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mpc/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,cAAe,MAAM;;;CAMlD,CAAC;AAEF,eAAO,MAAM,YAAY,6BACG,wBAAwB;;;CAInD,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BACH,wBAAwB,WAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BACV,wBAAwB,WAGnD,CAAC"}
|