@bitgo/public-types 2.9.0 → 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.
@@ -1,8 +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
- }>;
6
+ }>, t.PartialC<{
7
+ signatureR: t.StringC;
8
+ }>]>;
7
9
  export type MPCv2BroadcastMessage = t.TypeOf<typeof MPCv2BroadcastMessage>;
8
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;AAG3B,eAAO,MAAM,qBAAqB;;;;EAOjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,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,9 +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
- exports.MPCv2BroadcastMessage = t.type({
30
- from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
31
- message: t.string,
32
- signature: t.string,
33
- }, "MPCv2BroadcastMessage");
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
+ ]);
34
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;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
+ {"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,25 +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
- backupMsg1: t.TypeC<{
9
+ }>, t.PartialC<{
10
+ signatureR: t.StringC;
11
+ }>]>;
12
+ backupMsg1: t.IntersectionC<[t.TypeC<{
11
13
  from: import("../common").MPCv2PartyFromStringOrNumberC;
12
14
  message: t.StringC;
13
15
  signature: t.StringC;
14
- }>;
16
+ }>, t.PartialC<{
17
+ signatureR: t.StringC;
18
+ }>]>;
15
19
  }>;
16
20
  export type MPCv2KeyGenRound1Request = t.TypeOf<typeof MPCv2KeyGenRound1Request>;
17
21
  export declare const MPCv2KeyGenRound1Response: t.TypeC<{
18
22
  sessionId: import("io-ts-types").NonEmptyStringC;
19
- bitgoMsg1: t.TypeC<{
23
+ bitgoMsg1: t.IntersectionC<[t.TypeC<{
20
24
  from: import("../common").MPCv2PartyFromStringOrNumberC;
21
25
  message: t.StringC;
22
26
  signature: t.StringC;
23
- }>;
27
+ }>, t.PartialC<{
28
+ signatureR: t.StringC;
29
+ }>]>;
24
30
  bitgoToUserMsg2: t.TypeC<{
25
31
  from: import("../common").MPCv2PartyFromStringOrNumberC;
26
32
  to: import("../common").MPCv2PartyFromStringOrNumberC;
@@ -84,26 +90,32 @@ export declare const MPCv2KeyGenRound3Request: t.TypeC<{
84
90
  encryptedMessage: t.StringC;
85
91
  signature: t.StringC;
86
92
  }>;
87
- userMsg4: t.TypeC<{
93
+ userMsg4: t.IntersectionC<[t.TypeC<{
88
94
  from: import("../common").MPCv2PartyFromStringOrNumberC;
89
95
  message: t.StringC;
90
96
  signature: t.StringC;
91
- }>;
92
- backupMsg4: t.TypeC<{
97
+ }>, t.PartialC<{
98
+ signatureR: t.StringC;
99
+ }>]>;
100
+ backupMsg4: t.IntersectionC<[t.TypeC<{
93
101
  from: import("../common").MPCv2PartyFromStringOrNumberC;
94
102
  message: t.StringC;
95
103
  signature: t.StringC;
96
- }>;
104
+ }>, t.PartialC<{
105
+ signatureR: t.StringC;
106
+ }>]>;
97
107
  }>;
98
108
  export type MPCv2KeyGenRound3Request = t.TypeOf<typeof MPCv2KeyGenRound3Request>;
99
109
  export declare const MPCv2KeyGenRound3Response: t.TypeC<{
100
110
  sessionId: import("io-ts-types").NonEmptyStringC;
101
111
  commonKeychain: import("io-ts-types").NonEmptyStringC;
102
- bitgoMsg4: t.TypeC<{
112
+ bitgoMsg4: t.IntersectionC<[t.TypeC<{
103
113
  from: import("../common").MPCv2PartyFromStringOrNumberC;
104
114
  message: t.StringC;
105
115
  signature: t.StringC;
106
- }>;
116
+ }>, t.PartialC<{
117
+ signatureR: t.StringC;
118
+ }>]>;
107
119
  }>;
108
120
  export type MPCv2KeyGenRound3Response = t.TypeOf<typeof MPCv2KeyGenRound3Response>;
109
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;;;;;;;;;;;;;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,MAA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,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,11 +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
- }>;
14
+ }>, t.PartialC<{
15
+ signatureR: t.StringC;
16
+ }>]>;
15
17
  }>;
16
18
  }>]>;
17
19
  export type MPCv2SignatureShareRound1Input = t.TypeOf<typeof MPCv2SignatureShareRound1Input>;
@@ -20,11 +22,13 @@ export declare const MPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
20
22
  }>, t.TypeC<{
21
23
  type: t.LiteralC<"round1Output">;
22
24
  data: t.TypeC<{
23
- msg1: t.TypeC<{
25
+ msg1: t.IntersectionC<[t.TypeC<{
24
26
  from: import("../common").MPCv2PartyFromStringOrNumberC;
25
27
  message: t.StringC;
26
28
  signature: t.StringC;
27
- }>;
29
+ }>, t.PartialC<{
30
+ signatureR: t.StringC;
31
+ }>]>;
28
32
  msg2: t.TypeC<{
29
33
  from: import("../common").MPCv2PartyFromStringOrNumberC;
30
34
  to: import("../common").MPCv2PartyFromStringOrNumberC;
@@ -73,11 +77,13 @@ export declare const MPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
73
77
  }>, t.TypeC<{
74
78
  type: t.LiteralC<"round3Input">;
75
79
  data: t.TypeC<{
76
- msg4: t.TypeC<{
80
+ msg4: t.IntersectionC<[t.TypeC<{
77
81
  from: import("../common").MPCv2PartyFromStringOrNumberC;
78
82
  message: t.StringC;
79
83
  signature: t.StringC;
80
- }>;
84
+ }>, t.PartialC<{
85
+ signatureR: t.StringC;
86
+ }>]>;
81
87
  }>;
82
88
  }>]>;
83
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;;;;;;;;;;;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",