@bitgo/public-types 2.6.2 → 2.7.0
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/dist/src/schema/mpcv2/common/index.d.ts +1 -1
- package/dist/src/schema/mpcv2/common/index.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/index.js +1 -1
- package/dist/src/schema/mpcv2/common/index.js.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.d.ts +1 -5
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js +2 -2
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2P2PMessage.d.ts +2 -10
- package/dist/src/schema/mpcv2/common/mpcv2P2PMessage.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2P2PMessage.js +3 -3
- package/dist/src/schema/mpcv2/common/mpcv2P2PMessage.js.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.d.ts +6 -0
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.d.ts.map +1 -0
- package/dist/src/schema/mpcv2/common/{mpcv2Party.js → mpcv2PartyFromStringOrNumber.js} +25 -8
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.js.map +1 -0
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts +22 -110
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts +11 -55
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts.map +1 -1
- package/dist/src/schema/webhook/webhookType.d.ts +2 -1
- package/dist/src/schema/webhook/webhookType.d.ts.map +1 -1
- package/dist/src/schema/webhook/webhookType.js +1 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2Party.d.ts +0 -13
- package/dist/src/schema/mpcv2/common/mpcv2Party.d.ts.map +0 -1
- package/dist/src/schema/mpcv2/common/mpcv2Party.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC"}
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./mpcv2BroadcastMessage"), exports);
|
18
18
|
__exportStar(require("./mpcv2P2PMessage"), exports);
|
19
|
-
__exportStar(require("./
|
19
|
+
__exportStar(require("./mpcv2PartyFromStringOrNumber"), exports);
|
20
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,oDAAkC;AAClC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,oDAAkC;AAClC,iEAA+C"}
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
export declare const MPCv2BroadcastMessage: t.TypeC<{
|
3
|
-
from:
|
4
|
-
readonly 0: 0;
|
5
|
-
readonly 1: 1;
|
6
|
-
readonly 2: 2;
|
7
|
-
}>;
|
3
|
+
from: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
8
4
|
message: t.StringC;
|
9
5
|
signature: t.StringC;
|
10
6
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2BroadcastMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,qBAAqB
|
1
|
+
{"version":3,"file":"mpcv2BroadcastMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,qBAAqB;;;;EAOjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
@@ -25,9 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.MPCv2BroadcastMessage = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
|
-
const
|
28
|
+
const mpcv2PartyFromStringOrNumber_1 = require("./mpcv2PartyFromStringOrNumber");
|
29
29
|
exports.MPCv2BroadcastMessage = t.type({
|
30
|
-
from:
|
30
|
+
from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
31
31
|
message: t.string,
|
32
32
|
signature: t.string,
|
33
33
|
}, "MPCv2BroadcastMessage");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2BroadcastMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"mpcv2BroadcastMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;AAEjE,QAAA,qBAAqB,GAAG,CAAC,CAAC,IAAI,CACzC;IACE,IAAI,EAAE,2DAA4B;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,EACD,uBAAuB,CACxB,CAAC"}
|
@@ -1,15 +1,7 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
export declare const MPCv2P2PMessage: t.TypeC<{
|
3
|
-
from:
|
4
|
-
|
5
|
-
readonly 1: 1;
|
6
|
-
readonly 2: 2;
|
7
|
-
}>;
|
8
|
-
to: t.KeyofC<{
|
9
|
-
readonly 0: 0;
|
10
|
-
readonly 1: 1;
|
11
|
-
readonly 2: 2;
|
12
|
-
}>;
|
3
|
+
from: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
4
|
+
to: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
13
5
|
encryptedMessage: t.StringC;
|
14
6
|
signature: t.StringC;
|
15
7
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2P2PMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2P2PMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,eAAe
|
1
|
+
{"version":3,"file":"mpcv2P2PMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2P2PMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,eAAe;;;;;EAQ3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
@@ -25,10 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.MPCv2P2PMessage = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
|
-
const
|
28
|
+
const mpcv2PartyFromStringOrNumber_1 = require("./mpcv2PartyFromStringOrNumber");
|
29
29
|
exports.MPCv2P2PMessage = t.type({
|
30
|
-
from:
|
31
|
-
to:
|
30
|
+
from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
31
|
+
to: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
32
32
|
encryptedMessage: t.string,
|
33
33
|
signature: t.string,
|
34
34
|
}, "P2PMessage");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2P2PMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2P2PMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"mpcv2P2PMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2P2PMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;AAEjE,QAAA,eAAe,GAAG,CAAC,CAAC,IAAI,CACnC;IACE,IAAI,EAAE,2DAA4B;IAClC,EAAE,EAAE,2DAA4B;IAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,EACD,YAAY,CACb,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export type MPCv2Party = 0 | 1 | 2;
|
3
|
+
export interface MPCv2PartyFromStringOrNumberC extends t.Type<MPCv2Party, string | number, unknown> {
|
4
|
+
}
|
5
|
+
export declare const MPCv2PartyFromStringOrNumber: MPCv2PartyFromStringOrNumberC;
|
6
|
+
//# sourceMappingURL=mpcv2PartyFromStringOrNumber.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mpcv2PartyFromStringOrNumber.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,MAAM,WAAW,6BACf,SAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC;CAAG;AAEzD,eAAO,MAAM,4BAA4B,EAAE,6BA4BxC,CAAC"}
|
@@ -23,12 +23,29 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.
|
26
|
+
exports.MPCv2PartyFromStringOrNumber = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
-
|
34
|
-
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
const These_1 = require("fp-ts/These");
|
30
|
+
exports.MPCv2PartyFromStringOrNumber = new t.Type("MPCv2PartyFromStringOrNumber", (u) => {
|
31
|
+
return t.number.is(u) && (u === 0 || u === 1 || u === 2);
|
32
|
+
}, (u, c) => {
|
33
|
+
let mpcv2Party = -1;
|
34
|
+
if (io_ts_types_1.NonEmptyString.is(u)) {
|
35
|
+
const val = io_ts_types_1.NumberFromString.validate(u, c);
|
36
|
+
if ((0, These_1.isLeft)(val)) {
|
37
|
+
return t.failure(u, c, "value is not a NumberFromString");
|
38
|
+
}
|
39
|
+
mpcv2Party = val.right;
|
40
|
+
}
|
41
|
+
else if (t.number.is(u)) {
|
42
|
+
mpcv2Party = u;
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
return t.failure(u, c, "value is neither a NumberFromString or a Number");
|
46
|
+
}
|
47
|
+
return mpcv2Party === 0 || mpcv2Party === 1 || mpcv2Party === 2
|
48
|
+
? t.success(mpcv2Party)
|
49
|
+
: t.failure(u, c, `value is ${mpcv2Party} but expected one of [0,1,2]`);
|
50
|
+
}, (a) => a);
|
51
|
+
//# sourceMappingURL=mpcv2PartyFromStringOrNumber.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mpcv2PartyFromStringOrNumber.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+D;AAC/D,uCAAqC;AAOxB,QAAA,4BAA4B,GACvC,IAAI,CAAC,CAAC,IAAI,CACR,8BAA8B,EAC9B,CAAC,CAAU,EAAmB,EAAE;IAC9B,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC,EACD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACP,IAAI,UAAU,GAAW,CAAC,CAAC,CAAC;IAC5B,IAAI,4BAAc,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,8BAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5C,IAAI,IAAA,cAAM,EAAC,GAAG,CAAC,EAAE,CAAC;YAChB,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,iCAAiC,CAAC,CAAC;QAC5D,CAAC;QACD,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC;IACzB,CAAC;SAAM,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1B,UAAU,GAAG,CAAC,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,CAAC,OAAO,CACd,CAAC,EACD,CAAC,EACD,iDAAiD,CAClD,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,KAAK,CAAC,IAAI,UAAU,KAAK,CAAC,IAAI,UAAU,KAAK,CAAC;QAC7D,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QACvB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,UAAU,8BAA8B,CAAC,CAAC;AAC5E,CAAC,EACD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CACT,CAAC"}
|
@@ -3,20 +3,12 @@ export declare const MPCv2KeyGenRound1Request: t.TypeC<{
|
|
3
3
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
4
4
|
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
5
5
|
userMsg1: t.TypeC<{
|
6
|
-
from:
|
7
|
-
readonly 0: 0;
|
8
|
-
readonly 1: 1;
|
9
|
-
readonly 2: 2;
|
10
|
-
}>;
|
6
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
11
7
|
message: t.StringC;
|
12
8
|
signature: t.StringC;
|
13
9
|
}>;
|
14
10
|
backupMsg1: t.TypeC<{
|
15
|
-
from:
|
16
|
-
readonly 0: 0;
|
17
|
-
readonly 1: 1;
|
18
|
-
readonly 2: 2;
|
19
|
-
}>;
|
11
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
20
12
|
message: t.StringC;
|
21
13
|
signature: t.StringC;
|
22
14
|
}>;
|
@@ -25,39 +17,19 @@ export type MPCv2KeyGenRound1Request = t.TypeOf<typeof MPCv2KeyGenRound1Request>
|
|
25
17
|
export declare const MPCv2KeyGenRound1Response: t.TypeC<{
|
26
18
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
27
19
|
bitgoMsg1: t.TypeC<{
|
28
|
-
from:
|
29
|
-
readonly 0: 0;
|
30
|
-
readonly 1: 1;
|
31
|
-
readonly 2: 2;
|
32
|
-
}>;
|
20
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
33
21
|
message: t.StringC;
|
34
22
|
signature: t.StringC;
|
35
23
|
}>;
|
36
24
|
bitgoToUserMsg2: t.TypeC<{
|
37
|
-
from:
|
38
|
-
|
39
|
-
readonly 1: 1;
|
40
|
-
readonly 2: 2;
|
41
|
-
}>;
|
42
|
-
to: t.KeyofC<{
|
43
|
-
readonly 0: 0;
|
44
|
-
readonly 1: 1;
|
45
|
-
readonly 2: 2;
|
46
|
-
}>;
|
25
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
26
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
47
27
|
encryptedMessage: t.StringC;
|
48
28
|
signature: t.StringC;
|
49
29
|
}>;
|
50
30
|
bitgoToBackupMsg2: t.TypeC<{
|
51
|
-
from:
|
52
|
-
|
53
|
-
readonly 1: 1;
|
54
|
-
readonly 2: 2;
|
55
|
-
}>;
|
56
|
-
to: t.KeyofC<{
|
57
|
-
readonly 0: 0;
|
58
|
-
readonly 1: 1;
|
59
|
-
readonly 2: 2;
|
60
|
-
}>;
|
31
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
32
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
61
33
|
encryptedMessage: t.StringC;
|
62
34
|
signature: t.StringC;
|
63
35
|
}>;
|
@@ -66,31 +38,15 @@ export type MPCv2KeyGenRound1Response = t.TypeOf<typeof MPCv2KeyGenRound1Respons
|
|
66
38
|
export declare const MPCv2KeyGenRound2Request: t.TypeC<{
|
67
39
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
68
40
|
userMsg2: t.TypeC<{
|
69
|
-
from:
|
70
|
-
|
71
|
-
readonly 1: 1;
|
72
|
-
readonly 2: 2;
|
73
|
-
}>;
|
74
|
-
to: t.KeyofC<{
|
75
|
-
readonly 0: 0;
|
76
|
-
readonly 1: 1;
|
77
|
-
readonly 2: 2;
|
78
|
-
}>;
|
41
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
42
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
79
43
|
encryptedMessage: t.StringC;
|
80
44
|
signature: t.StringC;
|
81
45
|
}>;
|
82
46
|
userCommitment2: import("io-ts-types").NonEmptyStringC;
|
83
47
|
backupMsg2: t.TypeC<{
|
84
|
-
from:
|
85
|
-
|
86
|
-
readonly 1: 1;
|
87
|
-
readonly 2: 2;
|
88
|
-
}>;
|
89
|
-
to: t.KeyofC<{
|
90
|
-
readonly 0: 0;
|
91
|
-
readonly 1: 1;
|
92
|
-
readonly 2: 2;
|
93
|
-
}>;
|
48
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
49
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
94
50
|
encryptedMessage: t.StringC;
|
95
51
|
signature: t.StringC;
|
96
52
|
}>;
|
@@ -101,30 +57,14 @@ export declare const MPCv2KeyGenRound2Response: t.TypeC<{
|
|
101
57
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
102
58
|
bitgoCommitment2: import("io-ts-types").NonEmptyStringC;
|
103
59
|
bitgoToUserMsg3: t.TypeC<{
|
104
|
-
from:
|
105
|
-
|
106
|
-
readonly 1: 1;
|
107
|
-
readonly 2: 2;
|
108
|
-
}>;
|
109
|
-
to: t.KeyofC<{
|
110
|
-
readonly 0: 0;
|
111
|
-
readonly 1: 1;
|
112
|
-
readonly 2: 2;
|
113
|
-
}>;
|
60
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
61
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
114
62
|
encryptedMessage: t.StringC;
|
115
63
|
signature: t.StringC;
|
116
64
|
}>;
|
117
65
|
bitgoToBackupMsg3: t.TypeC<{
|
118
|
-
from:
|
119
|
-
|
120
|
-
readonly 1: 1;
|
121
|
-
readonly 2: 2;
|
122
|
-
}>;
|
123
|
-
to: t.KeyofC<{
|
124
|
-
readonly 0: 0;
|
125
|
-
readonly 1: 1;
|
126
|
-
readonly 2: 2;
|
127
|
-
}>;
|
66
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
67
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
128
68
|
encryptedMessage: t.StringC;
|
129
69
|
signature: t.StringC;
|
130
70
|
}>;
|
@@ -133,48 +73,24 @@ export type MPCv2KeyGenRound2Response = t.TypeOf<typeof MPCv2KeyGenRound2Respons
|
|
133
73
|
export declare const MPCv2KeyGenRound3Request: t.TypeC<{
|
134
74
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
135
75
|
userMsg3: t.TypeC<{
|
136
|
-
from:
|
137
|
-
|
138
|
-
readonly 1: 1;
|
139
|
-
readonly 2: 2;
|
140
|
-
}>;
|
141
|
-
to: t.KeyofC<{
|
142
|
-
readonly 0: 0;
|
143
|
-
readonly 1: 1;
|
144
|
-
readonly 2: 2;
|
145
|
-
}>;
|
76
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
77
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
146
78
|
encryptedMessage: t.StringC;
|
147
79
|
signature: t.StringC;
|
148
80
|
}>;
|
149
81
|
backupMsg3: t.TypeC<{
|
150
|
-
from:
|
151
|
-
|
152
|
-
readonly 1: 1;
|
153
|
-
readonly 2: 2;
|
154
|
-
}>;
|
155
|
-
to: t.KeyofC<{
|
156
|
-
readonly 0: 0;
|
157
|
-
readonly 1: 1;
|
158
|
-
readonly 2: 2;
|
159
|
-
}>;
|
82
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
83
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
160
84
|
encryptedMessage: t.StringC;
|
161
85
|
signature: t.StringC;
|
162
86
|
}>;
|
163
87
|
userMsg4: t.TypeC<{
|
164
|
-
from:
|
165
|
-
readonly 0: 0;
|
166
|
-
readonly 1: 1;
|
167
|
-
readonly 2: 2;
|
168
|
-
}>;
|
88
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
169
89
|
message: t.StringC;
|
170
90
|
signature: t.StringC;
|
171
91
|
}>;
|
172
92
|
backupMsg4: t.TypeC<{
|
173
|
-
from:
|
174
|
-
readonly 0: 0;
|
175
|
-
readonly 1: 1;
|
176
|
-
readonly 2: 2;
|
177
|
-
}>;
|
93
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
178
94
|
message: t.StringC;
|
179
95
|
signature: t.StringC;
|
180
96
|
}>;
|
@@ -184,11 +100,7 @@ export declare const MPCv2KeyGenRound3Response: t.TypeC<{
|
|
184
100
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
185
101
|
commonKeychain: import("io-ts-types").NonEmptyStringC;
|
186
102
|
bitgoMsg4: t.TypeC<{
|
187
|
-
from:
|
188
|
-
readonly 0: 0;
|
189
|
-
readonly 1: 1;
|
190
|
-
readonly 2: 2;
|
191
|
-
}>;
|
103
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
192
104
|
message: t.StringC;
|
193
105
|
signature: t.StringC;
|
194
106
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"keygenRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/keyGen/keygenRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,wBAAwB
|
1
|
+
{"version":3,"file":"keygenRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/keyGen/keygenRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;EAKnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;EAIpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC"}
|
@@ -8,11 +8,7 @@ export declare const MPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
8
8
|
type: t.LiteralC<"round1Input">;
|
9
9
|
data: t.TypeC<{
|
10
10
|
msg1: t.TypeC<{
|
11
|
-
from:
|
12
|
-
readonly 0: 0;
|
13
|
-
readonly 1: 1;
|
14
|
-
readonly 2: 2;
|
15
|
-
}>;
|
11
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
16
12
|
message: t.StringC;
|
17
13
|
signature: t.StringC;
|
18
14
|
}>;
|
@@ -25,25 +21,13 @@ export declare const MPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
25
21
|
type: t.LiteralC<"round1Output">;
|
26
22
|
data: t.TypeC<{
|
27
23
|
msg1: t.TypeC<{
|
28
|
-
from:
|
29
|
-
readonly 0: 0;
|
30
|
-
readonly 1: 1;
|
31
|
-
readonly 2: 2;
|
32
|
-
}>;
|
24
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
33
25
|
message: t.StringC;
|
34
26
|
signature: t.StringC;
|
35
27
|
}>;
|
36
28
|
msg2: t.TypeC<{
|
37
|
-
from:
|
38
|
-
|
39
|
-
readonly 1: 1;
|
40
|
-
readonly 2: 2;
|
41
|
-
}>;
|
42
|
-
to: t.KeyofC<{
|
43
|
-
readonly 0: 0;
|
44
|
-
readonly 1: 1;
|
45
|
-
readonly 2: 2;
|
46
|
-
}>;
|
29
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
30
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
47
31
|
encryptedMessage: t.StringC;
|
48
32
|
signature: t.StringC;
|
49
33
|
}>;
|
@@ -56,30 +40,14 @@ export declare const MPCv2SignatureShareRound2Input: t.IntersectionC<[t.TypeC<{
|
|
56
40
|
type: t.LiteralC<"round2Input">;
|
57
41
|
data: t.TypeC<{
|
58
42
|
msg2: t.TypeC<{
|
59
|
-
from:
|
60
|
-
|
61
|
-
readonly 1: 1;
|
62
|
-
readonly 2: 2;
|
63
|
-
}>;
|
64
|
-
to: t.KeyofC<{
|
65
|
-
readonly 0: 0;
|
66
|
-
readonly 1: 1;
|
67
|
-
readonly 2: 2;
|
68
|
-
}>;
|
43
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
44
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
69
45
|
encryptedMessage: t.StringC;
|
70
46
|
signature: t.StringC;
|
71
47
|
}>;
|
72
48
|
msg3: t.TypeC<{
|
73
|
-
from:
|
74
|
-
|
75
|
-
readonly 1: 1;
|
76
|
-
readonly 2: 2;
|
77
|
-
}>;
|
78
|
-
to: t.KeyofC<{
|
79
|
-
readonly 0: 0;
|
80
|
-
readonly 1: 1;
|
81
|
-
readonly 2: 2;
|
82
|
-
}>;
|
49
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
50
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
83
51
|
encryptedMessage: t.StringC;
|
84
52
|
signature: t.StringC;
|
85
53
|
}>;
|
@@ -92,16 +60,8 @@ export declare const MPCv2SignatureShareRound2Output: t.IntersectionC<[t.TypeC<{
|
|
92
60
|
type: t.LiteralC<"round2Output">;
|
93
61
|
data: t.TypeC<{
|
94
62
|
msg3: t.TypeC<{
|
95
|
-
from:
|
96
|
-
|
97
|
-
readonly 1: 1;
|
98
|
-
readonly 2: 2;
|
99
|
-
}>;
|
100
|
-
to: t.KeyofC<{
|
101
|
-
readonly 0: 0;
|
102
|
-
readonly 1: 1;
|
103
|
-
readonly 2: 2;
|
104
|
-
}>;
|
63
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
64
|
+
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
105
65
|
encryptedMessage: t.StringC;
|
106
66
|
signature: t.StringC;
|
107
67
|
}>;
|
@@ -114,11 +74,7 @@ export declare const MPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
114
74
|
type: t.LiteralC<"round3Input">;
|
115
75
|
data: t.TypeC<{
|
116
76
|
msg4: t.TypeC<{
|
117
|
-
from:
|
118
|
-
readonly 0: 0;
|
119
|
-
readonly 1: 1;
|
120
|
-
readonly 2: 2;
|
121
|
-
}>;
|
77
|
+
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
122
78
|
message: t.StringC;
|
123
79
|
signature: t.StringC;
|
124
80
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signingRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,uBAAuB;;EAElC,CAAC;AAKH,eAAO,MAAM,8BAA8B
|
1
|
+
{"version":3,"file":"signingRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,uBAAuB;;EAElC,CAAC;AAKH,eAAO,MAAM,8BAA8B;;;;;;;;;;;IAWzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAKF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;IAY1C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAKF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;IAYzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAKF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;IAW1C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAKF,eAAO,MAAM,8BAA8B;;;;;;;;;;;IAWzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
|
@@ -11,7 +11,8 @@ export declare enum WebhookTypeEnum {
|
|
11
11
|
"admin" = "admin",
|
12
12
|
"address_confirmation" = "address_confirmation",
|
13
13
|
"lowFee" = "lowFee",
|
14
|
-
"wallet_confirmation" = "wallet_confirmation"
|
14
|
+
"wallet_confirmation" = "wallet_confirmation",
|
15
|
+
"wireWithdrawal" = "wireWithdrawal"
|
15
16
|
}
|
16
17
|
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
|
17
18
|
export type WebhookType = t.TypeOf<typeof WebhookType>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,eAAe;IAEzB,WAAW,cAAc;IAEzB,sBAAsB,yBAAyB;IAC/C,UAAU,aAAa;IACvB,aAAa,gBAAgB;IAC7B,oBAAoB,uBAAuB;IAC3C,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,sBAAsB,yBAAyB;IAC/C,QAAQ,WAAW;IAGnB,qBAAqB,wBAAwB;
|
1
|
+
{"version":3,"file":"webhookType.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,eAAe;IAEzB,WAAW,cAAc;IAEzB,sBAAsB,yBAAyB;IAC/C,UAAU,aAAa;IACvB,aAAa,gBAAgB;IAC7B,oBAAoB,uBAAuB;IAC3C,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,sBAAsB,yBAAyB;IAC/C,QAAQ,WAAW;IAGnB,qBAAqB,wBAAwB;IAE7C,gBAAgB,mBAAmB;CACpC;AAED,eAAO,MAAM,WAAW,kCAA0C,CAAC;AACnE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,oBAAY,qBAAqB;IAC/B,WAAW,cAAc;IACzB,sBAAsB,yBAAyB;IAC/C,UAAU,aAAa;IACvB,aAAa,gBAAgB;IAC7B,oBAAoB,uBAAuB;IAC3C,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,sBAAsB,yBAAyB;IAC/C,QAAQ,WAAW;CACpB;AAED,eAAO,MAAM,iBAAiB,wCAG7B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
@@ -39,6 +39,7 @@ var WebhookTypeEnum;
|
|
39
39
|
WebhookTypeEnum["address_confirmation"] = "address_confirmation";
|
40
40
|
WebhookTypeEnum["lowFee"] = "lowFee";
|
41
41
|
WebhookTypeEnum["wallet_confirmation"] = "wallet_confirmation";
|
42
|
+
WebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
|
42
43
|
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
43
44
|
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
44
45
|
var WalletWebhookTypeEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,
|
1
|
+
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAmBX;AAnBD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAEzB,gEAA+C,CAAA;IAC/C,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,4DAA2C,CAAA;IAC3C,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gEAA+C,CAAA;IAC/C,oCAAmB,CAAA;IAGnB,8DAA6C,CAAA;IAE7C,oDAAmC,CAAA;AACrC,CAAC,EAnBW,eAAe,+BAAf,eAAe,QAmB1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAC/B,gDAAyB,CAAA;IACzB,sEAA+C,CAAA;IAC/C,8CAAuB,CAAA;IACvB,oDAA6B,CAAA;IAC7B,kEAA2C,CAAA;IAC3C,gEAAyC,CAAA;IACzC,4DAAqC,CAAA;IACrC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,sEAA+C,CAAA;IAC/C,0CAAmB,CAAA;AACrB,CAAC,EAZW,qBAAqB,qCAArB,qBAAqB,QAYhC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC"}
|
package/package.json
CHANGED
@@ -1,13 +0,0 @@
|
|
1
|
-
import * as t from "io-ts";
|
2
|
-
export declare const MPCv2PartyEnum: {
|
3
|
-
readonly 0: 0;
|
4
|
-
readonly 1: 1;
|
5
|
-
readonly 2: 2;
|
6
|
-
};
|
7
|
-
export declare const MPCv2Party: t.KeyofC<{
|
8
|
-
readonly 0: 0;
|
9
|
-
readonly 1: 1;
|
10
|
-
readonly 2: 2;
|
11
|
-
}>;
|
12
|
-
export type MPCv2Party = t.TypeOf<typeof MPCv2Party>;
|
13
|
-
//# sourceMappingURL=mpcv2Party.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mpcv2Party.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2Party.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;EAAwC,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mpcv2Party.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2Party.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAGd,QAAA,cAAc,GAAG;IAC5B,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;CACI,CAAC;AAEE,QAAA,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,sBAAc,EAAE,YAAY,CAAC,CAAC"}
|