@bitgo/public-types 2.9.1 → 2.9.2
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/mpcv2BroadcastMessage.d.ts +4 -3
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js +10 -7
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js.map +1 -1
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts +24 -18
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts +12 -9
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,9 +1,10 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const MPCv2BroadcastMessage: t.TypeC<{
|
2
|
+
export declare const MPCv2BroadcastMessage: t.IntersectionC<[t.TypeC<{
|
3
3
|
from: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
4
4
|
message: t.StringC;
|
5
5
|
signature: t.StringC;
|
6
|
-
|
7
|
-
|
6
|
+
}>, t.PartialC<{
|
7
|
+
signatureR: t.StringC;
|
8
|
+
}>]>;
|
8
9
|
export type MPCv2BroadcastMessage = t.TypeOf<typeof MPCv2BroadcastMessage>;
|
9
10
|
//# sourceMappingURL=mpcv2BroadcastMessage.d.ts.map
|
@@ -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;
|
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;;;;;;IAYhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
@@ -26,11 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.MPCv2BroadcastMessage = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const mpcv2PartyFromStringOrNumber_1 = require("./mpcv2PartyFromStringOrNumber");
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
exports.MPCv2BroadcastMessage = t.intersection([
|
30
|
+
t.type({
|
31
|
+
from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
32
|
+
message: t.string,
|
33
|
+
signature: t.string,
|
34
|
+
}, "MPCv2BroadcastMessage"),
|
35
|
+
t.partial({
|
36
|
+
signatureR: t.string,
|
37
|
+
}),
|
38
|
+
]);
|
36
39
|
//# sourceMappingURL=mpcv2BroadcastMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2BroadcastMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;
|
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,YAAY,CAAC;IAClD,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,2DAA4B;QAClC,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,SAAS,EAAE,CAAC,CAAC,MAAM;KACpB,EACD,uBAAuB,CACxB;IACD,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,CAAC,CAAC,MAAM;KACrB,CAAC;CACH,CAAC,CAAC"}
|
@@ -2,28 +2,31 @@ import * as t from "io-ts";
|
|
2
2
|
export declare const MPCv2KeyGenRound1Request: t.TypeC<{
|
3
3
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
4
4
|
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
5
|
-
userMsg1: t.TypeC<{
|
5
|
+
userMsg1: t.IntersectionC<[t.TypeC<{
|
6
6
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
7
7
|
message: t.StringC;
|
8
8
|
signature: t.StringC;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}>, t.PartialC<{
|
10
|
+
signatureR: t.StringC;
|
11
|
+
}>]>;
|
12
|
+
backupMsg1: t.IntersectionC<[t.TypeC<{
|
12
13
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
13
14
|
message: t.StringC;
|
14
15
|
signature: t.StringC;
|
15
|
-
|
16
|
-
|
16
|
+
}>, t.PartialC<{
|
17
|
+
signatureR: t.StringC;
|
18
|
+
}>]>;
|
17
19
|
}>;
|
18
20
|
export type MPCv2KeyGenRound1Request = t.TypeOf<typeof MPCv2KeyGenRound1Request>;
|
19
21
|
export declare const MPCv2KeyGenRound1Response: t.TypeC<{
|
20
22
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
21
|
-
bitgoMsg1: t.TypeC<{
|
23
|
+
bitgoMsg1: t.IntersectionC<[t.TypeC<{
|
22
24
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
23
25
|
message: t.StringC;
|
24
26
|
signature: t.StringC;
|
25
|
-
|
26
|
-
|
27
|
+
}>, t.PartialC<{
|
28
|
+
signatureR: t.StringC;
|
29
|
+
}>]>;
|
27
30
|
bitgoToUserMsg2: t.TypeC<{
|
28
31
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
29
32
|
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
@@ -87,29 +90,32 @@ export declare const MPCv2KeyGenRound3Request: t.TypeC<{
|
|
87
90
|
encryptedMessage: t.StringC;
|
88
91
|
signature: t.StringC;
|
89
92
|
}>;
|
90
|
-
userMsg4: t.TypeC<{
|
93
|
+
userMsg4: t.IntersectionC<[t.TypeC<{
|
91
94
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
92
95
|
message: t.StringC;
|
93
96
|
signature: t.StringC;
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
+
}>, t.PartialC<{
|
98
|
+
signatureR: t.StringC;
|
99
|
+
}>]>;
|
100
|
+
backupMsg4: t.IntersectionC<[t.TypeC<{
|
97
101
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
98
102
|
message: t.StringC;
|
99
103
|
signature: t.StringC;
|
100
|
-
|
101
|
-
|
104
|
+
}>, t.PartialC<{
|
105
|
+
signatureR: t.StringC;
|
106
|
+
}>]>;
|
102
107
|
}>;
|
103
108
|
export type MPCv2KeyGenRound3Request = t.TypeOf<typeof MPCv2KeyGenRound3Request>;
|
104
109
|
export declare const MPCv2KeyGenRound3Response: t.TypeC<{
|
105
110
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
106
111
|
commonKeychain: import("io-ts-types").NonEmptyStringC;
|
107
|
-
bitgoMsg4: t.TypeC<{
|
112
|
+
bitgoMsg4: t.IntersectionC<[t.TypeC<{
|
108
113
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
109
114
|
message: t.StringC;
|
110
115
|
signature: t.StringC;
|
111
|
-
|
112
|
-
|
116
|
+
}>, t.PartialC<{
|
117
|
+
signatureR: t.StringC;
|
118
|
+
}>]>;
|
113
119
|
}>;
|
114
120
|
export type MPCv2KeyGenRound3Response = t.TypeOf<typeof MPCv2KeyGenRound3Response>;
|
115
121
|
//# sourceMappingURL=keygenRound.d.ts.map
|
@@ -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"}
|
@@ -7,12 +7,13 @@ export declare const MPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
7
7
|
}>, t.TypeC<{
|
8
8
|
type: t.LiteralC<"round1Input">;
|
9
9
|
data: t.TypeC<{
|
10
|
-
msg1: t.TypeC<{
|
10
|
+
msg1: t.IntersectionC<[t.TypeC<{
|
11
11
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
12
12
|
message: t.StringC;
|
13
13
|
signature: t.StringC;
|
14
|
-
|
15
|
-
|
14
|
+
}>, t.PartialC<{
|
15
|
+
signatureR: t.StringC;
|
16
|
+
}>]>;
|
16
17
|
}>;
|
17
18
|
}>]>;
|
18
19
|
export type MPCv2SignatureShareRound1Input = t.TypeOf<typeof MPCv2SignatureShareRound1Input>;
|
@@ -21,12 +22,13 @@ export declare const MPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
21
22
|
}>, t.TypeC<{
|
22
23
|
type: t.LiteralC<"round1Output">;
|
23
24
|
data: t.TypeC<{
|
24
|
-
msg1: t.TypeC<{
|
25
|
+
msg1: t.IntersectionC<[t.TypeC<{
|
25
26
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
26
27
|
message: t.StringC;
|
27
28
|
signature: t.StringC;
|
28
|
-
|
29
|
-
|
29
|
+
}>, t.PartialC<{
|
30
|
+
signatureR: t.StringC;
|
31
|
+
}>]>;
|
30
32
|
msg2: t.TypeC<{
|
31
33
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
32
34
|
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
@@ -75,12 +77,13 @@ export declare const MPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
75
77
|
}>, t.TypeC<{
|
76
78
|
type: t.LiteralC<"round3Input">;
|
77
79
|
data: t.TypeC<{
|
78
|
-
msg4: t.TypeC<{
|
80
|
+
msg4: t.IntersectionC<[t.TypeC<{
|
79
81
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
80
82
|
message: t.StringC;
|
81
83
|
signature: t.StringC;
|
82
|
-
|
83
|
-
|
84
|
+
}>, t.PartialC<{
|
85
|
+
signatureR: t.StringC;
|
86
|
+
}>]>;
|
84
87
|
}>;
|
85
88
|
}>]>;
|
86
89
|
export type MPCv2SignatureShareRound3Input = t.TypeOf<typeof MPCv2SignatureShareRound3Input>;
|
@@ -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"}
|